My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Fat_Ext2_Partition  
How To: Partition SDCard Fat32 / Ext2
Featured
Updated Feb 4, 2010 by Jon.Pezz...@gmail.com

=================================================================================

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 http://64.105.21.209/bin/lib/droid/sdsplit
# 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


Problem Report:

If your run into any serious problems, there is a log file located at: /data/sdsplit.log if you can get it off your phone.

To Continue on please go to Setting up your phone to work with Apps 2 SD (symlinks)

Comment by thacompa...@gmail.com, Jun 16, 2009

Uhm, huh?

Comment by joshua.k...@gmail.com, Jun 28, 2009

Hi, the http link on top downloaded v1.0 of sdsplit via wget on the phone. But if you click on the link it takes you to v1.7 of the file. Any idea how that happened?

Apart from that, it was aces. Thanks!

Comment by jjb...@gmail.com, Jul 7, 2009

I'm trying to do this on a 16gb card. How long should I see the Creating FAT32 filesystem message running JF1.5 setting FAT to 15000M. It's been on that message for about 5 minutes. Do I panic?

Comment by jjb...@gmail.com, Jul 7, 2009

This process froze my phone for 60 minutes. I pulled the battery to finally exit.

Comment by jjb...@gmail.com, Jul 7, 2009

I tried again with a FAT32 if 14000M and it worked like a charm!!! Now to read on 'how to use'.

Comment by hernanto...@gmail.com, Aug 6, 2009

works like a charm, thanks!

Comment by jcap...@gmail.com, Aug 14, 2009

There is an error in sdsplit, the path to sh is usually /sbin/sh

Comment by stef...@gmail.com, Aug 18, 2009

Excellent guide, went without a hitch, many thanks.

Comment by gbs....@gmail.com, Aug 20, 2009

why with my 8G sdcard when i run the Non JF1.5 Build commands: $ su # /data/sdsplit -nd -fs 7000M its says /data/sdsplit not found? i also put before those commands:$ su # cd /data # wget http://64.105.21.209/bin/lib/droid/sdsplit # chmod 555 sdsplit # exit and it appeals download 100% and i dont know why now. can someone help me out?

Comment by chudz...@gmail.com, Aug 24, 2009

Thanks, boss! the ext2 partition worked fine, but the FAT32 partition formatting failed. Here is an output:


Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 1 24415 781272 b Win95 FAT32 /dev/block/mmcblk0p2 24416 31000 210720 83 Linux

Command (m for help): The partition table has been altered!

Calling ioctl() to re-read partition table


+Creating FAT32 Filesystem mkdosfs: no such tool


+Mounting FAT Filesystem mount: mounting /dev/block/mmcblk0p1 on /sdcard failed: Invalid argument


I can run the partition again, but will I lose the apps that are placed on there from apps2sd?

Any help would be appreciated.

Comment by antonio....@gmail.com, Aug 31, 2009

After installing Haykuro firmware, sdsplit does not work completely but this wiki finishes the process.

http://android-dls.com/wiki/index.php?title=Haykuro_Apps_to_SD

Comment by mlpga...@gmail.com, Sep 9, 2009

does this still work?

Comment by tsug...@gmail.com, Sep 14, 2009

i'm trying to do this via the terminal emulator on my rooted t-mobile mytouch 3g and it won't allow me to type in any numbers...any workarounds?

Comment by ruslan1...@gmail.com, Sep 24, 2009

Thank you guys for this info. I just would like to mention to all new people is that all this cmds are typed on the PC, not the Cellphone. I found that they do the same if run from the cell but it made me confused because it shows errors. Great job. Thanks.

Comment by nat...@petralian.com, Oct 14, 2010

didnt't work for me on my i9000...

/data/sdsplit -nd -f -fs 4300M /data/sdsplit: /data/sdsplit: not found

Comment by rjart...@gmail.com, Nov 27, 2010

why with my 8G sdcard when i run the Non JF1.5 Build commands: $ su # /data/sdsplit -nd -fs 7040M its says /data/sdsplit not found?

Comment by shepsbu...@gmail.com, Dec 8, 2010

I have the same problem as rjartley. The file is there, the mode is set to 555, I'm at the # prompt but it always says that "/data/sdsplit file is not found".

Comment by joseph.e...@gmail.com, Jan 18, 2011

This how-to needs to be purged or a least a deprecation warning applied to the top.

Comment by abhinav....@gmail.com, Feb 11, 2011

Hi can you help me how can i get to my phone's root , i have windows 7 in my laptop and couldn't find any software to reach root...i tried it to do with partition manager but it doesn't make any partition. i'm using xperia x10 mini plz suggest something....thanks

Comment by atreides...@gmail.com, May 19, 2011

Same Problem: it always says that "/data/sdsplit file is not found".

Comment by acarring...@gmail.com, Aug 27, 2011

says permission denied on my rooted x8 using terminal emulator tryin to format 8gig branded card got su access! strange will reset an try again bwah

Comment by wouter...@gmail.com, Oct 19, 2011

Who those who get "/data/sdsplit file is not found" (I had it on my HTC Legend) change the first line in the sdsplit file from: #!/system/xbin/bb/sh to #!/system/xbin/sh

Then reupload it (adb push sdsplit /data/)

Mount the system partition manually: mount -o rw /dev/block/mtdblock3 /system

Then run the script.

Aferwards it may complain about mkdosfs not begin found, just format the newly created partition e manually to FAT32.

Comment by Kevin.S....@gmail.com, Dec 21, 2011

what's the point?


Sign in to add a comment
Powered by Google Project Hosting