yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] Drx86:
I used Gustavo kernel with CWM from here (lp-kernel-14-03-CWM-for ODIN.tar) and I got no problem at all.
[Galaxy S II Android Development] Sapiem:
What about EFS folder..? May I lost it...?
[Galaxy S II Android Development] Drx86:
No, it will be left untouched.

In any case, MAKE A BACKUP, just in case you screw something up.
[Galaxy S II Android Development] Sapiem:
Ok, may be I'll try. I oly need increase system partition to flash Lillipop well wide. Isn't problem to me increase data partition. So, wish pit file do you recommend to me..?

Thanks
[Galaxy S II Android Development] Drx86:
1GB system + 4GB data
[Galaxy S II Android Development] Sapiem:
Less than 4G Data do not exists...?

I newby in this. If I use your recommendation, how many Gb remain as Internal SD?

Sorry all this questions...
[Galaxy S II Android Development] Drx86:
Apps require more space on lollipop, so it is better to have a 4 GB data partition. Internal SD will be 9.5GB.

If you are sure that you will install just a few apps, you can ask the OP to make a special pit for you.
[Galaxy S II Android Development] eddiekhoo368:
Thank for great mod.
[Galaxy S II Android Development] Sapiem:
I only need increase system partition and keep all my installed ROM.

Do I need to do all this steps..? repartition affect the instaled system?
[Galaxy S II Android Development] Drx86:
That's impossible. If you repartition, you lose the content of your system, data and internal SD partitions. You will have to reinstall everything.

There's no way to avoid it. So it's better to make a backup if you have important data.
[Galaxy S II Android Development] Acid0057:
If you have Clockwork Mod or twrp recovery installed, make a Nandroid backup. Then copy the Nandroid to your computer or external SD card. Also copy your internal SD card to a computer. Repartition, format the new partitions in recovery, restore Nandroid, copy internal SD back and reboot.

Sent from my GT-I9100 flowing on SwiftKey in Tapatalk
[Galaxy S II Android Development] Sapiem:
Then after increase system partition, the Nand work ok...?

In the Instructions, at step 9 said:

"While your phone reboots, you need to perform the button combination to get into recovery (home button + power button + volume up)"

What that means..? Odin restart cel auto, so, when it restart, I Must perfomr the recovery secuence?

If I can do it at time, what happend...?

I want to do this, but I'm worry to brick the cel
[Galaxy S II Android Development] Acid0057:
Yes the Nandroid will work fine. Don't miss step 9 you need to get into recovery after partitioning. Since there isn't any Rom on the device it won't boot properly. So after using Odin you need to follow step 9.

IMPORTANT the Nandroid won't back up your internal and external sd. Make sure you copy the entire cards to your computer, including hidden folders

Sent from my GT-I9100 flowing on SwiftKey in Tapatalk
[Galaxy S II Android Development] Sapiem:
Ok, but there is something that I don't understand, because never use Odin.

If I check Auto Reboot option, after repartition I suppose the phone must reboot. So, How can I interrupt this..? When I reboot to recovery via buttons combination...?

If I don't use Auto Reboot, the phone I suppose will keep in Downloading status. Can I power off it keeping power button pressed and then power on in recovery?

Until when I must have the cel connected to PC via USB?

First, which options I must check and uncheck (using only PIT and Kernel files only as said the Instructions)

A lot of questions, a lot of doubts, sorry.

---------- Post added at 08:59 PM ---------- Previous post was at 08:57 PM ----------

Ok, but there is something that I don't understand, because never use Odin.

If I check Auto Reboot option, after repartition I suppose the phone must reboot. So, How can I interrupt this..? When I reboot to recovery via buttons combination...?

If I don't use Auto Reboot, the phone I suppose will keep in Downloading status. Can I power off it keeping power button pressed and then power on in recovery?

Until when I must have the cel connected to PC via USB?

First, which options I must check and uncheck (using only PIT and Kernel files only as said the Instructions)

A lot of questions, a lot of doubts, sorry.
[Galaxy S II Android Development] Acid0057:
I'm going to leave the Odin questions to somebody who uses it more. I don't use it since I'm on Linux, I use hemidall.

Sent from my GT-I9100 flowing on SwiftKey in Tapatalk
[Galaxy S II Android Development] Saber:
That's alright for the questions, after all, this guide isn't for new android modders. When your phone reboots after flashing with odin and auto reboot ticked (and you can see samsung and device logo), you need to quickly do the button combination (volume up+home button+power button and press and hold these for about 5 seconds).

Alternatively, you can set auto reboot off. But this means your phone should still be in download mode after flashing, so the only way to get into recovery is pulling out and reinserting battery, turn on phone and quickly do button combination to get into recovery.

As for what to check, leave them to defaults. When you select the pit file, the checkbox for repartition will be ticked. That's what you want if you want to repartition or change partition sizes. Untick repartition if you are flashing kernel, rom and etc.
[Galaxy S II Android Development] doorknob314:
just tried this guide... but failed.

I think everything went according to the steps, exept when I boot into recovery ant try to install an ROM, it fails just the error (bad) comes up. I've tried different roms, but no luck...

anyone had the same problem? I'm just sitting here with my phone without an operating system...
[Galaxy S II Android Development] BluePhnx:
I would try installing another kernel like apolo twrp or cwm recovery v8 beta 9 for lollipop 5.1.1 or dorimanx v10.44b008 for kitkat v4.4.4 ROMs and see.
[Galaxy S II Android Development] Saber:
did you format the internal sd card properly? Did you install the correct recovery version? Try redoing the steps again.

If you try to install lollipop rom and your recovery reboots, this means that your recovery is the wrong version. Install LP kernel instead and all should be good
[Galaxy S II Android Development] doorknob314:
i've used gustavo kernel for lollipop with cwm. I'll try in a few days with another kernel (maybe the problem is that I use lollipop 5.1 on a 5.0 kernel...)

I've just restored to stock (because I'm a few days without pc). Happy that still works! :)

Thanks for suggestions, after I have tried them I'll report back
[Galaxy S II Android Development] Drx86:
You don't need to remove battery, you can just press button combination until phone reboots.
[Galaxy S II Android Development] Saber:
I like to remove the battery because I don't like to hold the buttons for too long and it can become confusing for some beginners. Either way, it's fine. Personally, I do either one myself
[Galaxy S II Android Development] Saber:
Realized that this thread needed a bit of an overhaul. Now it's much more user friendly and easier to follow. I've updated ODIN so now it's even easier to use and included a screenshot. Steps are separated and are less confusing. Enjoy:)
[Galaxy S II Android Development] pfontana77:
Stuck on Boot Logo

Hello,

i've managed to follow the guide using 1GB_3GB pit files, Gustavo Kernel, Ticket the Re-Partition checkbox.

Odin says successful, but when i've rebooted it stuck on Samsung Logo, does not enter in Recovery or Download mode (via Power + Up Volume (Down for Download Mode) + Central Button).

When i connect the phone on PC now, it is seen as an MTP device, but without displaying any entry in Explorer...

Any ideas?

Thanks.
[Galaxy S II Android Development] Saber:
I recently made modifications to odin to make it easier to use. Did you hold the buttons long enough? Does your phone react to usb jig? Try doing these again. Anyone else reporting issues when flashing with the updated odin? AFAIK, it's working fine for me Are you using stock rom or custom?
[Galaxy S II Android Development] r4Rok:
Hi [MENTION=5811506]gsstudios[/MENTION], i'm planning to re-partition my GT I9100, using 2gb system, 6gb data, and213mb preload. With this PIT file, i'm thinking to flash, gustavo LP kernel "lp-kernel-14-03-CWM-for ODIN.tar", as i want to flash BlissPop 5.1 ROM right after PIT repartition. Could you advise, will this be OK., or should i do the old way i.e. PIT + KK_kernel --then, through recovery, flash LP_kernel + LP_ROM ?
[Galaxy S II Android Development] Saber:
should be fine with the rom you are trying to install. If all doesn't go to plan, flash a pit without modified preload partition.
[Galaxy S II Android Development] r4Rok:
I cann't find a PIT with 2gb system, 6 or 8 gb data (without the preload). Do you have this kind of PIT? Please advise.
[Galaxy S II Android Development] Drx86:
2 GB are a complete waste for the system partition.

Just use 1GB-6/8GB if you need a custom ROM with standard GApps and lots of apps.
[Galaxy S II Android Development] anil4523:
I am on Custom ROM (Team UB - LP) with minimal Gapps and have stock system partition

I understand upto step 7............. After that which Pre-made tar files of Gustavo Kernel I need to use ?? ( Is it this I need to use - lp-kernel-14-03-CWM-for ODIN.tar)

Pls help...........
[Galaxy S II Android Development] r4Rok:
It's up to you, you can use any of the four variants: First two are CWM recoveries and the last two are TWRP. So, choice i entirely yours. Rest assured all will work.

---------- Post added at 04:59 PM ---------- Previous post was at 04:55 PM ----------

Hmm, OK, so, in that case, should i go for 1gb-6gb or (1gb-8gb) with 23mb preload? Can you advise, what is best for future compatibility, as i don't want to format partitions regularly. Also, is there any PIT available for the earlier said config without a preload?
[Galaxy S II Android Development] Drx86:
Pit files with modified preload partition are not available in this thread (if I am not mistaken), as they might cause bootloops.

In my opinion, the best choice is 1GB-6GB, if you need a very large amount of apps.
[Galaxy S II Android Development] r4Rok:
Hi, First of all, thanks to all, who replied to my posts.

I had successfully installed BlissPop /CM12.1 Unofficial on my S2 yesterday. The initial hiccup of ROM won't boot was all thanks to the ROM was trying to mount /preload, but it wasn't available. Please note, if you are using a PIT file with untouched /preload, then it's OK, but for modified /preload, you must format /preload partition as well before you flash, or first boot of your ROM.

My steps:

PS: It's only Philz kernel, that's formating /preload, and no other kernel ATM formats /preload. So, better use, Philz kernel.
[Galaxy S II Android Development] Genebaby:
I just got an S2 today to play with and set up for my daughter most probably and I saw this thread and was intrigued. I remember my aunty complaining towards the end of her S2's life that she had no space for updates and apps, and now I see why, the phone had 16gb like a lot of phones today, but the partitions were crap. She ended up keeping it as a spare phone, so only now did I look into this after doing a quick flash of a LP Rom and I couldn't even install a Pico Gaaps due to space issues.

So I followed the steps and have new partitions and just re-installed the Rom and Stock Gapps like I have on my S4!!! Thank you!
[Galaxy S II Android Development] Genebaby:
Looks like I may have to do this again as I can't mount my SDcard 0 partition, though I used CWM recovery and kernel from a link above. :(

I'm not sure what I can do differently.
[Galaxy S II Android Development] Skyline:
You have to format your sdcard0 through recovery before mounting it..

If u not do so..:)
[Galaxy S II Android Development] Genebaby:
I did that the first time and twice since but it won't let me mount it. Just says error.
[Galaxy S II Android Development] Genebaby:
Fixed it. Redid the whole thing the same only this time I mounted Sdcard0 right after formatting, this seems to be missing from the guide, so I didn't do it before, just the format, which worked, but then I couldn't mount it after installing the Rom and Gapps.

So I restored my backup and the system can now see Sdcard0, yay!
[Galaxy S II Android Development] wawa9292:
This one from Grigster was really suit mine well..

Good news that it get rid SOD issue on my device somehow.. :D

Edit : you guys can find that on page 5.. :D
[Galaxy S II Android Development] wawa9292:
pit work but wifi can't turn on

Sorry for my late report dude..

Your mod pit that I've request work as I expect..

and yeah, my system got 1GB, 10 Gb Data, preload 1Gb, 2.5 Gb Internal SD (storage)

but I have an issue about wifi (can't turned on)

I have tried so many various rom, kernel, gapps, trick, while using the pit from yours..

the result is, I'm only able to turn on wifi using stock aosp kernel..

then I try using back the pit from this thread and whala,,, I can turn on wifi on every rom and or kernel I flash..

may be you could fix that or something like that, if you have any free time.. =)

BTW, I'm using AOSB KK 1.3.7 and Dorimanx..
[Galaxy S II Android Development] MikiGry:
Odin got stuck in hidden.img (it is flashing it over 1O minutes without progress). What should i do ?

Wysłane z nexusowego-tablecika 7 ...
[Galaxy S II Android Development] Skyline:
Are you trying to flash stock rom?
[Galaxy S II Android Development] MikiGry:
[MENTION=5798657]sonupm[/MENTION]

I selected stock rom in pda.

Pit is pit section

+ checked repartition

And odin is stuck in hidden.img

Wysłane z nexusowego-tablecika 7 ...
[Galaxy S II Android Development] GreekDragon:
The stock rom how it ends? .tar?.tar.md5? also if you go to stock rom you need to put the stock PIT.
[Galaxy S II Android Development] Skyline:
Use any custom kernel.tar file which suitable for your rom in pda section of odin Or you can try it with only .pit file but it is not recommended but it works for me..plz if u wanna try..try on your own risk:good:
[Galaxy S II Android Development] MikiGry:
Ok

I have managed to recover my phone.

I have unplagged USB cable. Odin said fail and on the phone i saw a massage 'firmware update encorned an issue...' . I have put 3file gingerbread firmware and flashed it. Phone booted stock 2.3.4. Than flashed Stock 4.1.2 . And after that CM 11 by markox89.

Why did Odin hang on hidden.img ?

Wysłane z w pełni zoptymalizowanego Cyano-fonika 11 powered by DorimanX kernel....
[Galaxy S II Android Development] kai1313:
succeeded thanks for this guide
[Galaxy S II Android Development] jaswinprakash:
I partitioned my emmc long time ago I don't remember the pit file but it was a success.. its 1gb system, 4gb data and 9gb sdcard0. I done this for flashing gapps lollipop.. everything success but now I am using stock jellybean rom(4.1.2) the sdcard0 and data memory are correct but the system partition shows 528mb (attached picture). I don't know how this happen, any solution for this.? Also my internal memory not mounting to any pc or tv etc. As a mass storage. .but as samsung media device both storage connects on pc, I think its the problem of same thing I wrote above. . Plz help me any solution?
[Galaxy S II Android Development] Saber:
That's because you can't use 1gb system partition on stock ROM.

And for internal storage, have you tried formatting it to fat32 (instead of default in recovery).
[Galaxy S II Android Development] jaswinprakash:
Internel storage mounted on pc as mass storage early days..this problem occurred now days..I never formatted or changed rom ever for last 2 months. .
[Galaxy S II Android Development] soundznice:
Hello all,

Thanks a lot for the guide, i made a backup of all my data and i'm ready to repartition, however i have 2 questions:

1) I'm on the Resurection Remix rom (Lolipop 5.1.1) i've read on other threads that for some roms it needs something with the Preload ? Not sure if it's needed for the RR rom ?

2) I made a Nandroid backup but i wish to install the latest version of the RR rom - so when the repartition and format is done , how do you copy the new tar rom file into the internal storage ? I mean if i connect the phone to my PC will it be recognized so i can copy the tar file into it + gapps ?

Thanks to all !
[Galaxy S II Android Development] kai1313:
im on latest RR rom

1. i used the 1gb system 4gb data from the pit files attached at OP

2. im not clearly understand what you wanna do, but the latest RR rom is recommended by the author to do clean install for flashing it, if you need some data from your apps you can use TB to backed up the apps and restore it later after finish the "flashing"(rom and gapps) thing
[Galaxy S II Android Development] soundznice:
Perfect for the 1st question i will also use this one :)

For question 2, i mean, when you do the repartition with the pit file and then reboot to recovery, format the internal storage, then everything is empty so from there how do you copy the RR rom file (tar file of 237 mb) into the phone and install the rom ? i want to install all from scratch and not reapply my backup from Nandroid.
[Galaxy S II Android Development] kai1313:
you can copy the rom flashable zip on your external sd card 1st before doing PIT mod, we using a kernel to do PIT mod, so we have recovery too that can use to flash the rom zip
[Galaxy S II Android Development] soundznice:
Thanks a lot Kai1313 :) will do so - perfect now with your answers !
[Galaxy S II Android Development] silvers01:
im currently in slimsaber 5.1.1 stock kernel latest released..is it ok to flash those pit files with this rom?

im planning to use 1gb 3gb
[Galaxy S II Android Development] Saber:
Yes, it should work on most ROMs.
[Galaxy S II Android Development] cherryb8844:
Hello [MENTION=5811506]gsstudios[/MENTION]

Can you please guide me how to go back on stock system partition

I have 1GBsystem 4GB data partition in my phone and now I want to go back on my stock ROM 4.1.2 jellybean thanks in advance
[Galaxy S II Android Development] :
It's all in the first post. Just use the stock pit file that gsstudios provided at the end of the post and install it the same way you repartitioned before
[Galaxy S II Android Development] Kozmyk:
Excellent!!

I did the whole thing as per instructions.

All worked 1st time.

I flashed a CM 12.1 nightly ROM.

This apparently has it's own Recovery, which is very basic.

Works... but basic.

I tried reflashing the Gustavo's used in the repartitioning but the ROM doesn't like it and couldn't boot after Optimising Apps.

The answer was to flash the TWRP recovery linked in the CM 12.1 Nightly Builds "Important Informations".

That allowed CM to boot normally AND have a detailed recovery underneath.

Hope that helps anyone who gets stuck where I did.
[Galaxy S II Android Development] McHaber:
so there is NO option / workaround to increase System partition from 512Mb by flashing 4.1.2 stock ROM through Odin ? Could I have confirmation ? Or if there is some trick for stock ROM kindly assist

Many Thanks !
[Galaxy S II Android Development] Zile995:
You CAN use 1GB System partition on stock 4.1.2 ROM! :)
[Galaxy S II Android Development] McHaber:
Could you please point me HOW to achieve that ? I am struggling with this System partition increase on stock ROM already 1 week !

I used I91001GB_6GB.pit file from attachment zip file for flashing both I9100XWMS3 4.1.2 stock ROM (via Odin) and cm-12.1-20150921-NIGHTLY-i9100.zip via CWM recovery. I followed each step mentioned in guide - before flashing ROM I firstly flashed Gustavo kernel via Odin then, after reboot to CWM, in "mounts and storage" I formatted /storage/sdcard0, /data, /cache and /system.

Results:

For CM12.1 all is perfect - Titanium and Link2SD shows System - 1Gb, Data 6Gb, but for I9100XWMS3 stock only Data partition is increasing, System is always 528Mb
[Galaxy S II Android Development] Zile995:
Stock 4.1.2 sees 512MB only even if you have real 1GB partition.

Try 4.1.2 Neatrom, there you have 1GB in TB ;)
[Galaxy S II Android Development] McHaber:
Ah, so I was right. This does not work on official stock ROM from Samsung !
[Galaxy S II Android Development] cle_m_ent:
I have tried several pit file, recovery, odin version and my system file is stuck at 500Mb...
[Galaxy S II Android Development] makix13:
After flashing pit, format system from recovery (cwm or twrp)

S2 LA Cyanogenmod 5.1.1 [unofficial] [06/17] - Xposed [unofficial romracer's framework] - [rovo's beta 4 apk] - Viper4Android
[Galaxy S II Android Development] Hyflex:
This way always messes up the internal SD card, I tried it via cwm, twrp and via shell. I got it working via Windows but somehow after a day the internal SD card vanished...
[Galaxy S II Android Development] MikiGry:
[MENTION=3564095]Hyflex[/MENTION]

Was that card old ?
[Galaxy S II Android Development] Hyflex:
Internal not external
[Galaxy S II Android Development] MikiGry:
[MENTION=3564095]Hyflex[/MENTION]

Try to format it using recovery.
[Galaxy S II Android Development] Hyflex:
I've tried with cwm and twrp and even via shell but all 3 do nothing
[Galaxy S II Android Development] Draky50110:
Hello

Noob question : do I need to install CWM recovery before all the steps ?
[Galaxy S II Android Development] Skyline:
Actually you have to select

kernel.tar file that should have custom recovery - PDA section of odin and .pit file - PIT section
[Galaxy S II Android Development] Draky50110:
If I choose a Gustavo Kernel + PIT 1 GB/6GB, it will have a CWM after re-partitioning ?
[Galaxy S II Android Development] Skyline:
Yes afaik, After that Just follow the instructions in OP carefully
[Galaxy S II Android Development] kai_15:
hello anyone can help me.. I did this tutorial to increase my 2gb device storage for application allocation using 4gb pit using this tutorial http://xdaforums.com/galaxy-s2/development-derivatives/mod-partition-internal-memory-app-t2538947 and I succeed then my device storage is now 4gb for application allocation but why I can't install gapps other than pico? and when I see my system partition using titanum backup its 528mb only? is this different partition or same as what I did? thankyou
[Galaxy S II Android Development] GreekDragon:
You pitted only the storage, you used Data partition,If you want to increase system size, use [MENTION=5811506]gsstudios[/MENTION] attachment pit with 1GB System.
[Galaxy S II Android Development] kai_15:
---> you mean sir its different part in partitioning OK sir will do it. thankyou I thought they same. hehe
[Galaxy S II Android Development] ssanjy:
Great guide buddy......Stock partition was great in 5.1.1 DU but the new RR demanded more and I got your guide working great.....Thanks a ton...
[Galaxy S II Android Development] ssanjy:
Don't know where to post so I'm posting here...

I repitted my device to 1GB system and 4 GB data partition. However, after flashing RR 5.5.9 I today noticed that my Titanium Backup and the Disk Info showed different data partition sizes. Disk Info shows 4GB as I expected whereas TB showed 2.11 (same as before I guess). Also, though both apps show similar free space in data partition I'm surprised that only 700+ is free space whereas I had created a zip for user apps from my previous ROM (not pitted) and flashed it through recovery and no additional apps installed. Screens attached. Any other ways to know to confirm if my repitting is fine...Thanks

Add: Also the Storage section in the settings of the RR shows 2 GB of data partitions and 9 GB of Internal Storage..
[Galaxy S II Android Development] Saber:
You probably only have 2GB of usable space. It could be rom issue or issue with the recovery.
[Galaxy S II Android Development] ssanjy:
Solved it...I had made a flashable zip in my previous RR installation using Titanium Backup to restore user apps and data....guess it contained some user info which messed up the information shown.....Did a clean flash of RR and restored another user apps and data from my previous DU flasable Titanium Backup flashable zip and all working fine.....thanks