[Galaxy S III General] Hawaii_Beach:
You might have seen this guide on XDA, but is out-dated and only seems to work on stock firmware. What about people people running CM13, will it work, or will it brick your device?

This guide is updated and works with CM13 tested by me, it was also written with the i9300 16GB model in mind.

FAQ: next post

I take NO responcebility for any bricks, that's on you. Exactly like rooting, or installing anything 3:rd party (right?). Either is is my responsibility if any data is lost.

If you don't follow the guide, and adventure on your own, there's no one to blame but yourself when **** hits the fan.

Now, let's have a look at my partitions before modifying them (kB):

Filesystem Total Used Available Use% Mounted on
mmcblk0p8 1032088 17732 1014356 2% /cache
mmcblk0p12 11901576 6355436 5546140 53% /data
mmcblk0p12 11901576 6355436 5546140 53% /sdcard
mmcblk0p10 564416 8964 555452 2% /preload
mmcblk0p9 1548144 632704 915440 41% /system
mmcblk0p3 20144 9568 10576 47% /efs

As you can see, stock paritioning is bad. /preload and /cache has a lot of available space which takes up a lot of unnecessary space.

We can minimize all the partitions and use the space to increase your internal storage, neat; let's do it!

1. Check for buggy eMMC chip

First of all we'll be checking if your chip is possible to SDS (sudden death syndrome) which basicly corrupts your eMMC (internal storage) chip.

This only effects the 16GB model, if you're on another model just skip to the flashing part.

A. Download the app eMMC Brickbug Check app from the Play Store.

B. Check eMMC

Check if your device has the following under eMMC chip:

Type: VTU00M

FwRev: 0xF1

If the values match, you should update to the latest ROM + kernel available ASAP, which should fix SDS, if you don't; your eMMC chip might corrupt under the process of flashing REPIT.

2. Flashing guide

A. Before we begin

- Make sure that you're running the latest version of TWRP (i9300, i9305). Any other recovery and the script will NOT work.

- Do NOT continue if you're running stock, or planning to do so. This script is only tested on official CM13.

- Make sure you're plugged into a power source, and not a computer; or else partitions may fail to un-mount.

- Do a backup of your rare cat images so they don't get lost in the worst scenario.

- (optional) If you want to configure the script, see this.

B. Download required tool

We'll be using ourselves with the tool REPIT made by [MENTION=4141005]Lanchon[/MENTION].

Without it I wouldn't make this guide as it is the only(CN) flexible tool for modifying partitions in Android.

Download the required flashable zip file: [updated 2017-01-22]

- i9300 - here

- i9305 - here

Make sure you DON'T rename it; copy it to your device.

C. Boot into recovery - volume up + home button + power button when powered off

D. Flash the zip file

- This process is a really long one, do NOT interrupt the process.

- If the flashing fails, it may tell you that it copied itself to /tmp, navigate to /tmp and flash the script again.

- If x partition fails to un-mount, try un-mounting it via TWRP > Mount.

Inside TWRP navigate to Install > Navigate to saved REPIT and select > Swipe to confirm flash.

3. Done!

You may now restart your device and verify the extra utilized internal storage.

It's not that hard eh? That's because [MENTION=4141005]Lanchon[/MENTION] did a great job on his project available on GitHub. Him and I worked closely on #22 to add support for the i9300.

After re-partitioning (still kB):

Filesystem Total Used Available Use% Mounted on
mmcblk0p8 32240 4200 26404 14% /cache
mmcblk0p12 13457732 574316 12199796 4% /data
mmcblk0p12 13457732 574316 12199796 4% /sdcard
mmcblk0p10 8048 4120 3520 54% /preload
mmcblk0p9 1548144 638168 909976 41% /system
mmcblk0p3 20144 9568 10576 47% /efs

It seems like we've gained 1.5GB in local storage, hoorah! Totally didn't steal from other partitions :D

Worth it? (my opinion)

Unless you REALLY need that 1.5GB of extra storage; NO, not at all.

On Android 6+ (CM13) sd-cards are now implemented like normal internal storage. Just buy a 8GB micro sd-card which costs a couple of bucks these days and save yourself some trouble.

Not only that, recently a user possibly got SDS (sudden death syndrome, do your own research) after flashing REPIT. Did my own research and I updated the guide with a step to check for this buggy eMMC chip.

Credit:

- [MENTION=4141005]Lanchon[/MENTION] for REPIT.

- [MENTION=4473547]forumber2[/MENTION] for original guide.