Originally Posted by breckbit
Seems you don´t realize what the thread-opener is writing about... It´s not that simple to repartition the emmc...
I interpreted Zamboney's post as a little bit kidding, at least I hoped it was?
But whatever, if you know linux, it's not that complicated.
For others this might get difficult.
You need to calculate proper values, to be successful.
But, you can always resolve from failures by restoring the old partition theme.
You can do this with parted, fdisk, etc.
You also have the option to install your standard PIT file via Odin or Heimdall.
At the end, my main problem was to get to the point to be able to use adb as root.
First you need a recovery which starts adbd.
With a cleared system partition, you get some difficulties.
Some recoveries even don't start adb.
Some want to start it, but don't have one included, so they try to start adbd from somewhere inside /system.
Others (like the stock recovery) don't work with adb shell. That is because the standard way to start the shell is to invoke /system/bin/sh.
Then I couldn't use adb push to transfer files to the system partition. I think this also was because of the cleared system partition.
After finding a backup, which installed some important files on the writable part of my system partition, I could do much more. But in my case only the first 15MB could be written until the CWM restore stopped at a bad block. Btw. you can't use the partition image based Odin for this kind of restore, it has to be file wise (recovery or adb pull if that works).
Then you have the problem, that repartitioning also removes all data in the affected partitions. So you have the same empty system partition again.
Therefore I should have made a backup of this reduced system partition before repartitioning, but I didn't.
I had also done an adb pull / before, so I had all files on my PC, which I managed to write back to the /system partition with adb push (if that works!).
The Thor kernel/recovery derived from GB is awesome at least for restoration purposes, as it has all important tools in it's /sbin, which is part of the recovery (remember, /system is not).
So as I remember, you can do all this with the Thor kernel alone.