This tutorial will take you step by step through the process of partitioning the SD card in your Android phone so that you can save (and run) applications on/from it.
The process of installing programs on your SD card – knows as Apps2SD, App2SD and A2SD – not only allows you to install many more programs on your Android phone, but it keeps internal memory free so your device runs faster.
This tutorial will show you how to partition your SD card so that you can run programs from it.
- Before you even get started, here are the disclaimers. First, you’re going to be wiping your SD card completely clean. That means that every file you currently have saved on it, should be backed up before you even get started. Second, you’re going to need a rooted Android phone in order to take advantage of the partitioned SD card. Luckily we have a detailed tutorial that shows you just how to do that, if you haven’t already. Finally, you’ll need to have the Android SDK installed on your PC. And as you may have guessed, we have a tutorial for that as well (NOTE: you only need to follow the first 10 steps in the previously mentioned tutorial to install the SDK).
- Now that you’ve backed up your SD card, rooted and installed CyanogenMod (or any other mod that includes Apps2SD by default) and have the Android SDK installed on your PC – lets get started.
Right-click on this link and save the file (sdparted.txt) to the root of your C:\ drive. Note: don’t save it to you’re My Documents folder, your Downloads folder or your Desktop. It needs to be saved right on your C:\ drive. This script (sdparted.txt) was developed by “51dusty” at the xda-developers forums. You may want to visit this thread at the xda forums and download the latest version of sdparted.txt, as it is updated somewhat frequently. The version I’ve provided is v0.5.2.
- Connect your Android phone to your PC via USB. Boot into cm-recovery by holding down the Home button on your phone when you hit the Power button. This should bring you into cm-recovery (see image below).
- Now locate your Android SDK folder. Inside the tools folder, copy the two files adb.exe and AdbWinApi.dll to your C:\windows\system32 folder.
- Now open a Windows Command Prompt (click Start > Run > enter cmd and click OK). At the prompt, type:
adb push /sdparted.txt /sbin/sdparted
Then enter:
adb shell chmod 755 /sbin/sdparted
- Now enter the command adb shell. You should get a ‘new’ prompt as seen in the screenshot below.
- At this point you issue the command to partition your SD card. There are a number of ways to do this, but the most common is sdparted -efs ext4
This will create a swap that’s 32MB, an ext4 partition that’s 512MB and the remainder of your card will be a fast32 partition. This allows for 512MB of apps to be installed on your SD card – which is plenty of space. If you’d like to set your card up differently, see all of the options listed here. For the sake of this tutorial, we’ll run:
sdparted -efs ext4
Right away you’ll be asked to confirm this action. Type Y and hit enter. Note: it’s important that you type a capital Y, not a lower case y.
- Again, you’ll be asked to confirm your action. Type Y.
- And yet again you’ll be asked to confirm your action. Type Y.
- Now you’ll be presented with a ‘print out’ of your newly partitioned SD card. It should look similar to the screenshot below (but not exact, unless you have an 8GB SD card, as I do). Type exit to leave the adb shell. Restart your phone.
- That’s it! You’re done! When you install apps now, they’ll be installed to your SD card instead of the interal phone memory – allowing you to install many, many more. You should also see a nice improvement in your phones speed.

sdparted.txt in the root of C:\








Pingback: rooting my G1 and flashing to CyanogenMod « Teh Tech Blogz0r by Luke Meyer
Pingback: Como instalar o Android 2.1 no Motorola Dext | Droid Brasil
Pingback: Partitionieren der sd-Karte im Recovery schl
Pingback: SD partition - Android Forums
Pingback: Saving Android Apps. to SD card « Mukut Saha
Pingback: Help me please with rooting my phone - Android Forums
Pingback: Braucht man noch eine sd-ext Partition? - Seite 2 - Android-Hilfe.de
Pingback: SD Karte partitionieren - Android-Hilfe.de