FORUMS
Remove All Ads from XDA

[Tut/Guide] A2SD setup (uses EXT partition) for Froyo FRF50/FRF83/FRF85B

2,771 posts
Thanks Meter: 295
 
By britoso, Senior Member on 27th June 2010, 05:38 AM
Post Reply Email Thread
I've seen numerous questions on how to do this and feel its very necessary since we only have 200960KB of space in /data.
Running out of space so quickly on your superphone is no fun.
First off: If your not technically inclined you'd do well to use a ROM with A2SD (EXT) pre-installed.

What this does:
  • Moves ALL your apps to the EXT partition on your SD card
  • Moves even the dalvik cache to the SD card
  • Gives you the space you need to install every single live wallpaper, widget, or app you want.

Prerequisites:
  1. You have a rooted Froyo ROM. (without A2SD of course)
  2. Your SD card has a working EXT2 or EXT3 partition. See the Darktremor thread on how to create one. (check the references section below)
  3. You have a good recovery image installed. I use AmonRa 1.70
  4. You have the command line tools ADB and FASTBOOT installed, and the Nexus USB driver installed.

The steps that should get you there:
  1. Download and put "a2sd-2.7-update3-signed.zip" on the root of the sd card. Get the latest from the Darktremor thread.
  2. Download a boot.img that has the required init.rc changes needed to automatically start A2SD. Get it from here (mediafire)(Thanks Leonnib4) or here (rapidshare) or from a kang-o-rama ROM.
  3. Make directory /system/sd
    Code:
    adb remount
    adb shell mkdir /system/sd
  4. Reboot to recovery
    Code:
    adb reboot recovery
  5. (in recovery, phone) Nandroid backup.
  6. (OPTIONAL, in recovery) Wipe SD:EXT partition. (not the whole SD CARD, just the EXT partition). Useful if you had junk lying around from a previous ROM. Note that this will delete all the apps you had on the ext partition.
  7. (in recovery, phone) Flash "a2sd-2.7-update3-signed.zip"
  8. (in recovery, phone) Power off the phone. (not reboot)
  9. Start the phone in bootloader mode, with the USB cable plugged in.
    While the phone is off, hold the trackball down and then press the power button.
  10. (in bootloader mode, desktop console). On your desktop/laptop open a shell (start->run->cmd in windows) and run the following commands.
    Code:
    #check if the phone is connected ok, you should see your device after running the first command
    fastboot devices
    
    #flash the boot image.
    fastboot flash boot boot.img
    
    #reboot your phone
    fastboot reboot
  11. Either as your phone starts, or after its ready, Run the following commands via adb. I ran it as soon as the phone connected to adb. (nexus loading animation)
    Code:
    adb remount
    #enable a2sd
    adb shell a2sd install
    
    #also move the dalvik cache to sd card.
    adb shell a2sd cachesd
    
    #check if all is ok
    adb shell a2sd check
    
    #reboot to test that the phone starts ok
    adb reboot
  12. You're all set. To check that its running do one or all of the following:
    - run: adb shell a2sd check
    Code:
    C:\Users\me\Desktop>adb shell a2sd check
    Starting Darktremor A2SD version 2.7 Update 3
    [ ] Mounting /system as read-write
    [ ] Starting A2SD in check mode
    [ ] Running A2SD Check Program.
    [ ] Searching for Mount Point...
    [x] Mount point /system/sd located.
    [ ] Checking for ext partition
    /dev/block/mmcblk0p2 /system/sd ext2 rw,noatime,nodiratime,barrier=1,data=ordered 0 0
    [x] Ext partition is mounted.
    [ ] Checking A2SD links.
    
    A2SD Status Report
    ===============================================================
    Apps          - [-] Linked to SD Card.
                    [-] File .noa2sd not found.
                    [x] Programs run from SD card
                    To run from internal storage, type a2sd remove
    
    Private Apps  - [-] Linked to SD Card.
                    [-] File .noa2sd not found.
                    [x] Private Programs run from SD card
                    To run from internal storage, type a2sd remove
    
    Dalvik Cache  - [-] Symbolically Linked.
                    [-] File .dalvikcache found.
                    [x] Dalvik runs from SD card
                    To run from internal storage, type a2sd nocache
                    To run from /cache partition, type a2sd cachepart
    
    Swap           - [!] Partition not present.
                     [!] Swap does not start.
    
    ZipAlign       - [!] Not running at boot.
    
    Property Patch  - [-] File System Ready property
                          found.
                      [x] Boot image init.rc patched.
    
    [ ] Setting File System Ready property to 1.
    [ ] Remounting /system to read-only.
    - run: adb shell df
    Code:
    C:\Users\me\Desktop>adb shell df
    /dev: 201636K total, 12K used, 201624K available (block size 4096)
    /mnt/asec: 201636K total, 0K used, 201636K available (block size 4096)
    /system: 148480K total, 111248K used, 37232K available (block size 4096)
    /data: 200960K total, 60716K used, 140244K available (block size 4096)
    /cache: 97280K total, 1672K used, 95608K available (block size 4096)
    /system/sd: 702873K total, 172189K used, 530684K available (block size 1024)
    /mnt/sdcard: 14898512K total, 9349176K used, 5549336K available (block size 8192)
    /mnt/secure/asec: 14898512K total, 9349176K used, 5549336K available (block size 8192)
    /mnt/asec/com.google.android.stardroid-1: 3124K total, 1504K used, 1620K available (block size 4096)
    /mnt/asec/com.tmsoft.whitenoise.lite-1: 7276K total, 5856K used, 1420K available (block size 4096)
    -run: adb shell ls -l /data
    Code:
    C:\Users\me\Desktop>adb shell ls -l /data
    drwxr-x--- root     log               2010-05-24 09:04 dontpanic
    drwx------ system   system            2010-06-26 23:18 backup
    drwxrwx--x system   system            2010-06-26 22:16 data
    drwxrwxrwx root     root              2010-06-26 18:57 a2sd
    drwx------ root     root              2010-06-26 18:57 property
    drwxrwxr-x system   system            2010-06-26 18:57 anr
    drwxrwx--x shell    shell             2010-06-26 18:57 local
    lrwxrwxrwx root     root              2010-06-26 19:07 app -> /system/sd/app
    lrwxrwxrwx root     root              2010-06-26 19:07 app-private -> /system/sd/app-private
    lrwxrwxrwx root     root              2010-06-26 19:07 dalvik-cache -> /system/sd/dalvik-cache
    drwxrwx--t system   misc              2010-06-26 23:18 misc
    drwxrwxr-x system   system            2010-06-26 23:18 system
    drwxr-xr-x system   system            2010-06-26 18:57 tombstones
    drwxrwx--- root     root              2010-05-24 09:04 lost+found

Referenced Threads:
Notes:
  • I am not responsible if something goes wrong. nandroid backup and understand what you are doing!
  • This will probably work on other Froyo ROMS too.
  • You can install a custom kernel after installing this boot image. Just dont install a complete boot image. Boot image= ramdisk+kernel.

Thanks to Darktremor/tkirton and leonnib4.
The Following User Says Thank You to britoso For This Useful Post: [ View ] Gift britoso Ad-Free
 
 
27th June 2010, 05:39 AM |#2  
G1-evolve's Avatar
Senior Member
Chicago
Thanks Meter: 32
 
More
nice post!
28th June 2010, 01:00 AM |#3  
ahronzombi's Avatar
Senior Member
Flag buffalo
Thanks Meter: 16
 
More
great tip, been looking to get ext apps2sd in froyo for a while and kmobs and the rest of the team refuse to share.

after doing this you can flash any kernel. this should be included in all froyo roms
28th June 2010, 01:05 AM |#4  
jlevy73's Avatar
Senior Member
Los Angeles
Thanks Meter: 1,319
 
More
Nice job per usual britoso
28th June 2010, 01:41 AM |#5  
Breakthecycle2's Avatar
Senior Member
Flag NJ
Thanks Meter: 33
 
More
Awesome post...
28th June 2010, 02:51 AM |#6  
leonnib4's Avatar
Senior Member
Flag Paris
Thanks Meter: 85
 
More
Nice job by summing up all that in one thread.

-- nevermind --
So I see you did not solve the boot.img issue. Just wanted to warn you that I rapidly put mine on rapidshare because I thought it was just for you -- so it might be limited to 10 downloads.
-- nevermind --

I also wrote a set of only 3 scripts that seems to do the job:
- one that mounts the ext partition if exists, at boot (boot.img + 10a2sd)
- one that can put app2sd on or off (xbin/a2sd)
- one that can put dalvik2sd on or off (xbin/swap)
- and also one for auto zipalign at boot (zaab)
yeah... that maked four. basicly a2sd takes only 2 scripts

All also inspired from Darktremor's work (from a2sd-2.7-2 from another thread).
All those scripts are on my github repo.
See if it works.

Thanks to Darktremor, britoso, Cyanogen and all of you who made it possible. So much free space now!!!
28th June 2010, 02:52 AM |#7  
Senior Member
Flag Dallas
Thanks Meter: 294
 
More
Thanks for the info.
Is this a different method of apps2sd than implemented on Paul's MoDaCo r19 with apps2sd? If I have that installed already do I need to go through this process? Thanks
28th June 2010, 03:03 AM |#8  
jamaa124's Avatar
Member
Flag Aiea, HI
Thanks Meter: 3
 
More
i used leo's custom spare parts and it enabled a2sd for me. i'm running frf83 deoxed. i tried partitioning my sd card via amonra and via terminal on my mac, and i couldn't it to work right. i'll try your method method later on.
28th June 2010, 03:07 AM |#9  
leonnib4's Avatar
Senior Member
Flag Paris
Thanks Meter: 85
 
More
Quote:
Originally Posted by jamaa124

i used leo's custom spare parts and it enabled a2sd for me. i'm running frf83 deoxed. i tried partitioning my sd card via amonra and via terminal on my mac, and i couldn't it to work right. i'll try your method method later on.

partitionning via amon_ra did not work?
unlikely...
28th June 2010, 03:17 AM |#10  
jamaa124's Avatar
Member
Flag Aiea, HI
Thanks Meter: 3
 
More
Quote:
Originally Posted by leonnib4

partitionning via amon_ra did not work?
unlikely...


no dude, i couldn't get it to work for me.
28th June 2010, 03:20 AM |#11  
leonnib4's Avatar
Senior Member
Flag Paris
Thanks Meter: 85
 
More
Quote:
Originally Posted by jamaa124

no dude, i couldn't get it to work for me.

Very unlikely.
Is your sdcard ok? I mean, really?

Because even with darktermor method you ll need to partition your sdcard..
Maybe try another recovery..
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes