It is ESSENTIAL that you create the partitions in the following order, if NOT FOLLOWING THE GUIDE:
Words from the guys above, edited slightly by ShokkA9 below.
Requirements before getting started:
- Cyanogen Recovery Image v1.4 or greater
- SD Card (Class 6 suggested)
- Android Device Bridge(ADB) - See attached with Shell.cmd inside to...just double click to open cmd prompt in the right place
- Android build that supports Apps2SD
..All commands mentioned below, need to be typed into the command prompt window..
Download the attached ADB.rar; extract it; open it; i am using the PC version.
Double click shell.cmd, to open command prompt window
Now look at the attached screen prints...the number represent the step it relates to. Easy
Connect phone to computer via USB lead.
Reboot into Recovery Mode, via power on button whilst holding home button.
Or use this command: adb shell reboot recovery
Type: adb shell (after your phone has booted and on the recovery screen) in the cmd prompt window and in here every time you see Type:
Type: parted /dev/block/mmcblk0
Opens parted and mounts your SD card
To check the size and partitions of your SD card, the example here is an 8GB card. This SD card is 7969 MB. 1 partition which is fat32. If your SD card is blank and no partitions are listed, you can skip to Step 6.
To remove all existing partitions, use the commands below. If you have multiple partitions, remove each one at a time.
- rm 1 (deletes partition number 1)
- rm 2 (if needed. keep going till all partitions are removed)
- print (check when you are done to make sure all partitions are removed)
Creat your new partitions. You can make these any size, but the most common setup is 32 MB linux-swap partition, 512 MB ext2 partition, and remaining free space as a fat32 partition. In order to work properly, the partitions must be created in this order: fat32, ext2, linux-swap. The linux-swap partition is used for a swap file on some builds. Not all builds use linux-swap, but I create one just in case I ever need it.
The ext2 partition is where your apps will be installed. I use 512 MB which gives me plenty of room but you can go larger like 1024 MB if you want. Parted only creates ext2 partitions and we can convert them to ext3 later.
When using the Linux command mkpartfs, you must tell it where to start and end each partition. This can be done by taking the total SD card size and subtracting the linux-swap then ext2 partition sizes. See the following example for my 8 GB card.
Total Size = 7969mb 'minus' 512mb(ext2) 'minus' 32mb(linux-swap) = 7425mb for fat32.
- mkpartfs primary fat32 0 7425 (start is 0 and end is Total C)
- mkpartfs primary ext2 7425 7937 (start is Total C and end is Total
- mkpartfs primary linux-swap 7937 7969 (start is Total B and end is Total A)
To check the sizes of your partitions. If you made any mistakes you can return to Step 5 and remove them. [/size]
Exit parted and upgrade your ext2 file system to ext3. For most users this is the final step, to upgrade to ext4, look at the links at the top of this post. We suggest all users upgrade to ext3. Its main advantage over ext2 is journaling which improves reliability and eliminates the need to check the file system after an unclean shutdown.
- quit (exit parted and return to # prompt)
- upgrade_fs (script to upgrade from ext2 to ext3)
Finished. Check your work with print.
- parted /dev/block/mmcblk0 (to open parted again)
- print (check all your system partitions and their sizes)
- quit (exit parted)
- reboot (reboot your system to the operating system)
I had to do this, as the ones around are not clear, except this one, and the site can be down at times also, so at least it is in this forum too.
Big respect to Paul (main man), Cyanogen, and anyone else who makes stuff work on the Droid!!
Edited by shokka9, 29 October 2009 - 02:48 PM.