[GUIDE] How to easily re-partition your phone to increase your Data Storage

Search This thread

fishears

Inactive Recognized Developer
Dec 15, 2010
2,870
3,126
github.com
I don't think anyone has posted a tutorial for this on XDA yet (apologies if they have!!!) and the Google Translate of Mur4ik's original instructions on 4PDA is pretty poor so here's what I did to get my phone set up.

What does this do?
This process flashes a modified KDZ which will change the way your phone's memory is partitioned. The result will be that you have 234mb of internal storage for your apps, 150mb for the system and 64mb for cache.
According to Mur4ik, this is the optimum allocation of memory for best performance.
Once this process has been done, any ROM that you flash will have more internal storage space without any further modification. You should not flash a data2system rom.
With this method you will still be able to apply update.zip files with recovery (like Mur4ik's rom updates). This feature does not work on data2system roms.

Things you'll need:
1) KDZ Updater
2) Mur4ik's modified KDZ (MD5SUM: e582d471ed9aede3dd9279b20f7a948c)

Assumptions:
1) You know how to back up your ROM
2) You have access to a Windows PC with drivers installed for your phone

First of all you should back up your current ROM with recovery.

OK, let's get started:
  1. Turn the phone off, remove the battery, SIM & SD Card.
  2. While holding Volume-Down, connect the phone to your PC and run KDZ Updater. The phone display will show "Download Mode".
  3. Select "CS_Emergency" Phonemode in KDZ Updater and select the "20E 234 150 64.kdz" KDZ file downloaded above. Then click "Launch software update"
    Screenshot-Software%20update%20%5BKDZ%5D.png
  4. The update will now start. During the update the phone screen will display "Download Mode" and eventually an animation of the battery cover being replaced. At this point you can disconnect the phone and replace your SIM, SD Card and battery *
  5. Put your phone into fastboot mode (hold Camera and press Power) - the fastboot screen will now be BLUE and have white text displayed on it (this is correct).
  6. Connect to your PC and in a terminal type:
    Code:
    fastboot erase system
    fastboot erase userdata
    fastboot erase cache
  7. flash recovery back on to your phone
    Code:
    fastboot flash recovery recovery.img
  8. Boot your phone into fastboot or recovery
Your phone is now ready to go and you can either restore a backup with recovery or flash a ROM with fastboot. You must be sure that your backup or fastboot images do not exceed the sizes stated above. So, your system.img must not be larger than 150mb, your data.img must not be larger than 234mb and your cache.img no larger than 64mb.

Note: If you were already using a data2system rom and want to restore your backup after carrying out this process then you must do the following in the backup's folder on your sdcard:
- replace your boot.img with one from a standard version of your rom (i.e. non-data2system)
- rename your "data.img" to "system.img" and your "system.img" to "data.img"
- delete the file "nandroid.md5"
- open an adb shell (or run terminal on your phone) and type "su" <enter>, "cd" to the backup folder, type "md5sum *.img > nandroid.md5" <enter>
- you can then restore the backup with recovery.

How to restore your phone to standard memory allocation?
Follow the steps above but use any standard fastboot enabled kdz (like this one). Then flash your rom or restore your backup - just remember you now have a smaller data partition ;)

Special thanks to Mur4ik, EazyLuke & M1st3r1
You do of course follow these instructons at your own risk. Have fun!
*For me, the update process continued successfully beyond this point but some people have reported errors after the animation appeared so it is safer to remove the USB cable here.
 
Last edited:

fishears

Inactive Recognized Developer
Dec 15, 2010
2,870
3,126
github.com
many thanks for your tutorial!
What are the advantages compared to d2sys of lavero.burgos with anton_ch metod?
This method means you can flash any custom rom and it will be data2system automatically instead of having to wait for someone to convert it. Plus you can use your existing backups.


Sent from my GT540 using XDA Premium App
 
  • Like
Reactions: slaj76

gizmo001i

Senior Member
Apr 22, 2011
74
12
Should not the type of phone in KDZ Updater be 3GQCT instead of CDMA which is what is shown in your picture? Just a thought incase it bricks anyones phone :)
 

gizmo001i

Senior Member
Apr 22, 2011
74
12
OK, I have a bit of a problem. The KDZ Update has stopped and my phone has come up with a load of writing which says
[Blue Error Handler] Arm11 is crashed
[Press Volume Up Key] Rebbot&Savelog
[Press Volume Down

Linux Kernel Panic
Process init 9pid: 1)

followed by a load of codes. Does anyone have any ideas?
 

fishears

Inactive Recognized Developer
Dec 15, 2010
2,870
3,126
github.com
OK, I have a bit of a problem. The KDZ Update has stopped and my phone has come up with a load of writing which says
[Blue Error Handler] Arm11 is crashed
[Press Volume Up Key] Rebbot&Savelog
[Press Volume Down

Linux Kernel Panic
Process init 9pid: 1)

followed by a load of codes. Does anyone have any ideas?
Did the kdz update say "finished"? Or did it hang before then?


Sent from my GT540 using XDA Premium App
 
  • Like
Reactions: slaj76

EazyLuke

Senior Member
Oct 19, 2010
219
32
I think it's fine if it stops at 212, as far as I remember mine stopped also at 212.
Do you do the process without the battery? (you should)
And at some point the phone shows an animation that tells to put the battery back in. I think at this point it's finished.
 

pcworks

Member
Sep 12, 2009
20
2
This happened to me as well. I fixed it by putting sim, sdcard and battery back-in.
Then re-booted to fastboot using camera button + inserting usb cable. Fastboot came up with blue screen.
Then I ran in cmd

fastboot erase system
fastboot erase userdata
fastboot erase cache

fastboot flash recovery recovery.img

rebooted to fastboot again

then flashed M4 using fastboot and then rebooted and I got my phone back.

Phone showed 234mb of storage free on re-boot
 

gizmo001i

Senior Member
Apr 22, 2011
74
12
re-downloaded the kdz file and it all went well this time, so the file must have got mucked up a little during download. Either that or it those pesky LG gremlins playing about again. Thanks for everyones help though. I did have a little wobble of a panic for a while there lol.
 

fishears

Inactive Recognized Developer
Dec 15, 2010
2,870
3,126
github.com
re-downloaded the kdz file and it all went well this time, so the file must have got mucked up a little during download. Either that or it those pesky LG gremlins playing about again. Thanks for everyones help though. I did have a little wobble of a panic for a while there lol.
Glad iit worked for you.


Sent from my GT540 using XDA Premium App
 
  • Like
Reactions: slaj76

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    I don't think anyone has posted a tutorial for this on XDA yet (apologies if they have!!!) and the Google Translate of Mur4ik's original instructions on 4PDA is pretty poor so here's what I did to get my phone set up.

    What does this do?
    This process flashes a modified KDZ which will change the way your phone's memory is partitioned. The result will be that you have 234mb of internal storage for your apps, 150mb for the system and 64mb for cache.
    According to Mur4ik, this is the optimum allocation of memory for best performance.
    Once this process has been done, any ROM that you flash will have more internal storage space without any further modification. You should not flash a data2system rom.
    With this method you will still be able to apply update.zip files with recovery (like Mur4ik's rom updates). This feature does not work on data2system roms.

    Things you'll need:
    1) KDZ Updater
    2) Mur4ik's modified KDZ (MD5SUM: e582d471ed9aede3dd9279b20f7a948c)

    Assumptions:
    1) You know how to back up your ROM
    2) You have access to a Windows PC with drivers installed for your phone

    First of all you should back up your current ROM with recovery.

    OK, let's get started:
    1. Turn the phone off, remove the battery, SIM & SD Card.
    2. While holding Volume-Down, connect the phone to your PC and run KDZ Updater. The phone display will show "Download Mode".
    3. Select "CS_Emergency" Phonemode in KDZ Updater and select the "20E 234 150 64.kdz" KDZ file downloaded above. Then click "Launch software update"
      Screenshot-Software%20update%20%5BKDZ%5D.png
    4. The update will now start. During the update the phone screen will display "Download Mode" and eventually an animation of the battery cover being replaced. At this point you can disconnect the phone and replace your SIM, SD Card and battery *
    5. Put your phone into fastboot mode (hold Camera and press Power) - the fastboot screen will now be BLUE and have white text displayed on it (this is correct).
    6. Connect to your PC and in a terminal type:
      Code:
      fastboot erase system
      fastboot erase userdata
      fastboot erase cache
    7. flash recovery back on to your phone
      Code:
      fastboot flash recovery recovery.img
    8. Boot your phone into fastboot or recovery
    Your phone is now ready to go and you can either restore a backup with recovery or flash a ROM with fastboot. You must be sure that your backup or fastboot images do not exceed the sizes stated above. So, your system.img must not be larger than 150mb, your data.img must not be larger than 234mb and your cache.img no larger than 64mb.

    Note: If you were already using a data2system rom and want to restore your backup after carrying out this process then you must do the following in the backup's folder on your sdcard:
    - replace your boot.img with one from a standard version of your rom (i.e. non-data2system)
    - rename your "data.img" to "system.img" and your "system.img" to "data.img"
    - delete the file "nandroid.md5"
    - open an adb shell (or run terminal on your phone) and type "su" <enter>, "cd" to the backup folder, type "md5sum *.img > nandroid.md5" <enter>
    - you can then restore the backup with recovery.

    How to restore your phone to standard memory allocation?
    Follow the steps above but use any standard fastboot enabled kdz (like this one). Then flash your rom or restore your backup - just remember you now have a smaller data partition ;)

    Special thanks to Mur4ik, EazyLuke & M1st3r1
    You do of course follow these instructons at your own risk. Have fun!
    *For me, the update process continued successfully beyond this point but some people have reported errors after the animation appeared so it is safer to remove the USB cable here.
    2
    only one question (if it is already there i'm sorry)

    can i delete this re-partion (not soon) ?
    The way to undo this is to flash a normal, fastboot 2.1 KDZ.


    Sent from my GT540 using XDA Premium App
    2
    Should not the type of phone in KDZ Updater be 3GQCT instead of CDMA which is what is shown in your picture? Just a thought incase it bricks anyones phone :)
    No. That's not important in CS_EMERGENCY mode.


    Sent from my GT540 using XDA Premium App
    2
    Can't I flash with the usual way where you leave the battery, sim and SD inside?
    Of course you can but this way is safer...


    Sent from my GT540 using XDA Premium App
    2
    Could someone maybe post a md5 sum for this KDZ file? I wouldn't like to flash a KDZ that may have been corrupted during download... :eek:
    e582d471ed9aede3dd9279b20f7a948c

    I'll add it to the guide...
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone