yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] ilos:
boot loop for me on my legend and i have followed all step... ( no previous version of a2sd installed )

( i've swap partition , i tried EXT2 and EXT3 and the FAT32 )

here the output of a2sd check

Starting Darktremor A2SD version 2.7 update 1
[ ] Mounting /system as read-write
[ ] Mounting /data as read-write
[ ] Starting A2SD in check mode
/system/bin/starta2sd: line 19: getprop: command not found
/system/bin/starta2sd: line 22: getprop: command not found
/system/bin/starta2sd: line 39: getprop: command not found
[ ] Running A2SD Check Program.
[ ] Searching for Mount Point...
[!] Mount point found..no further action required.
[ ] Checking for ext partition
/dev/block/mmcblk0p2 /system/sd ext2 rw,noatime,nodiratime,errors=continue 0 0
[*] Ext partition found and already mounted.
[ ] Checking A2SD links.

A2SD Status Report
===============================================================
Apps - [*] Linked to SD Card.
[*] File .noa2sd not found.
[*] Programs run from SD card
To run from internal storage, type a2sd remove

Private Apps - [*] Linked to SD Card.
[*] File .noa2sd not found.
[*] Private Programs run from SD card
To run from internal storage, type a2sd remove

Dalvik Cache - [*] Regular directory.
[*] File .dalvikcache not found.
[!] Dalvik runs from Int. Storage.
To run from SD card, type a2sd cache.

Swap - [*] Partition present.
[*] File .noswap not found.
[*] Swap starts.
To deactivate swap, type a2sd noswap

ZipAlign - [*] Running at boot.

Property Patch - Property found.
cm.filesystem.ready or dc.filesystem.ready
[*] Boot image init.rc patched.

EDIT : after a2sd remove => boot loop....
[Hero CDMA Android Development] mjweisberg:
A2SD Feedback on EXT Type

Is there anything within Darktremor A2SD (V2.7 U1) that shows which EXT Version (EXT2, EXT3, or EXT4) you have on your SD Card? I have looked at A2SD Diskspace and it shows the Disk Space statistics but does not show the EXT version being used. It (A2SD Diskspace) is doing what it is supposed to do, but I would like some confirmation on the EXT type and thought that might be the location to look for it (feature request).

Mark
[Hero CDMA Android Development] ilos:
just do :

a2sd check and you will see a line like that :

/dev/block/mmcblk0p2 /system/sd ext2 <= EXT version
[Hero CDMA Android Development] mjweisberg:
Thanks Ilos! Works Great!!

Mark
[Hero CDMA Android Development] tkirton:
I'll take a look at it...I can pull a property list to show that info.
[Hero CDMA Android Development] tkirton:
Technically, you should have a symlink called getprop. However, I thought I had changed out the line to directly access getprop.

Here's how you can immediately resolve the issue:

Type adb remount to remount the phone

Type adb shell to enter the shell of the phone

Type cd /system/bin and press Enter

Type /system/xbin/busybox ln -s toolbox getprop and press Enter

Type /system/xbin/busybox ln -s toolbox setprop and press Enter.

Type reboot and press Enter (if that doesn't work, just reboot the phone).

This should get you running. In the meantime, I'll make the adjustments to the program.
[Hero CDMA Android Development] ilos:
i will try tonight and keep you posted :)

EDIT : if all working great tonight, i will try to put it in my first rc cooked rom. I had already cooked a rom without dalvik-cache ( script disable in init.d ) and without a2sd ( your version is near perfection but due to the loop boot...not included ) .

Dalvik-cache make a error after some reboot ( on modaco r1 & r2 cooked rom by Paul ) , with apps install from the market : no enough disk space in internal memory....

if your a2sd work great and put dalvik-cache on SD : problem will be solved :D
[Hero CDMA Android Development] ilos:
duplicate post..
[Hero CDMA Android Development] tkirton:
If you want to put the dalvik-cache on the sd card, try this:

Boot with the A2SD. Don't worry if it boot loops.

Access the phone and type a2sd nocache. This will put it back in internal storage.

Reboot the phone and wait for it to come up. If it boot loops, we'll continue to the next step.

Access the phone again and type a2sd cache. This will switch it to the SD card.

Then type a2sd resetcache. This will clear the dalvik-cache. It should reboot immediately, but some people have reported that it doesn't. If not, reboot the phone.

Upon reboot, the dalvik-cache should rebuild on the SD card.

To make a rom where dalvik-cache always goes to the SD card, include a file called .dalvikcache in /system/bin. This will be detected and moved to /system/sd.

Also, you may want to also put the file .nozipalign in /system/bin as well when you create a rom. This will prevent zipalign from running at boot (moves the file to /system/sd). I've had issues with Zipalign messing up programs, especially Market when it is located in /data/app instead of /system/app.
[Hero CDMA Android Development] regaw_leinad:
see the weird thing is, the market apk is NEVER located in /data/app, until this... I have confirmed that after flashing my brand new ROM, I did NOT have com.vending.apk in /data/app,

but now I have it after flashing your a2sd zip... no clue as to why
[Hero CDMA Android Development] ihtfp69:
I hope someone else has run into this issue and can help. I have searched this thread and others, but have not come up with a resolution. I have an HTC Eris and using the stock class 2 8gb, have no problems running my apps, cache and swap from the sd.

However, I read throughout here that a class 4 or 6 card is much faster and is better equipped to handle the data transfer. So I purchased a class 4 PNY 8gb card and went through the normal procedures to prep it for a2sd.

Everything worked without any errors. Nonetheless, on reboot after a2sd has moved everything to the sd card, the phone locks at the skateboards. Now, I found I can fix this by running \system\bin\a2sd check from adb. It gets to the point where it checks the mount and says it has to recovery the journal, takes a few minutes, and then completes noting everything is ok. Then the phone proceeds to boot seconds later.

This happens on EVERY boot and it will get stuck for 30 minutes if I let it. right now, I moved everything back and disabled a2sd and the phone boots normally each time.

Does anyone know what is wrong or how to fix this?
[Hero CDMA Android Development] blumail:
I'm having problems running dalvik on SD card with the ZenXP rom 0.9.6. I tried a2sd repair and also a2sd nocache followed by a2sd cache and a2sd resetcache. Below the report of a2sd check...Any help on how can I fix this?

# a2sd check

[ ] Starting Darktremor A2SD version 2.7

[ ] Starting A2SD in check mode

[ ] Mounting /system as read-write

[ ] Mounting /data as read-write

[ ] Mounting /system as read-write using Busybox Mount.

[ ] Mounting /data as read-write using Busybox Mount.

[!] Busybox installed, but symlinks are not present.

[ ] Installing Busybox Symbolic Links...

[ ] Running A2SD Check Program.

[ ] Checking for ext partition

/dev/block/mmcblk0p2 /system/sd ext3 rw,noatime,nodiratime,errors=continue,data=ordered 0 0

[*] Ext partition found and already mounted.

[ ] Checking A2SD links.

A2SD Status Report

==================

Apps - Linked to SD Card.

File .noa2sd not found.

[*] Programs run from SD card

Private Apps - Linked to SD Card.

File .noa2sd not found.

[*] Private Programs run from SD card

Dalvik Cache - Regular directory.

File .nocache not found.

[X] Dalvik runs from Int. Storage.

[X] Setup issue. Run a2sd repair to fix.

Swap - Partition present.

- File .noswap not found.

- [*] Swap starts.

Property Patch - Property found.

- cm.filesystem.ready

- [*] Boot image init.rc patched.
[Hero CDMA Android Development] blumail:
fixed installing the update to 2.7 update 1
[Hero CDMA Android Development] ihtfp69:
Just a guess, but is it possible that the partition is not being mounted on boot? What exactly controls that? It seems likely because running a2sd check displays this:

[!] [B]Ext partition found, but not mounted.[/B]
[ ] Checking Ext partition...
e2fsck 1.40.8 (13-Mar-2008)
/dev/block/mmcblk0p2: [B]recovering journal[/B]
/dev/block/mmcblk0p2: clean, 228/249856 files, 151070/499550 blocks
[ ] Mounting ext partitions[*] Ext partition mounted.
[ ] Checking A2SD links.
[Hero CDMA Android Development] regaw_leinad:
just wanted to make sure you knew you typed get/setdrop instead of what it should be.... getPROP and setPROP
[Hero CDMA Android Development] ilos:
oups thanks :D

but always boot loop :P
[Hero CDMA Android Development] thajacka:
nevermind......
[Hero CDMA Android Development] xxxk15:
Can i take out the sd card if i turn off the phone??
[Hero CDMA Android Development] regaw_leinad:
yes you can take it out
[Hero CDMA Android Development] danaff37:
market gets put there when it updates for some reason. And it seems to update of its own free will
[Hero CDMA Android Development] tkirton:
<scratching head>

How is that possible?
[Hero CDMA Android Development] tkirton:
God...I need to make a concerted effort to proofread what I send.

Thanks for the catch.
[Hero CDMA Android Development] tkirton:
A2SD starts via a call from init.rc during boot. It is possible that the rom doesn't call it. What rom are you using...I can check it out for you.
[Hero CDMA Android Development] tkirton:
That looks like beta 4 (looks like someone tampered with the version line...developer is going to end up in my line of sight). Download 2.7 Update 1 and try again.

If it still doesn't work, the developer may not have fixed the issue (have this issue with some developers). Is this the Hero or Eris rom (can't tell anymore). If it still doesn't work, I'll check it out and see if I can fix the rom.
[Hero CDMA Android Development] hatchguy06:
OK im runnin fresh 2.1.1 with Amon RA V 1.6.2 recovery i get stuck in bootloop and ideas?
[Hero CDMA Android Development] showbo:
Quick question. How exactly does apps2sd work with nadroid backups?

And installing a new rom?

Do I wipe everything, and have to reinstall all the apps again, or can I just data wipe, and install rom, and my apps be there?
[Hero CDMA Android Development] tkirton:
Don't know...run a2sd check and post the results.
[Hero CDMA Android Development] tkirton:
If you do backup + ext, it will backup the app and app-private on your sdcard

If you do a wipe without doing a wipe ext, then your programs are preserved.

You can also install a new rom and your apps will be there. You may have to clear dalvik-cache if you get into a boot loop.
[Hero CDMA Android Development] showbo:
With that being said. If i do a backup+ext...I can wipe everything data, ext, mem, etc., and nadoid to that backup and it will put my apps back to where they were?
[Hero CDMA Android Development] smw6180:
Yep. That'll do it. It will essentially take a snapshot of where your phone is just before you booted into recovery.

Note: You can't restore that over a new ROM flash because it will overwrite it. So if you're thinking of using it to restore apps on a new ROM it won't work, you need something like Titanium Backup.
[Hero CDMA Android Development] BrooklynAvi:
Any chance of this working in Froyo? I got it working but I could not install apps from the Market (it just hung there) and it did not go past the X boot screen. But it technically sym linked everything properly. Believe it or not, apps2sd is still needed in Froyo because the new method is terrible, at least as far as I'm concerned.
[Hero CDMA Android Development] Netmatrix:
worked

htc tattoo your script runs like a charm, thank you
[Hero CDMA Android Development] zwade01:
Thanks for this!! It works perfectly on the Eris running Senseless 1.0 Pure Vanilla!!
[Hero CDMA Android Development] wingzfan:
I think I know the answer to this but I'll ask anyways...

This wont work on the 2.1 sprint rom will it? The official one that cant be rooted "yet".
[Hero CDMA Android Development] troyboytn:
your feeling is correct.....no go on official til root is achieved
[Hero CDMA Android Development] rostercool:
I do everything right but i can't find the program a2sd in the phone, some one can help me with this? my phone is HTC Hero is rooted and use fresh room 2.1
[Hero CDMA Android Development] bruce5876:
worked just fine.

i went from 17mb to 51mb.my question is when i add apps from the market they are still going to the internal memory.do i wait till i'am low on memory.then run the update again.or is there a step that switches it auto to sd card.:)
[Hero CDMA Android Development] tkirton:
When it didn't go past the X boot screen, did you do a logcat to see if it was truly stuck (bootloop) or was it rebuilding dalvik-cache. Dalvik-cache takes a while to rebuild...more so if it is on the SD card and your SD card is Class 2.
[Hero CDMA Android Development] tkirton:
Not straight from the RUU...but there is a stock sprint rom out there that I did put A2SD in it. It's in a separate thread, and it does have partial root (this was the one Damage did and I just put A2SD in).
[Hero CDMA Android Development] tkirton:
1. That's not my script. That's TrevE's script for DamageControl (which is what Aloysius is based on). This looks possibly like a Busybox issue. Download my version and install it...see if you get the same results (note: I have implemented a lot of stuff that is in DamageControl's version, but my version does not have JIT at all...this is held off until more testing can be done).

2. Your Davlik-cache is still using internal storage. This will continue to consume internal space. I would say to type a2sd cache to move the cache over to the SD card, but TrevE's version doesn't have that command. He uses a graphical interface to switch flags in DConfig, while I use direct commands to create or remove flag files in /system/sd.
[Hero CDMA Android Development] tkirton:
If you flashed my version, the program is located in /system/bin. You will need to use either a terminal program from the market or adb from the Android SDK to access it.
[Hero CDMA Android Development] tkirton:
Type a2sd cache in an adb shell. That will move dalvik-cache to the SD card. Dalvik-cache is a space consumer.
[Hero CDMA Android Development] twin001:
Issues with Apps2SD.

Phone: Sprint Hero

RA-heroc-v1.6.2 recovery (rooted via flashrec-1.1.3-20091107-2)

Running Aloysius 2.0.9

I ran A2SD check and this is what it said (via Terminal Emulator)

$ a2sd check

mount: permission denied. (are you root?)

rm failed for /data/dcboot.log, Permission denied

Starting Apps2SD script for DConfig at 05-26-2010 10:29:34

setting variables from default dc.conf in /system/etc/

: permission denied

: permission denied

: permission denied

: permission denied

: permission denied

: permission denied

: permission denied

: permission denied

: permission denied

: permission denied

: permission denied

: permission denied

: permission denied

/system/etc/dc.conf: cannot create /sys/module/lowmemorykiller/parameters/minfree: permission denied

[ ] checking variables

[ ] Searching for Mount Point...

[ ] Mount point found..no further action required.

[!] Setting Dalvik VM Heapsize to 16mb.

[ ] Checking for ext partition

[!] Ext partition found.

[ ] Checking Ext partition...

e2fsck 1.40.8 (13-Mar-2008)

/system/bin/e2fsck: Permission denied while trying to open /dev/block/mmcblk0p2

You must have r/w access to the filesystem or be root

1

[ ] Mounting ext partitions as ext3.

mount: permission denied. (are you root?)

[X] Mounting ext partition as ext3 failed.

[ ] Mounting ext partition as ext2.

mount: permission denied. (are you root?)

[X] Mounting ext partition as ext2 failed.

[X] Can't continue script...aborting.

$

I have partitioned the SD card. Swap is set to 0, Ext2 is 512. I have an 8G class 6 SD card. Here is the steps I have done.

1. Wipe everything (data/factory reset, Dalvik-cache, SD:ext partition)

2. Partition SD Card

3. SD:ext2 to ext 3

4. Load a2sd and Aloysius via usb

5. Flash a2sd-2.7 from zip

6. Flash Aloysius_2.0.9 from zip

7. Reboot phone.

Am I doing this wrong?
[Hero CDMA Android Development] lostnfound53:
Re: [APP] Darktremor A2SD (Apps2SD) version 2.7 Update 1 (2010-05-16)

I have the same exact problem. Curiously enough, I also have the same exact software and ROM on my phone as you.

-------------------------------------

Sent via the XDA Tapatalk App
[Hero CDMA Android Development] rostercool:
ok but how i can move the apps to my sd card?
[Hero CDMA Android Development] cableguynoe:
Ok,

I am about to flash a rom the has A2sd.

Would any of this come into play? :

Or would I just follow the steps from that rom?

Maybe do this afterwards?:

Or is there no benefit to doing this If my rom already has A2sd?

Sorry for the noob question....
[Hero CDMA Android Development] tkirton:
1. You're not root. If you are using a Terminal Editor, you need to execute su before a2sd check.

2. I see what happened from your installation instructions. Flash Aloysius first, then Darktremor A2SD. Going in reverse (the way you're doing it), the Darktremor A2SD is wiped out by Aloysius.
[Hero CDMA Android Development] tkirton:
If you have never setup the SD card with an ext partition, follow the first set of instructions.

If you have already set everything up on your SD card, follow the second set of instructions.

The difference between them is the part about setting up your SD card in recovery.
[Hero CDMA Android Development] tkirton:
I stand corrected, TrevE's version does have a2sd check...mine works better, though. :D
[Hero CDMA Android Development] twin001:
That worked! Thank you.

Here is what made this work. I'm rooted via RA-heroc-v1.6.2/flashrec-1.1.3-20091107-2 and running Aloysius_2.0.9

1. From the recovery screen wipe everything (data/factory reset, Dalvik-cache, SD:ext partition)

2. Partition SD Card

3. SD:ext2 to ext 3

4. Load a2sd and whatever ROM you want via usb in recovery mode

5. Flash Aloysius_2.0.9 from zip

6. Reboot phone

7. Download Terminal Emulator from Market

8. Reboot phone into recovery (home/end button).

9. Flash a2sd-2.7 from zip

10. Reboot phone

11. Open Terminal Emulator and type in "SU". The $ sign will turn into a # sign, this tells you that you are root.

12. Type "A2SD Check" to make sure everything is working.

Thanks again tkirton! :D I now have 146MB of internal and all my apps are on the SD card and are working great. The phone is much quicker and I don't have to worry about how many apps I have installed!
[Hero CDMA Android Development] lostnfound53:
Hmm, you know, I am sure I had a2sd working then. The strange this is that only when I moved the cache to the SD card did I get lots of space freed. At first, when the cache to SD process was completed, I went from 30MB to 80MB free. Then, I rebooted the phone and am now sitting at 112. I wonder what could have caused this? The Friendstream widget stopped working after I moved the cache to SD though.
[Hero CDMA Android Development] xxxk15:
well i charged my phone last night turned it on this morning and it was all messed up.My apps were force closing and my apps werent appearing. i turned it on and off like 4 time and now everything appears but all my apps force close and dont work properly. i didnt take out my sd card or anything like that. Should i go into recovery mode and repair the ext??
[Hero CDMA Android Development] xxxk15:
well i tied to just hit repair ext and it didnt fix anything so i wiped the ext then repaired it and rebooted it and it took me into a boot loop. now i am tying to do a nan+ext backup and it is taking my into a boot loop. What do i do now??
[Hero CDMA Android Development] twin001:
Start over from the beginning.
[Hero CDMA Android Development] xxxk15:
what do you mean start over again??
[Hero CDMA Android Development] tkirton:
Glad I could help.
[Hero CDMA Android Development] xxxk15:
i fixed it
[Hero CDMA Android Development] tkirton:
That could be ZipAlign. I thought that was turned off by default. I'll have to check the build...maybe my compile script didn't set the flag correctly.

Also, if the phone took a while to reboot, dalvik-cache may have been forced to rebuild. That could've cleared out some garbage.
[Hero CDMA Android Development] lostnfound53:
Ah, that makes sense. When I rebooted the phone, it booted up fairly quickly, so I don't believe it was rebuilding the Dalvik cache. Is there a way to disable zipalign without editing the bootup script?
[Hero CDMA Android Development] twin001:
Here are the terminal inputs and what they do (copied from first page I think).

1. Moves applications to the sd card

2. Moves dalvik-cache to the sd card (a2sd cache)

3. Activates swap partition if one exists (a2sd swap to activate, a2sd noswap to deactivate)

4. Allows the user to deactivate a2sd without removing the ext2/ext3 partition (a2sd remove to deactivate, a2sd install to activate)

5. Allows the user to restore dalvik-cache back to the main memory (a2sd nocache)

6. Allows the user to deactivate swap (a2sd noswap to deactivate, a2sd swap to activate)

7. Creates the /system/sd mount if one doesn't exists.

8. Checks the symlinks and flag files. Reports to the user what needs to be repaired. Also checks the Busybox installation. (a2sd check)

9. Repair symlinks based on active flag files. Also repairs missing or incomplete busybox installations. (a2sd repair)

10. Zipaligns all programs in /data/app and /data/app-private. Using the align command, /system/app will also be zipaligned. You can turn on and off ZipAlign (a2sd zipalign / a2sd nozipalign)

11. Wipes dalvik-cache without the need to go into a recovery partition (a2sd resetcache)

12. Checks how much space is being used on your ext partition (a2sd diskspace)

13. Repairs missing or corrupted market in Android 2.1 (a2sd fixmarket)
[Hero CDMA Android Development] tkirton:
Yes. Type a2sd nozipalign and it will disable zipalign at boot.
[Hero CDMA Android Development] PTown599:
Thanks.

Thanks for this. It fixed the problem of DC 2.08 rebuilding the cache after every boot. a2sd check comes back clear now, all is well.
[Hero CDMA Android Development] mike2246:
Did everything, it all appears to work. if I run a2sd check everything looks good but when i run task manager it says only 75-90 free without installing any additional apps am I missing something?
[Hero CDMA Android Development] posguy99:
What does the amount of free RAM the phone has have to do with the amount of storage space available?
[Hero CDMA Android Development] mike2246:
sorry, excuse the noob. how do i see how much free space than?
[Hero CDMA Android Development] tkirton:
Where's does a2sd check say your dalvik-cache is stored? If it's in internal storage, type a2sd cache to move it to the SD card.
[Hero CDMA Android Development] tkirton:
Crap...I just answered that without thinking that it was free memory he was looking at. Today has just been one of those days nothing has worked.
[Hero CDMA Android Development] tkirton:
a2sd diskspace. This will show you the amount of space used on the SD card.
[Hero CDMA Android Development] St-Bun:
I have succesfully rooted my desire and installed a2sd using the instructions in the first post.

Now when i run a2sd check i get an error:

"mkdir: cannot create directory '/system/sd' cannot allocate memory"

"Unable to chmod /system/sd: No such file or directory"

Can somebody help me?
[Hero CDMA Android Development] gunnyman:
TKirton:

Is there anything in a2sd darktremor that is htc kernel specific?

Here's why I'm asking. The A2SD on the Moment which I just recently switched to, doesn't work. I was looking at adapting yours for my phone. Looking at the install.sh the only glaring difference is where the devs of the moment put /busybox. Once you get past the kernel isn't the android phone just a Linux file system and are they pretty much the same across phones? Am I biting off more than I want to chew by trying this?

Thanks
[Hero CDMA Android Development] tkirton:
Using Darktremor A2SD with the Desire has been a crapshoot. Sometimes it works, others not.

What Rom are you using?