yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] cardynal:
A little help please :)

I just followed the steps to increase my partition size and I flashed the 1gb_6gb pit file. All went good, I even managed to format all in CWM, I flashed my rom (which was stored in my external SD) and now, when I try to see my internal storage (with any file manager) I cannot see it. I checked under settings->storage and I have only 6 GB total storage..but I can't see it with any file explorer and even in Windows. And now, my camera doesn't work (on lollipop) saying that no SD has been found. It may be other things that do not work, but I didn't test more. Is it normal to be like this? Thank you for your great work ;)
[Galaxy S II Android Development] Acid0057:
Not normal at all. What did you format sdcard0 as in CWM?

Sent from my GT-I9100 flowing on SwiftKey in Tapatalk
[Galaxy S II Android Development] cardynal:
Yes, I did formatted sdcard0 in cwm as default. And I flashed again a new pit file 1gb_4gb and I followed again the steps, I also mounted usb and I formatted sdcard0 in windows and now it works. My internal storage is visible. Thanks!
[Galaxy S II Android Development] cherryb8844:
Hello gsstudio

I have a quietion when I change or use a modified prelode pit 768sys 3GBdata and 40preload on my s2 after then I want to go back stock do I use that stock pit you provide in your attechment that will get back stock preload First time im shrink my preload partition
[Galaxy S II Android Development] Skyline:
Yes you have to flash stock pit before you flash any rom that use preload partition
[Galaxy S II Android Development] aceclift:
is it possible for someone to make me a pit file with 1gb system and the rest 11gb, the 12gb one on the other thread works but doesn't provide enough system to install the smallest gapps package for marshmellow, thanks
[Galaxy S II Android Development] Dr AM:
If you mean 1gb system and the rest for data then +1 , I need this too :D

As android 6.0 uses data as internal sdcard :)

Edit: made it [emoji14]

http://xdaforums.com/showthread.php?p=64861023
[Galaxy S II Android Development] aceclift:
yeah, exactly what I need as otherwise even the smallest gapps package wont flash. thank you :)

now to format internal data in twrp so it works and then flash cm12.1 linaro back on to my phone, this time with gapps installed
[Galaxy S II Android Development] vikas_toad:
I am a little lost in selecting which PIT File i exactly need?

The ultimate goal is to flash the full gapps package.

.Currently on cm12.

The Intenal Storage shows as 1.97GB out of which 682MB is free .....(Isn't this the system partition?)

Then theres another Internal Storage of 11.5 gB out of which 8.84 is available (so this is the data partition?)

Then I finally have my microsd card of 2gb

so my question is, isn;t the PIT File supposed to increase the system partition?

No when I see 1GB_4GB. pit

Won't flashing that reduce the system partition to 1 gB(from the current 1.97gB?) how will I be able to flash Gapps full package?(since they go in the system partition?)

Or is it that 1GB_4GB indicated 4gB of system partition?

I am sure I am mixing things heavily here..

any clarifications pls?
[Galaxy S II Android Development] Dr AM:
1GB-4GB means 1gb system and 4gb data

What you see in settings is data and not system and by default system is 512 and data is 2gb

Sent from my GT-I9100
[Galaxy S II Android Development] vikas_toad:
Alright thanks... So i chose 1GB_3GB PIT... Sucess.. Formatted things... Success... Flashed cm12, .. Flashed tk apps... Success .. Cleared dalvik and cache.. Success... But now the phone just won:t go beyond the cm logo... What am i doing wrong?
[Galaxy S II Android Development] Dr AM:
If you haven't formated system then format it too before flashing and use these gapps " opengapps.org "

If it also didn't work then use 1GB-4GB pit as I read some other users complaining that 1GB-3GB causes some issues

Sent from my GT-I9100
[Galaxy S II Android Development] Syaani:
Solved!!
[Galaxy S II Android Development] Dr AM:
Install another kernel then reboot to recovery then try to format it again

Sent from my GT-I9100
[Galaxy S II Android Development] naltar:
two questions, on trim and on 4.1.2 / 5.1 system partition

Hello,

I've gone through the whole thread (it did help to answer a few questions), I would be grateful if anyone could comment / clarify a couple of other question.

My scenario is: stock rom 4.1.2, moving to CM 12.1 (latest stable ;), later, possibly to CM 13. For that I need to resize partitions, unless I settle for pico gapps. Here are the questions:

1. kernel files, I'd go for gustavo, but there are two for CWM / Odin:

kk-kernel-04-02-CWM-for ODIN.tar

kk-kernel-04-02-CWM-TRIM-for ODIN.tar

Question: any difference? Should I go for one or the other, does it make any difference?

2. As I understand it, if I partition successfully and restore my 4.1.2 stock rom, I won't see more than 500 MB in system anyway (I'm going for a 1GB - 4GB pit), correct?

However, if I want to move on to CM 12.1, either immediately, as described in the last steps of the guide, or later, the actual system partition size (1GB) will be there to make installation of apps, etc. possible?

Regards,

n.
[Galaxy S II Android Development] :
[MENTION=7257823]naltar[/MENTION]

1. The kernel you use is only to give you a working recovery for when you have re-partitioned. It doesn't matter which one of those you mention. Just reboot to recovery once the re-pit is done and format as per the instructions

2. The 1gb system partition is only useful on custom AOSP roms such as CM, where you install gapps. Any other apps you install later will go to /data. You may need to go back to stock partition sizes to boot into stock rom(ie. I'm pretty sure you will get a bootloop if you try to go back to, or boot up stock rom with 1gb /system)
[Galaxy S II Android Development] naltar:
Thank you very much for this quick reply, this was VERY helpful. It certainly means I'd better get it right (re-partition AND move on / up to custom rom in one go). It makes it a little riskier, as more steps = more chance of getting things wrong...Well, I'll see how it goes, thanks again :)

Regards,

n.
[Galaxy S II Android Development] l33boy:
Big thanks to the OP.... finally got rid of that pesky warning that was stopping me installing what I wanted :)

Currently on 12.1 but CM now has a 13 update...!

I used the Gustavo 1>4 kernel ... am I OK to patch with the CM13 nightly update?
[Galaxy S II Android Development] Saber:
Yes, you can use this guide for CM13 and you can update directly to CM13. It is recommended to do a factory reset and wipe system before updating to CM13 as this removes any potential problems you may encounter.

However, you can not use Gustavo Kernel on CM13 because it only supports up to Android Lollipop.

gsstudios
[Galaxy S II Android Development] Saber:
I've updated the OP with a few changes to the guide. I have added a bit of information regarding CM13 and Isorec kernels.

gsstudios
[Galaxy S II Android Development] naltar:
I just wanted to say that my partitioning + upgrade to CM 12.1 went well. Regular size gapps wouldn't install due to lack of space, I went for "mini" package instead and it works.

Regards,

n.
[Galaxy S II Android Development] prateekjain2003:
Upgraded to CM 13 but not able to install Gapps

I didnt partition my S2. When OTA update stopped working on 5th feb then came to know about this partition requirement. my S2 is already running CM13. CM Recovery is not working. I am using ADB. I am not able to install PICO Gapps cause of size error. Is there a way to partition in CM13?
[Galaxy S II Android Development] Acid0057:
Read the op in this thread. You'll need Odin.
[Galaxy S II Android Development] ditroy31:
RE-partition

Hi

I have already installed cm 13 and now i want to re-partition .

I have read the OP many times but I m not sure .. Can I use pit_files without pda (gustavo) with my current kernel

3.0.101-CM-g4eae3b (cyanogenmod) 5 Feb 2016

Thnx
[Galaxy S II Android Development] prateekjain2003:
The OP Says" CM13 Nightlies have been released. Please note that the link to the premade .tar kernels are compatible up to Android Lollipop. Currently there are no Marshmallow kernels for people to use."

As there are no kernels for CM13 so how do i do it?

---------- Post added at 06:53 AM ---------- Previous post was at 06:32 AM ----------

CM OTA update on 4th feb updated my phone to CM13. After that no more OTA update are wokring. I tried to flash Gapps app via ADB but storage issue. Your post says there are no kernels for CM13. What should i do to partition?
[Galaxy S II Android Development] Saber:
You still can repartition your device on android marshmallow.

Since you will be restoring or flashing cm13 again using this guide, stock cm13 kernel will be restored in the process anyway. You will be flashing cm12.1 kernel during repartition, then it will be overwritten by ROM flash/restore. It's for people who want to stay on the kernel they flash after repartition. TL;DR: Marshmallow kernels are not required for repartition :)

gsstudios

Update: I have updated the OP to prevent any further misunderstanding.
[Galaxy S II Android Development] Saber:
I've updated the OP. You will be flashing CM12.1 kernel (so that will be Gustavo kernel), doing all indicated wipes/formats, then restoring/re-flashing CM13 which will also restore CM13 stock kernel.
[Galaxy S II Android Development] prateekjain2003:
Do you have the link for TWRP recovery tar file for cm 12.1?
[Galaxy S II Android Development] Saber:
TWRP CM12.1 kernel link has been readded on my convert to kernel zip to tar guide.

http://xdaforums.com/showpost.php?p=57974756&postcount=4

You can also achieve TWRP by flashing the TWRP isorec in CM recovery after flashing the isorec CM12.1 tar kernel via ODIN. But I believe this can be too many steps for some ;)

gsstudios
[Galaxy S II Android Development] prateekjain2003:
really sorry to ask stupid questions again.. i am not a techy guy but still surviving.

I have this CM Recovery. To follow all your process i need either CWM or TWRP recovery. so the link you gave above. If i flash it via ODIN PDA then i will get TWRP Recovery?
[Galaxy S II Android Development] Saber:
Yes. After flashing the .tar file under PDA in ODIN, you will have TWRP recovery.

gsstudios
[Galaxy S II Android Development] prateekjain2003:
In step 10 you say " If you have TWRP recovery, you will need to go to wipe>advanced and select format /sd card then swipe to confirm ."

but when i go to wipe--> Advanced Wipe--> I have following options

1) Dalvik Cache

2) Cache

3) System

4) Data

5) eMMC

6) Android Secure

7) Micro-SD

Which one should i wipe??
[Galaxy S II Android Development] Saber:
It's emmc. Need to update the OP again :)

gsstudios

Edit: All done. sd card0 option was available on older TWRP version (if I can remember).
[Galaxy S II Android Development] prateekjain2003:
I only wiped "Data" as only after wipe it started showing the space. else it was zero.. now have flashed the CM13 rom. It gave some "detected filesystem ext4 for /dev/block/mmcblk0p10" error but went ahead.. then Gapps was successfull.. now system starting.. lets see if all was well..

I was able to install CM13 through TWRP.. but after mobile started a new update was there.. i downloaded that update and while trying to install it after reboot CMRecovery opened.. and its not installing that update.. i dont understand why CMRecovery came back
[Galaxy S II Android Development] Killah_Whale:
I did everything like in the instructions. I am using CM13 (official). When I look at settings, it shows that Internal Storage is 5,91 GB (I used the I91001GB_6GB.pit file). But when I look at "sdcard0" it says "damaged", when I try to format it, I get this error message: command '27 volume partition disk: 179_0 public' failed with '400 27 Command failed'

When I try to acess it through ES file explorer, I can see it (E5EC-147E (0,00 B/393,46 MB)), but when I want to open it, it doesn't open, it asks me as what do I want to open it (Text, Audio etc.), when I am opening my external SD (through the same app) it works.

Thanks in case of reply.
[Galaxy S II Android Development] .Fè:
Hello.

I've flashed CM12.1 with Siyah 6.0 kernel. Now, I'd want to extend my storage.

Have I to flash another kernel? Could I flash (via ODIN) only pit file?

Thank you
[Galaxy S II Android Development] Skyline:
You have to flash both pit + kernel(pda section) and It's recommended by devs.

BUT i have tried to flash only pit file without problem. So, whatever you do Do it on your own risk btw Siyah kernel will not boot with cm12.1 I hope you know that:good:
[Galaxy S II Android Development] zedex39zeo:
Is there anyway to change partition size of the phone other than using Odin? I can't connect my phone to the computer because of the phone's USB port being damaged :/
[Galaxy S II Android Development] ssanjy:
I think there's a thread with pitting using recovery but do read it very properly..... Even if you don't repit it's strongly advised to repair your USB port.... It's not that expensive but will get you out of serious trouble if your phone goes out.... You can even order the USB flex and replace it on our own at home... I've fixed mine once.. Using this method of pitting is safe in my view... Good luck
[Galaxy S II Android Development] zedex39zeo:
I was thinking the same thing. I'll just stick with Lollipop till I fix it then. Thanks
[Galaxy S II Android Development] Dark1Angel:
I repartitioned the one with 3GB data but after I flashed my rom, kernel, gapps, recovery I got in botloop(the cm logo kept pulsating for 15 min or so). It's not because of the rom or anything I flashed as after that I repartitioned with 1Gb system, normal preload and 3GB data and it all went perfect. After pit I resized every partition with ext4 and even repaired them. I used lysergic acid's cm12.1, lanchon's isorec trim kernel and isorec twrp and open gapps pico. What may be the cause? What should I do?
[Galaxy S II Android Development] Saber:
Try the 1GB_4GB pit or the 1GB_6GB pit. I had a similar problem with the 1GB_3GB pit file a while ago (last year), but wasn't sure if pit file was the cause of bootloop or not.

gsstudios
[Galaxy S II Android Development] Dark1Angel:
The 1/3 works fine. I have it right now. I quoted a post with 768mb system and small preload. That's what i want. Please read what i wrote and quoted

Edit: i just noticed he gave a link to a post where he says i have to format preload too with adb command. I'll try that and return with the result
[Galaxy S II Android Development] Dark1Angel:
I thought adb woud be easier. In his instructions he says to type make_ext4fs /dev/block/mmcblk0p12 in shell. How do I do that?

Do I go to terminal command or adb sideload?
[Galaxy S II Android Development] Skyline:
If you have twrp then you can directly use that command from terminal available in twrp

make_ext4fs /dev/block/mmcblk0p12
[Galaxy S II Android Development] Dark1Angel:
but it tells me to select a starting folder. what do i select?
[Galaxy S II Android Development] Skyline:
Root (/)
[Galaxy S II Android Development] Dark1Angel:
where is that? I can't see it. there are: and-sec, boot, cache, data, dev, efs, emmc, etc, license, mnt, proc, recovery, res, sbin, sdcard, supersu, sys, system, tmp, twres
[Galaxy S II Android Development] Skyline:
After selecting Terminal command just click on 'select' that's all man. The main directory that contains all of these dir you mentioned are in the '/' directory that is root.

Hope you understand that
[Galaxy S II Android Development] Dark1Angel:
ok. another question. in the command : make_ext4fs /dev/block/mmcblk0p12 there is a space between ext4fs and /dev . is it ok like that?
[Galaxy S II Android Development] Skyline:
Yes there is space

Sorry guys If you think I am spamming this thread or else
[Galaxy S II Android Development] redmarx:
I've followed the instruction step by step but /data is still 2GB! I've used the pit file to have a 4GB /data partition, but i've lost 2GB :(

How can I solve?

root@i9100:/ # df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 394M 80K 394M 1% /dev
none 394M 8.0K 394M 1% /sys/fs/cgroup
tmpfs 394M 0 394M 0% /mnt
/dev/block/mmcblk0p9 0.9G 644M 364M 64% /system
/dev/block/mmcblk0p7 98M 4.0M 94M 5% /cache
/dev/block/mmcblk0p1 20M 8.2M 11M 42% /efs
/dev/block/mmcblk0p10 1.9G 916M 1.0G 46% /data
/dev/block/mmcblk0p12 504M 387M 117M 77% /preload
tmpfs 394M 0 394M 0% /storage
/dev/block/vold/public:179_11 8.9G 94M 8.8G 2% /mnt/media_rw/0027-1109
/dev/block/vold/public:179_11 8.9G 94M 8.8G 2% /mnt/secure/asec
/dev/fuse 8.9G 94M 8.8G 2% /mnt/runtime/default/0027-1109
/dev/fuse 8.9G 94M 8.8G 2% /storage/0027-1109
/dev/fuse 8.9G 94M 8.8G 2% /mnt/runtime/read/0027-1109
/dev/fuse 8.9G 94M 8.8G 2% /mnt/runtime/write/0027-1109
[Galaxy S II Android Development] rolves1899:
System partition looks risky to me. Is there any other way to flash gapps ? I can format internal memory if it helps
[Galaxy S II Android Development] Saber:
The only risk would be if you lose power/disconnect your device during the process, you could potentially brick your device. However, if done correctly, the risk can be minimized and the chances of bricking your device is very low. Formatting internal memory will do nothing, you need to change system partition to flash gapps. You will format internal storage anyway with this guide to have internal storage working after repartition.

gsstudios
[Galaxy S II Android Development] rolves1899:
I ve tried a solution someone told to move apks from /system to /data. Didnt work for me . i ll try for partition :)
[Galaxy S II Android Development] jojobg:
ROM fault during flash, go to recovery and use resize function on /data.
[Galaxy S II Android Development] redmarx:
The cyanogen recovery hasn't this functionality. Could you suggest me another one?
[Galaxy S II Android Development] ELki123:
Hey

I failed in odin :( i have no idea why ? chnge odin ver , change USB cable ... odin react as "ADDED" but all comibinatin of kernel ( Gustavo Kernel \ Gustavo Kernel ) and pit file ... 1-3 1-4 ,6 ... failed :(

i also change the com usb ... and faild again ...

ffff it looks like i missed somthing im stuck !

Any suggestions ? help ?

Thanks in advance !
[Galaxy S II Android Development] S@lwos:
Hello everyone ...

I have a virgin I9100 with its original firmware, I would like to install the CM13 ... I read that you need to increase your system partition.

What do you recommend Kernel?

I hope for your help.
[Galaxy S II Android Development] aceclift:
I use this kernel and then I install the isolated recovery created by lanchon as it means when you install the next cm13 nightly it will not be replaced by cyanogenmods crappy one that doesn't allow you to do anything.

Attatched the kernel below and you need to put in the pda section of odin to install

then put the attatched recovery onto your phones external sd storage and install in twrp (home + volume up + power button)
[Galaxy S II Android Development] Volkhan:
How can I do this without the home button? Mine is broken and I've got no idea what the password it asks if i don't reboot in recovery mode is.
[Galaxy S II Android Development] ssynnes:
Thanks, my Galaxy SII is now running Android 6.0.1 flawlessly. After an upgrade from Cyanogenmod 12 to 13 (Android 5 to 6), there was not enough space to install gapps, not even the pico version. Even with Cyanogenmod 12, there were not room for many apps in addition to gapps pico. After repartitioning in accordance with your recepie I have plenty of room both for gapps and apps from the store. My phone is better than ever :)
[Galaxy S II Android Development] -jane-:
I followed the steps and when i went to install a zip from sdcard there was no files. Now when I try to start up my phone, it gets stuck on the boot screen with the yellow triangle, please help me!
[Galaxy S II Android Development] Acid0057:
What steps were you following and where did you get stuck? Also are your files on an external SD card?
[Galaxy S II Android Development] devianceluka:
I do this:

1. Odin:

1.1 I91001GB_3GB.pit

1.2 kernel-Lanchon-TRIM-FreezeFix-TWRP-20160111-cm-12.1-i9100-for-ODIN.ta

1.3 Repartition ticked

1.4 Start

2. reboot recovery

2.1 format emmc ext4

2.2 format data+system+cache+dalvik

3. power off

4. put microsd in

5. flash cm-13.0-20160219-NIGHTLY-i9100.zip

6. reboot

7. CM13 will never finish booting (stuck at animation - boot loop!?)

Tried to change PIT (from 1.1) to stock: I9100_6GB and still the same. Anyone please help me or is my SII finally dead after 5 years? =(

EDIT: I atleast want to get back to stock pit/whatever with CM13 just to see that its not dead. Im not a rookie at flashing btw.
[Galaxy S II Android Development] -jane-:
I managed to solve the problem, thank you ! :victory:
[Galaxy S II Android Development] Acid0057:
[MENTION=7291711]-jane-[/MENTION] glad you got it solved!
[Galaxy S II Android Development] ELki123:
again , need help !

I failed in odin i have no idea why ? change odin ver , change USB cable ... odin react as "ADDED" but all comibination of kernel ( Gustavo Kernel \ Gustavo Kernel ) and pit file ... 1-3 1-4 ,6 ... failed

i also change the com usb ... and failed again ...

it looks like i missed something i am stuck !

Any suggestions ? help ?

Thanks in advance !
[Galaxy S II Android Development] zorglub!:
Pit for mashmallow

HI

which pit files do u recommend for a mashmallow install...

I'm currently on Lollipop ( Omni Rom ) and I'd like to test AICP, MM version with TWRP as recovery

Thks in advance
[Galaxy S II Android Development] ELki123:
1-4

---------- Post added at 10:15 PM ---------- Previous post was at 09:43 PM ----------

Holly moses, new nightly update 27-2 .... the phone is black and a weak flash light very 5 seconds.... mamamia what happen here , anyone ???!!!
[Galaxy S II Android Development] YbkcLtwv:
Repartition: i9100 + CM13 + TWRP3 + GApps = Working

Thank you very much for the guide! It did help with moving from stock ROM to a fully functional recent CM13 nightly! :D

I just used Heimdall 1.4.0 on Debian 8.3 but not Odin ;)

See post #27 in Gapps + Cm12.1 + I9100 = Working in CyanogenMod Forum → Samsung → Samsung Galaxy S II - i9100, i777, hercules, sc02c → Samsung Galaxy S II Release (sorry, I am not allowed to post external links).
[Galaxy S II Android Development] aness zurba:
anyone knows which pit file has more than 1gb in system?
[Galaxy S II Android Development] Acid0057:
None in this thread as far as I know.
[Galaxy S II Android Development] aness zurba:
where can i find such one?
[Galaxy S II Android Development] szili9992:
Is it possible to flash recovery and repartition at the same time using odin?
[Galaxy S II Android Development] aminya:
[MENTION=5811506]gsstudios[/MENTION]

Hi sir. I have used your 4Gb data & 1Gb sys pit file. But as i don't use gapps anymore & i have lots of apps, I need a 4.5Gb data & 600mb sys pit file for my phone because of low space for my apps. If it's possible for you to generate it i will appreciate it. :)
[Galaxy S II Android Development] Saber:
Hi,

Sorry but I don't know how to make a pit file that will suit your needs. Perhaps different s2 user may be able to help you out. It would be better if you selected 1gb system, 6gb data pit file so you have more flexibility.

gsstudios
[Galaxy S II Android Development] neps4u:
Possible to increase system partition of Samsung s2 HD LTE SHV-e120s ??

Hy,

I have samsung 2 HD LTE 'Korean Galsxy S2" and i extracted pit file using heimdall-suite not i want to edit pit file to increase system partition but dont know how to .. for reference i use posted pit files but they are different so i cant go further

so anyone one who have idea to edit please do for me thanks ..
[Galaxy S II Android Development] firvulag359:
Thanks

gsstudios, I registered just to say thanks. I had awful problems replacing CM12.1 on my phone as it kept crashing. I installed resurrection remix on my s2 and it kept failing to install gapps. Followed your guide (seems I should've increased the partition size even before I installed cm12.1) and the full gapps installed fine!

Thanks a lot :D