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

Search This thread

britoso

Senior Member
Jan 13, 2010
2,794
302
Orlando
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. :D

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.
                    [COLOR="red"][x] Programs run from SD card[/COLOR]
                    To run from internal storage, type a2sd remove
    
    Private Apps  - [-] Linked to SD Card.
                    [-] File .noa2sd not found.
                    [COLOR="red"][x] Private Programs run from SD card[/COLOR]
                    To run from internal storage, type a2sd remove
    
    Dalvik Cache  - [-] Symbolically Linked.
                    [-] File .dalvikcache found.
                    [COLOR="red"][x] Dalvik runs from SD card[/COLOR]
                    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.
                      [COLOR="red"][x] Boot image init.rc patched.[/COLOR]
    
    [ ] 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)
    [COLOR="Blue"]/data: 200960K total, 60716K used, [B]140244K available[/B][/COLOR] (block size 4096)
    /cache: 97280K total, 1672K used, 95608K available (block size 4096)
    [COLOR="red"]/system/sd: 702873K total, [B]172189K used[/B], 530684K available[/COLOR] (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 [COLOR="Red"]app -> /system/sd/app[/COLOR]
    lrwxrwxrwx root     root              2010-06-26 19:07 [COLOR="red"]app-private -> /system/sd/app-private[/COLOR]
    lrwxrwxrwx root     root              2010-06-26 19:07 [COLOR="red"]dalvik-cache -> /system/sd/dalvik-cache[/COLOR]
    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. :)
 
Last edited:
  • Like
Reactions: allen_ho
G

GuestK00233

Guest
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
 

leonnib4

Senior Member
Mar 1, 2010
1,458
86
Paris
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 :D

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

agriff

Senior Member
Oct 23, 2009
470
291
Dallas
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
 

jamaa124

Member
Dec 8, 2006
40
3
Aiea, HI
plus.google.com
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.:cool:
 

jamaa124

Member
Dec 8, 2006
40
3
Aiea, HI
plus.google.com
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..

my sdcard is fine. i thought that there was something wrong with it at first, but there was nothing wrong with it. now, once installed the spare parts that you include in your roms, everything seems to work fine for me.
 

leonnib4

Senior Member
Mar 1, 2010
1,458
86
Paris
my sdcard is fine. i thought that there was something wrong with it at first, but there was nothing wrong with it. now, once installed the spare parts that you include in your roms, everything seems to work fine for me.

Ok good.
So it means you sdcard has been partitioned.
Im interrested in your case: how did you knew partinioning did not work on recovery, then with your mac?
In fact: what did not work how did you know and have you any error message?
Thx
 

jamaa124

Member
Dec 8, 2006
40
3
Aiea, HI
plus.google.com
Ok good.
So it means you sdcard has been partitioned.
Im interrested in your case: how did you knew partinioning did not work on recovery, then with your mac?
In fact: what did not work how did you know and have you any error message?
Thx

i couldn't tell that there was a problem from the bootloader or from my mac because everything seemed fine. if i encountered any problems while trying to partition my card, i would reformat the entire card and start over. i followed all of the directions...from xda and various youtube videos. if you go under disk utilities on a mac, it'll show whether or not your sd card has been partitioned. everything seemed fine. i didn't notice the problem until i went move few apps to my sdcard and that's when i realized that the button was still dark. i think that i may have messed up using terminal, somewhere along the route. i'm guessing that your spare parts must've filled in the missing line for me. everything is working fine now.
 

billp

Senior Member
Aug 27, 2009
75
3
does it work with AOSP 2.2 FRF83?I pushed the boot.img and the A2SD version 2.7 Update 3r1 but it can't mount the ext partition
 

billp

Senior Member
Aug 27, 2009
75
3
I built the boot.img for FRF83.

It won't only work with that boot.img...

What have you tried?
What are the errors?

I followed the instructions above. here's the result...

adb.jpg


I renamed the boot.img to app2extboot.img to recognize it
I remind you that I use AOSP 2.2 FRF83 and NOT LeoFroyo or Kang-o-rama. Is it compatible or not?
 
Last edited:

leonnib4

Senior Member
Mar 1, 2010
1,458
86
Paris
I followed the directions above. here's the result...

adb.jpg


I renamed the boot.img to app2extboot.img to recognize it
I remind you that I use AOSP 2.2 FRF83 and NOT LeoFroyo or Kang-o-rama. Is it compatible or not?

I could bet you did not create your ext partition under Amon_RA's recovery :D

Your filesystem contains unsupported flags.

Try again with Amon_RA's: ext2 then ext3
 

EMERYfan1988

Senior Member
May 9, 2008
55
3
Market issue

I am having a huge issue with the market when i use the ext3 a2sd, i have had a ext3 partition since i had my g1 and everything worked fine, but every froyo A2SD old style, i go to market to install a app and it downloads and get stuck at installing. When i go to applications all of my apps that are on my ext3 partition are constantly "computing" it is really getting on my nerves i have tried 4 different roms and can never get past the market issue....


anyone else experiencing this issue?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    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. :D

    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.
                      [COLOR="red"][x] Programs run from SD card[/COLOR]
                      To run from internal storage, type a2sd remove
      
      Private Apps  - [-] Linked to SD Card.
                      [-] File .noa2sd not found.
                      [COLOR="red"][x] Private Programs run from SD card[/COLOR]
                      To run from internal storage, type a2sd remove
      
      Dalvik Cache  - [-] Symbolically Linked.
                      [-] File .dalvikcache found.
                      [COLOR="red"][x] Dalvik runs from SD card[/COLOR]
                      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.
                        [COLOR="red"][x] Boot image init.rc patched.[/COLOR]
      
      [ ] 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)
      [COLOR="Blue"]/data: 200960K total, 60716K used, [B]140244K available[/B][/COLOR] (block size 4096)
      /cache: 97280K total, 1672K used, 95608K available (block size 4096)
      [COLOR="red"]/system/sd: 702873K total, [B]172189K used[/B], 530684K available[/COLOR] (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 [COLOR="Red"]app -> /system/sd/app[/COLOR]
      lrwxrwxrwx root     root              2010-06-26 19:07 [COLOR="red"]app-private -> /system/sd/app-private[/COLOR]
      lrwxrwxrwx root     root              2010-06-26 19:07 [COLOR="red"]dalvik-cache -> /system/sd/dalvik-cache[/COLOR]
      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. :)
    1
    all apps were failing, but my ext3 partition was set up with gparted before b4 recovery images could do it, and for some reason the froyo a2sd didnt like it! so i had to backup everything on my card and what not, it was a huge hassle! but its working now....