I have made this really easy to partition your sdcard while preserving all data on the fat32 partition.This one is used to setup your sdcard for a2sd and swap instead of using the built in partitioning program, which will destroy all your fat32 contents. Eventually I will add support for backing up the ext partition if you want to resize the existing partitions.
You have the option of specifying the size of the partitions in /sdcard/sdpartmap.txt
To specify your own sizes and filesystem do..
c:\xxxxxx\adb shell / # echo 150 200 ext4 > /sdcard/sdpartmap.txt
The 1st number is a2sd data partition (system/sd or sd-ext mounted at /dev/block/mmcblkXp2)
The 2nd number is swap partition. (mounted at /dev/block/mmcblkXp3)
The 3rd entry will be for ext3 or ext4 FS
It's best to do a2sd data in increments of 256MB and
swap in increments of 32MB
If you don't specify an ext type it will default to ext2.
If there is no sdpartmap.txt file the partitions will be automatically set to
a2sd data = 256
swap = 0
ext type = ext2
Make sure you have enough free space on the card to accommodate the extra partitions until I incorprate checks for that.
1. Download unCoRrUpTeD_SD--PARTITIONER.zip
2. Reboot into recovery
adb shell reboot recovery
adb push c:\xxxxxx\sdpart /tmp/
adb shell /tmp/sdpart.sh
adb shell chmod 777 /tmp/sdpart.sh
adb shell reboot recovery (might need to do adb reboot recovery or just reboot into recovery) adb shell mount /sdcard cp -a /sdcard/sdpart/* /tmp /tmp/sdpart.sh