Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9149317
  • 博文数量: 1727
  • 博客积分: 12961
  • 博客等级: 上将
  • 技术积分: 19860
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-09 11:25
个人简介

偷得浮生半桶水(半日闲), 好记性不如抄下来(烂笔头). 信息爆炸的时代, 学习是一项持续的工作.

文章分类

全部博文(1727)

文章存档

2024年(2)

2023年(26)

2022年(112)

2021年(217)

2020年(157)

2019年(192)

2018年(81)

2017年(78)

2016年(70)

2015年(52)

2014年(40)

2013年(51)

2012年(85)

2011年(45)

2010年(231)

2009年(287)

分类: LINUX

2010-02-04 13:44:15

 
 

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.

  1. 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 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 for that as well (NOTE: you only need to follow the first 10 steps in the previously mentioned tutorial to install the SDK).
  2. 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.


    sdparted.txt in the root of C:\

  3. 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).

  4. 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.

  5. 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


    click to enlarge

  6. Now enter the command adb shell. You should get a ‘new’ prompt as seen in the screenshot below.


    click to enlarge

  7. 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.


    click to enlarge

  8. Again, you’ll be asked to confirm your action. Type Y.


    click to enlarge

  9. And yet again you’ll be asked to confirm your action. Type Y.


    click to enlarge

  10. 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.


    click to enlarge

  11. 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.

 

9 Responses

Stay in touch with the conversation, subscribe to the .

  1. rafa says

    when i try to run command, it says device not found. but my phone is plugged to computer with usb.

  2. Tom says

    ^ I’m having the same issue.

    adb push /sdparted.txt /sbin/sdparted works fine, but adb shell chmod 755 /sbin/sdparted gives me a “device not found” error

  3. Bigtex says

    Okay, a while ago I was messing with my phone and setting it up to act as a proxy server while plugged in. Here are 2 tips I found.

    First, be sure you’re using the USB cord that came WITH the phone, others fit it and have No problem transferring files, charging and what not. But, the cord (as you can see if you compare) is actually different and is a better cord than standard. For development modes and doing this you’ll need to use the real cord.

    Second, if you’re using Vista (I use Ultimate x64) there is NO true, proper driver and thus the device is Not found. Yes, your device is plugged in, you can transfer files normally on SD Card, BUT for the developer stuff it doesn’t.

    Now, there is a driver someone put out, which does work However you can’t run it in normal vista, you have to boot vista into a safe mode deal that will have notifiers on the edges of your computer screen. THEN the drive will be allowed use (this is due to the person not wanting to pay to sign the drivers, and vista only using unsigned drivers in this mode).

    So if you’re using Vista (I’m running Windows 7 right now and will Assume it has the same problem) be sure that you’re using the proper cord, the x64 updated driver, in the special mode. Then, and only then, will your device be found in console as such (and you’re right on track to using your phone as a proxy server if its any use to you).

    Otherwise, if you’re on XP x86, I have no clue why it’d not find the device property.

  4. xenophone says

    two tips might work. Found them at http://forum.xda-developers.com/showthread.php?t=543985
    a. before typing adb push, enter console on the phone(ALT-X)

    b. Skip the pc altogether and copy the file to sd card and then to the phone. This method worked for me..not requiring any SDK/Java installs on the computer. Method listed on the link above. Also posted here (thanks to 51Dusty for this method!)
    1. download sdparted.txt below to root of sdcard. (get downloadcrutch if needed*thnx lycoln)
    2. boot into cm-recovery-v1.4, goto console(alt-x)
    3. at # prompt type: mount /sdcard
    4. then, mv /sdcard/sdparted.txt /sbin/sdparted
    5. then, chmod 755 /sbin/sdparted
    6. you can now run script (ie. sdparted -efs ext4).

  5. carlos says

    hello thanks for all your help im runnining cyanogen 4.199. Im am trying to partition my 88 gig trascend sd card
    when i type the above command on console i get ” no such file or directory” i have verified that the sdparted file is on root. What can i do. thanks.

  6. Bigtex says

    Thanks for that tip Xeno, I’m going to give that a shot soon myself.

  7. gussde says

    @ xenophone… excellent instructions. Worked perfectly on my G1 with cyanogen 4.1999 with a 8GB sd card. Thanks much!

  8. Blackmantis says

    Hello,
    Just got Apps2SD working (8GB Class 6 Card) on my phone.
    Thnx you guys ROCK!

阅读(1543) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~