I’ve been having for some time problems with my Samsung Galaxy S2. The primary (DATAFS) partition is only 2GB large which is increasingly insufficient for apps and basic updates. I did a small search on the internet and found a few hints and tried them out. Not all of these were successful. In the end I succeeded, and here is what I did to get there:
So first of all I did a backup of all my data. A simple mounting as USB and copying all the data was basically sufficient. However one thing that needed special care (in my case) were SMS messages.
I used Kies to back them up, however after installing CyanogenMod these got lost. Since backing up to Kies only allows to restore to a phone with original SAMSUNG OS and getting back the SAMSUNG OS after repartitioning failed in my case, I lost all my old SMS messages :(.
Install ClockworkMod & flash a custom ROM
This is unfortunately a must, since a bare repartitioning made my phone OS to crash (don’t ask me why). So I ended up flashing CyanogenMod. I propose also flashing this outstanding mod using this install guide. For details I would refer to this guide, since it also includes the installation of ClockworkMod.
Create a Backup
This was only a safety measure, since restoring a full backup of the previous phone state (original Samsung OS) doesn’t work. Doing a backup of a clean CyanogenMod flash seems unnecessary to me.
Reformat the phone
Then I basically went through this Guide from xda-developers. I succeeded with this variant, since this uses the Android/Linux reformatting commands and the are clearly described (you simple know what you are doing) and this is not the case for flashing a PIT file of unknown origin with Heimdall.
After repartitioning, I got into some problems with apps that have already been installed. So I reflashed the phone after repartiotioning once again and everything works fine now.