=============================================
DISCLAIMER: I AM NOT RESPONSIBLE IF YOU BRICK / RUIN YOUR PHONE IN ANY WAY.=============================================
BASIC COMPUTER SKILLS REQUIRED
IF YOU DO NOT KNOW WHAT ROOT IS ... YOU PROBABLY DON'T NEED IT
PROCEED WITH CAUTION
SDSPLIT repartition your SDcard Fat32 / Ext2
1 Must have a Custom ROM installed!2 Install the sdsplit executable to your phone. To so this, open the 'terminal' application / ADB Shell and type the following commands at the prompts:
(Note: you will need an internet connection on your phone for this step)
If you are running these cmds from ADB Shell you do not need to type "su" as you will already have root
$ su
# cd /data
# wget
# chmod 555 sdsplit
# exit
3 Decide the size of your FAT partition:
You should use one of two approaches to decide the size of your FAT partition. The first one involves simply directly deciding this size (i.e. I want a 5G FAT partition). In this case, the EXT2 partition will be the remainder of the card.
size_of_fat_partition = size
The second method is based upon the fact that you want to decide the size of the EXT2 partition and would like the FAT partition to be the remainder of the card. In this case, the size of the FAT partition will be based on the size of your sdcard and the size of the EXT2 partition that you want. Use this formula to calculate it:
size_of_sdcard - size_of_ext2_partition = size
So, if you have an 8GB sdcard and want 1GB of space for apps on your EXT2 partition, use 7000M for the FAT size.
No matter which method you use, you will need to specify either bytes (no parameter), kilobytes (K) or megabytes (M) . So, for a 5G partition would use a 5000M size parameter.
Note: The size parameter is currently case sensitive, use 7500M, not 7500m!
4 Backup your SDCard onto your PC
Note: To figure out how much data (in K) you have on you FAT partition, you can type the following in your terminal / ADB Shell (the sdcard can not be mounted for this cmd to work):
$ du -s /sdcard
Note: to find out how much free space is left on your /data partition type (see available)
$ df /data
5 Run sdsplit. Use the size from step 3 below (do not forget the "M" in size if you are specifying megabytes): (Note: you will need an internet connection on your phone for this step)
Note: If you are using the JF1.5 update, you should put a -nc at the end of the commands below since system configuration is not needed!
Non JF1.5 Build:
$ su
# /data/sdsplit -nd -fs size
# exit
JF1.5 Build:
$ su
# /data/sdsplit -nd -fs size -nc
# exit
Please, remember to record the output of this stage if you run into a problem. There will be a permanent record of it in, /data/sdsplit.log.
6 Reboot your phone, via terminal:
reboot
Via ADB Shell:
adb shell reboot
7 Restore your data from your PC to your Fat partition of your SDCard.
8 You're done! You should have two partitions now on your sdcard. The FAT one mounted at /sdcard and the EXT2 one mounted at /system/sd.
DO IT AGAIN:
If you simply want to change the size of your partitions because you are not happy with them after the first run, and you have not wiped or reinstalled your system in the mean time, repeat step 5 with the -fu and -nc options at the end. Be aware that this will delete any data you have put on the EXT2 partition. You may do this as many times as you like.
/data/sdsplit -nd -fs size -fu -nc
i.e.
$ su
# /data/sdsplit -nd -fs 7000M -fu -nc
# exit
No comments:
Post a Comment