UPDATED 10/8
Velocity III is here!
Now lets get that A2SD working
So with the release of Velocity 0.3 (thanks Trident) I would imagine allot inquiry as to how to properly use the APPS2SD feature. Lets start with a little explanation:
The A2SD in Velocity is setup as a semi-intelligent script that runs at boot, it will check to make sure that your SDCARD has a second partition available (/dev/block/mmcblk0p2) that is formatted as an EXT file system, then it will move all of your application files from /data/app to your SDCARDs second partition, which is located at /system/sd, the script will then create a shortcut (symlink) from /data/app -> /system/sd so all newly installed applications will be placed on the SDCARD.
The easiest way to accomplish this is through the ROM Manager application available in the Marketplace:
1. Plug your phone into a PC and copy all data you want to save off of your SDCARD onto a temporary folder on your PC, When you are done backing up either unmount your sdcard, or unplug the phone from the PC
2. Open ROM Manager and be sure that you have the latest ClockworkMod Recovery installed. It will be apparent in the top RECOVERY section of the program
3. Scroll down to the UTILITIES section and select Partition SD Card, this will give you a menu allowing you to select the size in which you want your EXT partition on the SDCARD to be, Personally I would recommend using at least 128mb although there is no downside (other than losing an equal amount of space on your 1st partition) in making it as large as allows.
4. The ROM Manager will then ask if you would like to create another partition to use as SWAP, I would NOT recommend creating one (select 0mb) unless you have a Class 6 SDCARD. The constant writing to SWAP can cause problems with class 4 cards. If you still have the card that came with your Ally. Its Class 4
5. The ROM Manger will now reboot into Recovery to partition your Card, it will take a few moments for it to complete and afterwards you can reboot. You will notice that you have nothing on your SDCARD, you can now plug the phone back into the PC and copy all the data that you backed up in Step 1 to the sdcard.
Partitioning Your SDCard With the AmonRA (Drellisdee's) Recovery
1. Plug your phone into a PC and copy all data you want to save off of your SDCARD onto a temporary folder on your PC, When you are done backing up either unmount your sdcard, or unplug the phone from the PC
2. Boot up into recovery by holding down the SEND MENU and END buttons.
3. Select "Partition SDCard" Then Partition SDCard Again
4. I will ask for the size of the SWAP Partition, 32MB is default, 0 is no swap. If you plan on using a program like swapper to enable swap2sd then use 32MB, if you have a slower (class 4 or 2) SDCard, you will probably want to select 0 here. Use the "trackball" (arrow keys around OK button)
5. It will ask for EXT Size. I would recommend allowing for 128MB or more. I personally use 512 because I have a large SDCard.
6. It should now partition your card (if someone can PM me a verification that would be great, this is as far as I went since I don't want to RE-Partition my card lol)
7. Reboot into recovery again, and go to partition SD Card, you can now select ext2-3 then 3-4 for faster file system.
8. If you have Velocity 3 flashed already it will automatically enable A2SD on your first boot. Otherwise you will need to flash Velocity 3, or use Killertonez update.zip to install darktremmors a2sd
Please Note I write this section up mostly on memory and whatnot, so if you see any discrepancies, PLEASE contact me so I can correct this.
FAQ
So I partitioned my card without errors and rebooted Velocity 0.3 how can I tell A2SD is working?
You can test a2sd by opening a terminal emulator and doing the following
If it is installed correctly you will see all your apps located in /system/sd and you will see a symlink from /data/app => /system/sd and df will show disk usage by partition.
My system takes longer to boot why?
The downside to having a2sd enabled is the system will have to check the filesystem for errors and mount the sdcard before it boots, this will add a few seconds to your boot time and your first boot may take a few minutes if you have allot of apps
All my apps in /system/app are still there
The script does not copy your system apks to the sdcard, it is not a good idea because then you would not be able to remove the sdcard without the system crashing
When I install a app from the marketplace my internal phone memory still goes down a little bit.
This is due to the dalvik cache for these apks still being stored in internal storage, at this time it may cause damage to lower quality (class 4) cards to store these files on sd.
Addition:
ClockworkMod has a problem mounting the partition it created . When wiping data you will see an error like this:
This means that it DID NOT wipe the 2nd partition on your SDCARD, if you just made the partition, ignore this message because it is blank anyway. But if you are reflashing you WILL need to wipe this information. For the time being you can wipe it through adb or a terminal emulator on your phone, there are better ways but this is quick and easy:
open a adb shell to your phone or a terminal emulator if you can and:
1. su
2. umount /dev/block/mmcblk0p1
3. mount /dev/block/mmcblk0p2 /sdcard
4. ls /sdcard
VERIFY THAT THIS IS YOUR /system/sd/ DIRECTORY IT SHOULD JUST CONTAIN APK FILES
5. rm -R /sdcard/*
6. umount /dev/block/mmcblk0p2
Or you can flash to Drellisdee's Recovery until Koush releases an update to ClockworkMod
Written but not proof read -Savox
Velocity III is here!
Now lets get that A2SD working
So with the release of Velocity 0.3 (thanks Trident) I would imagine allot inquiry as to how to properly use the APPS2SD feature. Lets start with a little explanation:
The A2SD in Velocity is setup as a semi-intelligent script that runs at boot, it will check to make sure that your SDCARD has a second partition available (/dev/block/mmcblk0p2) that is formatted as an EXT file system, then it will move all of your application files from /data/app to your SDCARDs second partition, which is located at /system/sd, the script will then create a shortcut (symlink) from /data/app -> /system/sd so all newly installed applications will be placed on the SDCARD.
The easiest way to accomplish this is through the ROM Manager application available in the Marketplace:
1. Plug your phone into a PC and copy all data you want to save off of your SDCARD onto a temporary folder on your PC, When you are done backing up either unmount your sdcard, or unplug the phone from the PC
2. Open ROM Manager and be sure that you have the latest ClockworkMod Recovery installed. It will be apparent in the top RECOVERY section of the program
3. Scroll down to the UTILITIES section and select Partition SD Card, this will give you a menu allowing you to select the size in which you want your EXT partition on the SDCARD to be, Personally I would recommend using at least 128mb although there is no downside (other than losing an equal amount of space on your 1st partition) in making it as large as allows.
4. The ROM Manager will then ask if you would like to create another partition to use as SWAP, I would NOT recommend creating one (select 0mb) unless you have a Class 6 SDCARD. The constant writing to SWAP can cause problems with class 4 cards. If you still have the card that came with your Ally. Its Class 4
5. The ROM Manger will now reboot into Recovery to partition your Card, it will take a few moments for it to complete and afterwards you can reboot. You will notice that you have nothing on your SDCARD, you can now plug the phone back into the PC and copy all the data that you backed up in Step 1 to the sdcard.
Partitioning Your SDCard With the AmonRA (Drellisdee's) Recovery
1. Plug your phone into a PC and copy all data you want to save off of your SDCARD onto a temporary folder on your PC, When you are done backing up either unmount your sdcard, or unplug the phone from the PC
2. Boot up into recovery by holding down the SEND MENU and END buttons.
3. Select "Partition SDCard" Then Partition SDCard Again
4. I will ask for the size of the SWAP Partition, 32MB is default, 0 is no swap. If you plan on using a program like swapper to enable swap2sd then use 32MB, if you have a slower (class 4 or 2) SDCard, you will probably want to select 0 here. Use the "trackball" (arrow keys around OK button)
5. It will ask for EXT Size. I would recommend allowing for 128MB or more. I personally use 512 because I have a large SDCard.
6. It should now partition your card (if someone can PM me a verification that would be great, this is as far as I went since I don't want to RE-Partition my card lol)
7. Reboot into recovery again, and go to partition SD Card, you can now select ext2-3 then 3-4 for faster file system.
8. If you have Velocity 3 flashed already it will automatically enable A2SD on your first boot. Otherwise you will need to flash Velocity 3, or use Killertonez update.zip to install darktremmors a2sd
Please Note I write this section up mostly on memory and whatnot, so if you see any discrepancies, PLEASE contact me so I can correct this.
FAQ
So I partitioned my card without errors and rebooted Velocity 0.3 how can I tell A2SD is working?
You can test a2sd by opening a terminal emulator and doing the following
Code:
su
ls /system/sd
ls -l /data
df
My system takes longer to boot why?
The downside to having a2sd enabled is the system will have to check the filesystem for errors and mount the sdcard before it boots, this will add a few seconds to your boot time and your first boot may take a few minutes if you have allot of apps
All my apps in /system/app are still there
The script does not copy your system apks to the sdcard, it is not a good idea because then you would not be able to remove the sdcard without the system crashing
When I install a app from the marketplace my internal phone memory still goes down a little bit.
This is due to the dalvik cache for these apks still being stored in internal storage, at this time it may cause damage to lower quality (class 4) cards to store these files on sd.
Addition:
ClockworkMod has a problem mounting the partition it created . When wiping data you will see an error like this:
Code:
mount: mounting /dev/block/mmcblk0p2 on /sd-ext failed: Invalid argument
E:Can't mount /dev/block/mmcblk0p2
(File exists)
open a adb shell to your phone or a terminal emulator if you can and:
1. su
2. umount /dev/block/mmcblk0p1
3. mount /dev/block/mmcblk0p2 /sdcard
4. ls /sdcard
VERIFY THAT THIS IS YOUR /system/sd/ DIRECTORY IT SHOULD JUST CONTAIN APK FILES
5. rm -R /sdcard/*
6. umount /dev/block/mmcblk0p2
Or you can flash to Drellisdee's Recovery until Koush releases an update to ClockworkMod
Written but not proof read -Savox