[GUIDE][REPARTITION] Get extra 1.5 GB (2.4 GB for AOSP users) on user data!

Search This thread

forumber2

Senior Member
Feb 2, 2012
1,469
1,500
Istanbul
Hello XDA community :)

I'm using my GT-I9300 via reparititoned table for 4 months and it's working very well and very useful for Custom ROM users like us.

Here's stock 16 GB GT-I9300 has a partition table;

Code:
Model: MMC VTU00M (sd/mmc)
Disk /dev/block/mmcblk0: 15.8GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name      Flags
 1      4194kB  8389kB  4194kB               BOTA0
 2      8389kB  12.6MB  4194kB               BOTA1
 3      12.6MB  33.6MB  21.0MB  ext4         EFS
 4      33.6MB  41.9MB  8389kB               PARAM
 5      41.9MB  50.3MB  8389kB               BOOT
 6      50.3MB  58.7MB  8389kB               RECOVERY
 7      58.7MB  92.3MB  33.6MB               RADIO
 8      92.3MB  1166MB  1074MB  ext4         CACHE
 9      1166MB  2777MB  1611MB  ext4         SYSTEM
10      2777MB  3364MB  587MB   ext4         HIDDEN
11      3364MB  3372MB  8389kB               OTA
12      3372MB  15.8GB  12.4GB  ext4         USERDATA

As you can see, Samsung give 1GB to /cache partition and ~587MB to /preload partition. If your phone is out of OTA update service (if your phone is rooted, it's already out of OTA) they're the most useless things in your device.

Why /cache partition is soooooo big?

The system downloads Android OTA updates to /cache. If you want update your
phone 4.1.2 to 4.3 via OTA, the device needs to have enough space for store the update. That's why /cache partition is so big. But, if your device is rooted (or you're using a custom ROM), that doesn't matter because the device is out of OTA update service already.

What is the HIDDEN (/preload) partition?

It's just only for Samsung's craps. It only has a ringtone, and a video called Nature of .... (I don't remember the video name).

So, what should I do?

If you are a Custom ROM user or using device with root, you don't need those sooo big partitions. You should resize them.

What will this guide do to my device?

You will shrink those useless partitions and give more space to /data ( User data) partition.

Is there any risk?

Of course. Re-partition an Android device is one of the most dangerous thinks.

Is there any disadvantages?

Yes. If you done this guide and resize your partitions, you can't install any Official ROM via Odin.

Which types of packages that I cannot install via Odin after Re-partition?

You can't install Official ROMs (downloaded from sammobile.com, samsung-updates.com, etc). But you can install kernels, modems, bootloaders, recoveries via Odin without any problem.

What is gonna happen if I install an Official ROM via Odin after Re-partition?

Your device will be semi-bricked. Recovery cannot mount&format some partitions. But you can restore/unbrick your device with PIT file.

Which device that I can do repartition?

16 GB of GT-I9300 only. Please don't try it to other devices.

Can I install anything on CWM?

Of course. You can do anything like before on your device with Custom Recovery. You can install anything like always.

Is there any guide to revert it back?

Yes, in second post.

Is there anything you want to say before start operation?

Your device will be freshed after repartition, so you should make Nandroid Backup and backup your internal sdcard.

Screenshots​


ekceb.jpg
xpbs.jpg



Guide

* You have to use latest Philz Recovery on this operation. You can go back your favorite recovery again after repartition. And I am not responsible for any problems that on your device!

1 - Download "repart_16GB_GT-I9300_CWM.zip" or if you use AOSP and you hate sammy ROMs, download "repart_16GB_GT-I9300_CWM_AOSPv2.zip" from attachments and copy it to external sdcard.
2 - Make sure that you backup everything on your device
3 - Boot to recovery ( Latest Philz Touch)
4 - Install the zip file you've downloaded . After installation, device will reboot to recovery automatically.
5 - You can see some mount errors while booting recovery. Don't panic.
6 - Wipe Data/Factory Reset --> Clean to Install a New ROM (You may see some error, don't worry)
7 - Mounts and Storage --> format /data and /data/media (/sdcard)
8 - Bingo! Restore your system, or install a ROM.

That's it! After doing repartition (not AOSP one), your partition table will be;

Code:
Model: MMC VTU00M (sd/mmc)
Disk /dev/block/mmcblk0: 15.8GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name      Flags
 1      4194kB  8389kB  4194kB               BOTA0
 2      8389kB  12.6MB  4194kB               BOTA1
 3      12.6MB  33.6MB  21.0MB  ext4         EFS
 4      33.6MB  41.9MB  8389kB               PARAM
 5      41.9MB  50.3MB  8389kB               BOOT
 6      50.3MB  58.7MB  8389kB               RECOVERY
 7      58.7MB  92.3MB  33.6MB               RADIO
 8      92.3MB  193MB   101MB   ext4         CACHE
 9      193MB   1805MB  1612MB  ext4         SYSTEM
10      1805MB  1820MB  15.0MB  ext4         HIDDEN
11      1820MB  1828MB  8000kB               OTA
12      1828MB  15.8GB  13.9GB  ext4         USERDATA

As you see, we have +1.5GB on USERDATA partition.
 

Attachments

  • repart_16GB_GT-I9300_CWM.zip
    4.2 KB · Views: 6,127
  • repart_16GB_GT-I9300_CWM_AOSPv2.zip
    4.2 KB · Views: 3,075
Last edited:

forumber2

Senior Member
Feb 2, 2012
1,469
1,500
Istanbul
Reverting To Stock Partition Table

1 - Download "Odin3_v3.07_with_PIT_16GB_GT-I9300.zip" and extract it somewhere
2 - Download any stock ROM from sammobile.com or samsung-updates.com and uzip it.
2 - Open Odin, click "PIT" button and select "GT-I9300_16GB.pit"
3 - Click "PDA" and select official ROM that you've downloaded
4 - Click "Start"
5 - After installation, phone will be stuck at bootanimation, don't panic.
6 - Pull out battery, boot to recovery (you can see some mount errors, don't worry)
7 - Select "wipe data/factory reset" in recovery menu
8 - Select "reboot system now"
 

Attachments

  • Odin3_v3.07_with_PIT_16GB_GT-I9300.zip
    453.6 KB · Views: 4,060
Last edited:

Andro Boy

Senior Member
Sep 19, 2013
83
15
www.4pc-mobile.blogspot.com
Hi,
I have a question here please,
What if my device is formatted as f2fs not ext4, can i still use this guide ?

Cuz as i can understand if it worked it will format all the partitions to ext4 then if reformatted using recovery to f2fs is it gonna work?

Thanks.

Edit :
I used it & that;s really GREAT and HELPFUL , Thanks .

btw, @forumber2
It will be great if could put a swap partition in their , can i make it by my self ?
i saw the manual in the other post, but how i can make the software use it and recognize it??
 
Last edited:

cornelha

Senior Member
Dec 14, 2007
1,477
709
Cape Town
This seems really cool. I would just suggest you put some warnings up there in CAPS in RED, else people will start spanning your thread with how they screwed up their devices.
 

mattiadj

Senior Member
May 22, 2010
4,090
1,779
Francavilla al mare
It's possibile to make it also on s4?

if u need a tester consider me!

I have seen the code and seems to be simple but...send me a pm...for s4 will be brlliant with my intsd2extsd mod! :good:
 

forumber2

Senior Member
Feb 2, 2012
1,469
1,500
Istanbul
Hi,
I have a question here please,
What if my device is formatted as f2fs not ext4, can i still use this guide ?

Cuz as i can understand if it worked it will format all the partitions to ext4 then if reformatted using recovery to f2fs is it gonna work?

Thanks.

Of course you can use this guide, and yes f2fs gonna work like before ;)

It's possibile to make it also on s4?

if u need a tester consider me!

I have seen the code and seems to be simple but...send me a pm...for s4 will be brlliant with my intsd2extsd mod! :good:

PM has been sent ;)
 

Marvis21

Senior Member
Dec 4, 2013
91
39
Only thinking... Would it be possible to increase system in this way? For the 4.4.2 Stock for example?
Great work! :cowboy:
 

skyelm

Senior Member
Dec 26, 2009
128
58
Pretoria
Works On 32GB I9300 as follows

BACKUP-BACKUP-BACKUP -TO PC OR MicroSD
THIS WILL WIPE YOUR PHONE OF ALL CONTENTS-STUFF-DOCS-PICS-NANDROID EVERYTHING WILL BE GONE
YOU NEED A SD CARD TO REFLASH YOUR PHONE AFTER THIS
ALL CONTENTS-STUFF-DOCS-PICS-NANDROID EVERYTHING WILL BE GONE

hi guys i did this on my 32GB S3 and it worked flawlessly using @forumber2 zip by editing some values according to my phone storage and requirement.
@forumber2 can add on OP for those that want to do it for whatever partition on your phone

Mandatory Warning - Warning
your phone may die or not work ok forever if you act a fool and set too small partitions
it may just die to spite you or just for fun so be careful if you do this
do a backup because it will delete all your stuff, even cute puppy photos won't be spared
Warning - Warning

text to be typed is in green colour

you'll need these on your PC/Phone

PC
Text editor (Notepad++)
ADB (Android Commangdr or CMD works fine)
Archiver (7Zip)

Phone
insecure adb ( its here on XDA by Chainfire) http://forum.xda-developers.com/showthread.php?t=1687590
Rooted phone (its here on XDA by Chainfire)
parted (i attached it below)
Root Explorer (X-plore,Root Explorer, ES etc etc )


Steps

On Your Phone
1. Parted - using Root Explorer, this file should be put in "system\bin\" then change permission to rwxr-rx-r and REBOOT
2. Insecure adb - install as usual apk file

ON your PC:

3. Connect your phone to PC
4. Open CMD and check your phone is seen/available/online
4.1 type "adb devices" ( you should see a list with a number and device - your good to go else check if debugging is enabled on your phone)

5. Get partition sizes
5.1 type " adb shell "
5.2 type " parted /dev/block/mmcblk0 print "
this will give you a printout of your device partitions with names
Save this screenshot if you want to rollback to default values later on
a PIT file will also do the same thing via ODIN

6. extract the repart_16GB_GT-I9300_CWM.zip
7. open the extracted folder \META-INF\com\google\android\
8. open "update-binary" with Notepad++
9. change the following 5 lines to sizes you want

Very important
the last line(31.3GB) is from your print above on point 5.2
don't put numbers you from thin air - think about it

ui_print "Creating new partitions..."
parted /dev/block/mmcblk0 mkpart primary 92.3MB 193MB
parted /dev/block/mmcblk0 mkpart primary 193MB 1805MB
parted /dev/block/mmcblk0 mkpart primary 1805MB 1820MB
parted /dev/block/mmcblk0 mkpart primary 1820MB 1828MB
parted /dev/block/mmcblk0 mkpart primary 1828MB 31.3GB


10. after editing then save the file
drag it into the zip
then copy the zip to your phone and flash via CWM...done

now the pain starts of putting everything you've backed up back to your phone and install your apps for a small gain of 1.5GB... EISH NEH


First one is Cache =100MB
Second is System =1612MB
Third is Hidden/preload =
Fourth is OTA = 8MB
Fifth is UserData = 29.4GB

simple maths 193-92.3 = 100MB is patition size
the other way is to ask yourself how much space you want and add together with the last number with the size you want
"i want System to be 2GB=2000MB then 193+2000=2193MB"
don't be greedy and unreasonable and want space you don't have like 64GB on a 32GB S3... not going to happen, you'll kill your phone

rolling back is also the same way - remember the screenshot on point 5.2 YEAH that one you were suppose to save is needed here

---------- Post added at 04:48 PM ---------- Previous post was at 04:19 PM ----------

I'm going to shrink my system to 512MB and install CM or SlimKat , currently with preload and cache shrunk
yva6agap.jpg


Sent from my GT-I9300 using Tapatalk
 

KSKHH

Senior Member
Dec 28, 2012
895
282
Excellent man

I was struggling to install recent KK TW port due to less system file size. You solved my problem. I have created more than 2GB size of system now and all looks good.

Thanks a lot.:eek:
 
  • Like
Reactions: _-xXBilanoidXx-_

KSKHH

Senior Member
Dec 28, 2012
895
282
Only thinking... Would it be possible to increase system in this way? For the 4.4.2 Stock for example?
Great work! :cowboy:

Use attaches zip for creating system file system more than 2GB, which is needed for TW KK recent port by Archi.

This is full proof and running in my mobile without any issue. After installation of ROM around 400MB is free.

Do it on your own risk.

Best of luck.

Follow rest process of OP.
 
  • Like
Reactions: Marvis21

ninekaw9

Senior Member
Feb 17, 2008
246
135
Hey @forumber2, I'm interested in porting this mod to Note 2 N7100, can I port this mod and distribute? I have modified your update-binary to suit with N7100 partition table, going to try flashing the zip soon.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 70
    Hello XDA community :)

    I'm using my GT-I9300 via reparititoned table for 4 months and it's working very well and very useful for Custom ROM users like us.

    Here's stock 16 GB GT-I9300 has a partition table;

    Code:
    Model: MMC VTU00M (sd/mmc)
    Disk /dev/block/mmcblk0: 15.8GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
    
    Number  Start   End     Size    File system  Name      Flags
     1      4194kB  8389kB  4194kB               BOTA0
     2      8389kB  12.6MB  4194kB               BOTA1
     3      12.6MB  33.6MB  21.0MB  ext4         EFS
     4      33.6MB  41.9MB  8389kB               PARAM
     5      41.9MB  50.3MB  8389kB               BOOT
     6      50.3MB  58.7MB  8389kB               RECOVERY
     7      58.7MB  92.3MB  33.6MB               RADIO
     8      92.3MB  1166MB  1074MB  ext4         CACHE
     9      1166MB  2777MB  1611MB  ext4         SYSTEM
    10      2777MB  3364MB  587MB   ext4         HIDDEN
    11      3364MB  3372MB  8389kB               OTA
    12      3372MB  15.8GB  12.4GB  ext4         USERDATA

    As you can see, Samsung give 1GB to /cache partition and ~587MB to /preload partition. If your phone is out of OTA update service (if your phone is rooted, it's already out of OTA) they're the most useless things in your device.

    Why /cache partition is soooooo big?

    The system downloads Android OTA updates to /cache. If you want update your
    phone 4.1.2 to 4.3 via OTA, the device needs to have enough space for store the update. That's why /cache partition is so big. But, if your device is rooted (or you're using a custom ROM), that doesn't matter because the device is out of OTA update service already.

    What is the HIDDEN (/preload) partition?

    It's just only for Samsung's craps. It only has a ringtone, and a video called Nature of .... (I don't remember the video name).

    So, what should I do?

    If you are a Custom ROM user or using device with root, you don't need those sooo big partitions. You should resize them.

    What will this guide do to my device?

    You will shrink those useless partitions and give more space to /data ( User data) partition.

    Is there any risk?

    Of course. Re-partition an Android device is one of the most dangerous thinks.

    Is there any disadvantages?

    Yes. If you done this guide and resize your partitions, you can't install any Official ROM via Odin.

    Which types of packages that I cannot install via Odin after Re-partition?

    You can't install Official ROMs (downloaded from sammobile.com, samsung-updates.com, etc). But you can install kernels, modems, bootloaders, recoveries via Odin without any problem.

    What is gonna happen if I install an Official ROM via Odin after Re-partition?

    Your device will be semi-bricked. Recovery cannot mount&format some partitions. But you can restore/unbrick your device with PIT file.

    Which device that I can do repartition?

    16 GB of GT-I9300 only. Please don't try it to other devices.

    Can I install anything on CWM?

    Of course. You can do anything like before on your device with Custom Recovery. You can install anything like always.

    Is there any guide to revert it back?

    Yes, in second post.

    Is there anything you want to say before start operation?

    Your device will be freshed after repartition, so you should make Nandroid Backup and backup your internal sdcard.

    Screenshots​


    ekceb.jpg
    xpbs.jpg



    Guide

    * You have to use latest Philz Recovery on this operation. You can go back your favorite recovery again after repartition. And I am not responsible for any problems that on your device!

    1 - Download "repart_16GB_GT-I9300_CWM.zip" or if you use AOSP and you hate sammy ROMs, download "repart_16GB_GT-I9300_CWM_AOSPv2.zip" from attachments and copy it to external sdcard.
    2 - Make sure that you backup everything on your device
    3 - Boot to recovery ( Latest Philz Touch)
    4 - Install the zip file you've downloaded . After installation, device will reboot to recovery automatically.
    5 - You can see some mount errors while booting recovery. Don't panic.
    6 - Wipe Data/Factory Reset --> Clean to Install a New ROM (You may see some error, don't worry)
    7 - Mounts and Storage --> format /data and /data/media (/sdcard)
    8 - Bingo! Restore your system, or install a ROM.

    That's it! After doing repartition (not AOSP one), your partition table will be;

    Code:
    Model: MMC VTU00M (sd/mmc)
    Disk /dev/block/mmcblk0: 15.8GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
    
    Number  Start   End     Size    File system  Name      Flags
     1      4194kB  8389kB  4194kB               BOTA0
     2      8389kB  12.6MB  4194kB               BOTA1
     3      12.6MB  33.6MB  21.0MB  ext4         EFS
     4      33.6MB  41.9MB  8389kB               PARAM
     5      41.9MB  50.3MB  8389kB               BOOT
     6      50.3MB  58.7MB  8389kB               RECOVERY
     7      58.7MB  92.3MB  33.6MB               RADIO
     8      92.3MB  193MB   101MB   ext4         CACHE
     9      193MB   1805MB  1612MB  ext4         SYSTEM
    10      1805MB  1820MB  15.0MB  ext4         HIDDEN
    11      1820MB  1828MB  8000kB               OTA
    12      1828MB  15.8GB  13.9GB  ext4         USERDATA

    As you see, we have +1.5GB on USERDATA partition.
    30
    Reverting To Stock Partition Table

    1 - Download "Odin3_v3.07_with_PIT_16GB_GT-I9300.zip" and extract it somewhere
    2 - Download any stock ROM from sammobile.com or samsung-updates.com and uzip it.
    2 - Open Odin, click "PIT" button and select "GT-I9300_16GB.pit"
    3 - Click "PDA" and select official ROM that you've downloaded
    4 - Click "Start"
    5 - After installation, phone will be stuck at bootanimation, don't panic.
    6 - Pull out battery, boot to recovery (you can see some mount errors, don't worry)
    7 - Select "wipe data/factory reset" in recovery menu
    8 - Select "reboot system now"
    7
    I would love more space, especially as I haven't used stock in months ;)

    @forumber2 Amazing work man props to you for this. I can't wait to try out your AOSP version when it's ready:laugh::good:

    I like this! Thank you

    Going to attempt to create my own sizes to make it good for aosp i9300

    Sent from my GT-I9300 using Tapatalk

    @forumber2 did you ever get round to completing an aosp version?

    Sent from my SM-G900F using Tapatalk

    Here you are guys. I (finally) prepared AOSP version of this mod. I shrink /system partition to 600 MB (It's good for CM11 + Gapps) and give 900 MB to /data. So, we have more 2.4 GB on /data!

    You can download it on first page.

    Enjoy ;)
    7
    Hi,
    I have a question here please,
    What if my device is formatted as f2fs not ext4, can i still use this guide ?

    Cuz as i can understand if it worked it will format all the partitions to ext4 then if reformatted using recovery to f2fs is it gonna work?

    Thanks.

    Of course you can use this guide, and yes f2fs gonna work like before ;)

    It's possibile to make it also on s4?

    if u need a tester consider me!

    I have seen the code and seems to be simple but...send me a pm...for s4 will be brlliant with my intsd2extsd mod! :good:

    PM has been sent ;)
    5
    Works On 32GB I9300 as follows

    BACKUP-BACKUP-BACKUP -TO PC OR MicroSD
    THIS WILL WIPE YOUR PHONE OF ALL CONTENTS-STUFF-DOCS-PICS-NANDROID EVERYTHING WILL BE GONE
    YOU NEED A SD CARD TO REFLASH YOUR PHONE AFTER THIS
    ALL CONTENTS-STUFF-DOCS-PICS-NANDROID EVERYTHING WILL BE GONE

    hi guys i did this on my 32GB S3 and it worked flawlessly using @forumber2 zip by editing some values according to my phone storage and requirement.
    @forumber2 can add on OP for those that want to do it for whatever partition on your phone

    Mandatory Warning - Warning
    your phone may die or not work ok forever if you act a fool and set too small partitions
    it may just die to spite you or just for fun so be careful if you do this
    do a backup because it will delete all your stuff, even cute puppy photos won't be spared
    Warning - Warning

    text to be typed is in green colour

    you'll need these on your PC/Phone

    PC
    Text editor (Notepad++)
    ADB (Android Commangdr or CMD works fine)
    Archiver (7Zip)

    Phone
    insecure adb ( its here on XDA by Chainfire) http://forum.xda-developers.com/showthread.php?t=1687590
    Rooted phone (its here on XDA by Chainfire)
    parted (i attached it below)
    Root Explorer (X-plore,Root Explorer, ES etc etc )


    Steps

    On Your Phone
    1. Parted - using Root Explorer, this file should be put in "system\bin\" then change permission to rwxr-rx-r and REBOOT
    2. Insecure adb - install as usual apk file

    ON your PC:

    3. Connect your phone to PC
    4. Open CMD and check your phone is seen/available/online
    4.1 type "adb devices" ( you should see a list with a number and device - your good to go else check if debugging is enabled on your phone)

    5. Get partition sizes
    5.1 type " adb shell "
    5.2 type " parted /dev/block/mmcblk0 print "
    this will give you a printout of your device partitions with names
    Save this screenshot if you want to rollback to default values later on
    a PIT file will also do the same thing via ODIN

    6. extract the repart_16GB_GT-I9300_CWM.zip
    7. open the extracted folder \META-INF\com\google\android\
    8. open "update-binary" with Notepad++
    9. change the following 5 lines to sizes you want

    Very important
    the last line(31.3GB) is from your print above on point 5.2
    don't put numbers you from thin air - think about it

    ui_print "Creating new partitions..."
    parted /dev/block/mmcblk0 mkpart primary 92.3MB 193MB
    parted /dev/block/mmcblk0 mkpart primary 193MB 1805MB
    parted /dev/block/mmcblk0 mkpart primary 1805MB 1820MB
    parted /dev/block/mmcblk0 mkpart primary 1820MB 1828MB
    parted /dev/block/mmcblk0 mkpart primary 1828MB 31.3GB


    10. after editing then save the file
    drag it into the zip
    then copy the zip to your phone and flash via CWM...done

    now the pain starts of putting everything you've backed up back to your phone and install your apps for a small gain of 1.5GB... EISH NEH


    First one is Cache =100MB
    Second is System =1612MB
    Third is Hidden/preload =
    Fourth is OTA = 8MB
    Fifth is UserData = 29.4GB

    simple maths 193-92.3 = 100MB is patition size
    the other way is to ask yourself how much space you want and add together with the last number with the size you want
    "i want System to be 2GB=2000MB then 193+2000=2193MB"
    don't be greedy and unreasonable and want space you don't have like 64GB on a 32GB S3... not going to happen, you'll kill your phone

    rolling back is also the same way - remember the screenshot on point 5.2 YEAH that one you were suppose to save is needed here

    ---------- Post added at 04:48 PM ---------- Previous post was at 04:19 PM ----------

    I'm going to shrink my system to 512MB and install CM or SlimKat , currently with preload and cache shrunk
    yva6agap.jpg


    Sent from my GT-I9300 using Tapatalk