[Samsung Galaxy S9 & S9+ Cross Device Development] JeyKul:
Hej, in this thread i want to show you, how you actually repartition your device.

PLEASE READ THE WHOLE THING FIRST​

​

First of all we are gonna read the disclamer:​

​

IF YOU ARE DOING THIS, THEN:​

Your Warranty is void

You know that the chance isnt 0 that you can brick your device

You know that your WHOLE internal storage is getting wiped. Back it up!!! (yes, eventhings like photos, videos and music will be erased)

YOU ARE AWARE THAT THIS HAS BEEN TESTED ON AN SM-G965F ONLY

ME, JEY ISNT GOING TO PAY FOR YOUR BRICKED DEVICE. IF YOU BRICKED IT, AND ITS DEAD, YOU WILL HAVE TO GET A NEW DEVICE YOURSELF.

Now we ask the question: Why would I want to Repartition my device?

There a few easy reasons:

Installing F-Variant Zip of Noble Rom

Getting more storage for Internal data (shrinking the System and Vendor partition)

Credits:

THANKS TO:

CORSICANU for giving me a point on where to start

ALUCARD for once showing me how to repartition my S9+

What do I need to begin repartition my Exynos 9810 Device?

ADB Tools installed on your Mac, Linux or Windows Machine

Parted (GET IT HERE)

A HEALTY USB CABLE

Knowledge on how to flash stock rom, IF you want to go back to stock partitions.

TWRP (Maybe another recovery also works, report it, if you try it)

Please be aware that this doesnt convert your SM-G/N960/5/F to a SM-G/N960/5/N!!!!!!!!!!!

After you have Installed ADB on your Machine, boot your Phone to TWRP.

Then start the terminal.

do

adb push /path/to/parted /sbin

Then do

adb shell

now you should be in the shell of your phone.

Check if parted is reconized by type in

parted /dev/block/sda p

Backup this list of partitons!!

If this doesnt work or show your partitions, either change the recovery to latest TWRP or redo the adb push command.

if it worked, do parted /dev/block/sda

now you are in the parted program.

In the list you may see "Name" and below it various names. Check the number the partitions SYSTEM, VENDOR, ODM, CACHE and USERDATA got.

On my S9+ it was

18 for SYSTEM

19 for VENDOR

20 for ODM

21 for CACHE

25 for USERDATA

ITS MAYBE DIFFERENT FOR YOU

delete these partitions by type in

rm (your partitions number)

If you see something like

"Warning: Partition /dev/block/sda21 is being used. Are you sure you want to continue?"

type in yes.

Reboot to TWRP now.

Now you need to Push parted again.

adb push /path/to/parted /sbin

Then do

adb shell

Now we create the Partitions:

do

parted /dev/block/sda

This part is a little bit more complicated.

In this list of the partitions, you can see a Start and a End size. The Size between these numbers will result in the size of the Partition.

What does that mean?

If we want to create a partition, we need to calculate our size of the partitions. for example:

SM-G965F's system is START 282MB | END 4895MB. In result it makes 4614MB in System.

To make System bigger, for example 5GB, we have to add 5000MB to the START partition. Lets do make a easy way to calculate it. START + WANTED PARTITION SIZE = END PARTITION | 282 + 5000 = 5282

Now we make the partitions:

For system you type in:

mkpart SYSTEM ext4 START END

on START you put in the START value

on END you put in YOUR end value.

For Vendor you type in

mkpart VENDOR ext4 START END

on START you put in the LAST PARTITIONS END value

on END you put in YOUR end value

For ODM you type in:

mkpart ODM ext4 START END

on Start you put in the LAST PARTITIONS END value

on END you put in YOUR end value

For CACHE you type in:

mkpart CACHE ext4 START END

on Start you put in the LAST PARTITIONS END value

on END you put in YOUR end value

For USERDATA you type in:

mkpart USERDATA ext4 START END

on Start you put in the LAST PARTITIONS END value

on END you put in YOUR end value

here you can put in your full phones storage. My s9+ is 64GB, so i put there 63000 as end value.

HOLD UP, WE ARN'T DONE YET

Now we have to NAME the partitions, so TWRP and the KERNEL knows what to do:

name (partition number) (partiton name)

on my S9+ for example:

name 18 SYSTEM

name 19 VENDOR

name 20 ODM

name 21 CACHE

name 25 USERDATA

Now we restart to TWRP once again.

Now we have to go to wipe > advanced wipe

now Select System > Repair or Change File System > Change File System and tap on EXT4

Do the same for Vendor, ODM and Cache.

after that is done, go back to TWRP's home menu and go to Wipe again. There you click on Format Data and type in yes.

Reboot to TWRP again. This will be the final restart.

Now you can install a rom you want to install.

IF YOU HAVE ANY QUESTIONS, MESSAGE ME ON TELEGRAM: @JeyKul