Move Apps To The SD Card In Android CyanogenMod

Here's how to get your apps moved across to the SD card so you can enjoy the ability to install effectively as many apps as you like. This method works straight from the phone, you don't need any extra partitioning software.

Recent versions of Cyanogen's CyanogenMod ROM for Android phones contain Apps2SD which allows you to install your apps to the SD card instead of the stupid minuscule phone memory. This all happens automatically if you partition the SD card correctly. I'm assuming you already have your phone rooted and set up with a recent version of CyanogenMod and your apps are already installed on an 8Gb or 16Gb card.

NOTE: Micro SD Card Speed
Use the fastest SD card you can. Slow SD card speeds will end in tears. Your apps will load slowly. Speed ratings of Micro SD cards for use in the phones like the T-Mobile G1 are noted by class. Commonly they are class 2, 4 or 6, and can sometimes be identified with a letter C with a 2, 4 or 6 inside. The class indicates the Megabits per second writing speed. Check the speed on your SD card and if necessary, order a faster one from Amazon or somewhere else.

1. Backup your SD card contents

Copy the contents of your micro SD card to your computer using a USB cable or a card reader.

2. Re-partition your Micro SD card

ENTER RECOVERY ROOT PROMPT

  • If you removed your micro SD card, insert it back into the phone and reboot the phone using CALL, MENU and END keys. Hold down the HOME key as it reboots to enter the Android System Recovery screen.
  • Press Alt-X to enter the console, and press Enter when it asks.
    You should now have a # prompt.

REMOVE EXISTING PARTITIONS

  • Type parted /dev/block/mmcblk0 and press ENTER
  • Type print and press ENTER
    You will now see the existing partitions on your SD card listed with the partition number on the left. Probably there will just be one fat32 partition, but maybe more.
  • Type rm 1 and press ENTER.
    If you saw more than just one partition above, type rm 2 and rm 3 etc for each one.

CREATE NEW PARTITIONS

If you have an 8Gb Micro SD Card

Type mkpartfs and press ENTER.
You will now be prompted for details of the first partition. Enter the following responses.
primary
fat32
0
7425

Type mkpartfs and press ENTER.
You will now be prompted for details of the second partition. Enter the following responses.
primary
ext2
7425
7937

Type mkpartfs and press ENTER.
You will now be prompted for details of the third partition. Enter the following responses.
primary
linux-swap
7937
7969



OR

If you have a 16Gb Micro SD Card

Type mkpartfs and press ENTER.
You will now be prompted for details of the first partition. Enter the following responses.
primary
fat32
0
15416

Type mkpartfs and press ENTER.
You will now be prompted for details of the second partition. Enter the following responses.
primary
ext2
15416
15916

Type mkpartfs and press ENTER.
You will now be prompted for details of the third partition. Enter the following responses.
primary
linux-swap
15916
15948

  • You will now have you new partitions set. Use print to view them.
  • Type quit and press ENTER to exit the partitioner.

CONVERT THE EXT2 PARTITION TO EXT3

  • Type upgrade_fs and press ENTER.

REBOOT

  • Type reboot and press ENTER

3. Transfer your apps to the SD card.

This will happen automatically next time your phone boots up. How cool is that?!

4. Copy your stuff back onto the fat32 partition.

Connect your phone back to the computer or insert your micro SD card back into the computer and copy all your stuff back.

Now you can install a serious amount of apps. You will also notice the "SD Card & phone storage" menu has changed. You can no longer unmount the SD card from there, and you will also have a new "SD card secondary item" representing your second partition where your apps are stored showing the free memory.