yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] itrackit:
I've got some "X's", any help will be appreciated. i know i'm missing a step running these commands. thx.

c:\AndroidSDK\tools>adb shell

# /system/bin/a2sd help

/system/bin/a2sd help

Starting Apps2SD script for DConfig at 06-11-2010 12:47:49

setting variables using values stored from DConfig tool

[ ] 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: Device or resource busy while trying to open /dev/block/mmcb

lk0p2

Filesystem mounted or opened exclusively by another program?

8

[ ] Mounting ext partitions as ext3.

mount: mounting /dev/block/mmcblk0p2 on /system/sd failed: Device or resource bu

sy

[X] Mounting ext partition as ext3 failed.

[ ] Mounting ext partition as ext2.

mount: mounting /dev/block/mmcblk0p2 on /system/sd failed: Device or resource bu

sy

[X] Mounting ext partition as ext2 failed.

[X] Can't continue script...aborting.
[Hero CDMA Android Development] daPorkchop:
Re: [APP] Darktremor A2SD (Apps2SD) version 2.7 Update 1 (2010-05-16)

Are you partitioned? Try to repair or wipe your ext and redo it to 3.

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

Sent via the XDA Tapatalk App
[Hero CDMA Android Development] tkirton:
Dconfig won't work if you put my A2SD in DamageControl. Dconfig requires the A2SD designed by TrevE. His A2SD and mine use different methods to control the A2SD (he uses a dconfig file, I use individual flag files [.noa2sd, .dalvikcache, .nozipalign, .noswap).

As for the message...I can't find a problem with the code. This is going to sound like a stupid question, but did you run the a2sd cache after you ran a2sd nocache? I presume you did, but I need to ask.
[Hero CDMA Android Development] tkirton:
Looks like TrevE's version. It's trying to mount the /dev/block/mmcblk0p2 device after it is already mounted (that's what it means when the phone says "Device or resource busy").

This was a flaw in earlier versions of Darktremor A2SD (version 2.5) (which is what TrevE's code is based on). Darktremor A2SD 2.7 has code to fix that very issue.
[Hero CDMA Android Development] PTown599:
Thank you for the quick response.

Perhaps I am not understanding how the flags function. I am trying to move my dalvik back to internal from sd, so I executed the nocache after "disabling" a2sd in dconfig. I confirmed the cache files are internal now.

Do I still need to execute the a2sd cache after a2sd nocache?
[Hero CDMA Android Development] tkirton:
Execute a2sd cache if you want to move dalvik-cache back to the SD card.
[Hero CDMA Android Development] tkirton:
Okay...new version: http://www.darktremor.com/temp/a2sd-2.7-moment-signed.zip

Got rid of the toolbox.a2sd and just used getprop and setprop on their own.
[Hero CDMA Android Development] PTown599:
Now correct if I'm wrong, but when a2sd nocache is executed it appears to move the files and then remove the previous directories correct?
[Hero CDMA Android Development] gunnyman:
File not found. :)
[Hero CDMA Android Development] tkirton:
If I get the damn domain name right, it may help.

It's suppose to be www.darktremor.info, not www.darktremor.com (although I maintain both sites, one is being phased out for the other).

http://www.darktremor.info/temp/a2sd-2.7-moment-signed.zip

Edit: And I have to learn how to type as well...
[Hero CDMA Android Development] tkirton:
if [ -h /data/dalvik-cache ];

then

/system/bin/busybox.a2sd echo "[ ] Removing /data/dalvik-cache link.";

/system/bin/busybox.a2sd rm -f /data/dalvik-cache;

/system/bin/busybox.a2sd echo "[ ] Creating /data/dalvik-cache directory.";

/system/bin/busybox.a2sd mkdir /data/dalvik-cache;

/system/bin/busybox.a2sd echo "[ ] Setting permissions on /data/dalvik-cache";

/system/bin/busybox.a2sd chmod 777 /data/dalvik-cache;

/system/bin/busybox.a2sd echo "[ ] Copying /system/sd/dalvik-cache to /data/dalvik-cache";

/system/bin/busybox.a2sd cp /system/sd/dalvik-cache/* /data/dalvik-cache;

fi;

/system/bin/busybox.a2sd echo "[ ] Removing Dalvik Cache flag file.";

/system/bin/busybox.a2sd rm -f /system/sd/.dalvikcache;

1. Removes the symbolic link of /data/dalvik-cache that connects /system/sd/dalvik-cache

2. Creates the dalvik-cache directory and sets permissions in Internal Storage

3. Copies all contents of /system/sd/dalvik-cache to /data/dalvik-cache

4. Removes dalvik-cache to SD flag (/system/sd/.dalvikcache)

Doesn't remove previous directories.
[Hero CDMA Android Development] gunnyman:
well Reboots cause boot loops still. I'm flummoxed

have a pastebin :p http://pastebin.com/mR6cd4qK
[Hero CDMA Android Development] PTown599:
Ah wonderful thank you. Its as I suspected, when executing the steps above it appears step 4 did not complete.

I executed a2sd no cache again the previous evening and everything is reporting correctly now, even though it was working correctly.

Your help has been much appreciated and thank you for a wonderful bit of kit.
[Hero CDMA Android Development] johnnyphive:
Need custom boot img

I recently updated my hero to 2.1 and rooted it. Really want to keep it as stock as possible, but i wan't my Apps2SD back. I understand the stock (Sprint / HTC) boot.img doesn't support A2SD. Can anybody suggest or link me to one that i could put on my phone that will so that i can install this (a2sd)????
[Hero CDMA Android Development] tkirton:
That logcat actually helped. It appears that A2SD is not starting during boot. Rom must not be starting it or it is started from another file (although I don't see any evidence of another A2SD being started, either).

This would require modifications to init.rc (which means the boot.img will have to be broken out to both kernel and ramdrive. The ramdrive portion controls the init.rc.
[Hero CDMA Android Development] tkirton:
No problem...that's what I'm here for.
[Hero CDMA Android Development] tkirton:
http://xdaforums.com/showthread.php?t=682373

This is stock with A2SD support. It has Darktremor A2SD 2.7 Update 1 installed.

Only the boot.img was altered.
[Hero CDMA Android Development] gunnyman:
Ok well Happily I don't have to waste anymore of your time with this. I'm going back to the Hero today. :)
[Hero CDMA Android Development] johnnyphive:
As stated in this post http://xdaforums.com/showpost.php?p=6680649&postcount=36 i keep getting errors while trying to install this...any ideas???
[Hero CDMA Android Development] tkirton:
Re: [APP] Darktremor A2SD (Apps2SD) version 2.7 Update 1 (2010-05-16)

Congratulations. But it would've been great to get it to work.

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

Sent via the XDA Tapatalk App
[Hero CDMA Android Development] gunnyman:
They have it working supposedly over at SDX-Developers.com but I couldn't get it to work and the dev doing it never posts a changelog or much instruction. Here it is if you want to take a peek. http://forum.sdx-developers.com/android-2-1-development/app2sd-update-script-zip/

The Moment is a bizarre phone filesystem wise.
[Hero CDMA Android Development] tkirton:
Re: [APP] Darktremor A2SD (Apps2SD) version 2.7 Update 1 (2010-05-16)

Then why don't you take the boot image from the stock Rom and push it manually to your phone?

Extract the boot.img from the Rom and save it to your SD card. Then go to adb shell and type the following command:

flash_image boot /sdcard/boot.img

And now you have a2sd support. Flash Darktremor A2SD and you are set.

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

Sent via the XDA Tapatalk App
[Hero CDMA Android Development] tkirton:
Updated information

Some new information on the front page.

Still would like some testers for A2SD 2.7.5. PM me if interested.
[Hero CDMA Android Development] gunnyman:
LOL I've created a monster :D
[Hero CDMA Android Development] tkirton:
Interesting...they are trying to setup the A2SD during the flash process. I guess you can do that, but it certainly wouldn't be something I would have done. You'll have to reflash if you installed the program without actually setting up the SD card.

I think they are trying to run install-recovery.sh when the system boots (which just mounts the ext partition). The rom used must do one of the following for this to work:

1. Actually run install-recovery.sh from the init.rc

2. Run Run-Parts from Busybox (although I would've put this file in an init.d folder so it doesn't try to run everything else in the /system/etc folder)

I guess what I need to do is break down a rom from the Moment and see what it is trying to run.
[Hero CDMA Android Development] gunnyman:
You can try talking to noobnl but he as you can see never talks much, just puts stuff out there. One of the things I hated about the Moment is the devs are very close to the vest and tight lipped about what they do to make things work. One nice thing they have on that board is the arm11 optimized dalvikvm driver. Speeds up the phone about 50% they are seeing 4.5 ish MFLOPS without OC or JIT.
[Hero CDMA Android Development] wrath112:
Evil Eris 3.0

installed the 3.0 and i was getting tired of installing apps and stuff but after i installed the apps2sd on the evil eris 3.0 it made everything work funny as well as no dialer shortcut ...
[Hero CDMA Android Development] tkirton:
Was everything working before you applied A2SD?

Does your SD card has an ext3 partition?
[Hero CDMA Android Development] sh4nk:
So I have a question regarding internal storage. I run Aloysius 2.1, and also run darktremor a2sd. My sd card is partitioned correctly, as my apps are being saved to my sd card. Yesterday I had to do a wipe of my phone, and the other two options that are below the "factory data wipe" in recovery. So, I had to re-install all of my apps. Prior to doing this though, it said my internal storage was 40mb. After installing a bunch of apps, I have about 28mg. First, why is my internal storage so low if all my apps are being saved to my sd card, and second, why is it continuing to go down with each app i install. Even though for each app it is only a very tiny amount of storage being taken. I just can't figure out WHY the internal storage is so damn low in the first place, it should be higher, shouldn't it???
[Hero CDMA Android Development] tkirton:
Without dalvik-cache moved to the SD card, you should be in the 70MB range.

Perform a Nandroid backup before performing these steps, just in case.

When you reflashed the rom, did you reflash Darktremor A2SD right after that? I know it sounds silly, but you wouldn't believe how many people accidentally miss that step (Aloysius does have A2SD built-in, I believe it is based on DamageControl's version, which you have to manually turn on using the Dconfig app). If you aren't sure, just reflash A2SD on top of the rom.

If you did flash Darktremor A2SD, run a2sd check to see. If it appears not to be working, type a2sd repair to fix the issue.

Also, dalvik-cache takes up space. By default, Darktremor A2SD doesn't move dalvik-cache to the SD card. Type a2sd cache to move dalvik-cache to the SD card.

If you are still having issues, let me know and I'll continue to troubleshoot.
[Hero CDMA Android Development] sh4nk:
I forgot to mention something last night, as I was quite tired. After I did the wipe of everything, I performed a nandroid restore, so that I would have all of my apps back. After I did this I STILL had to go re-install all of my apps. Do you think this is playing into why my internal storage is so low? Even though I did the wipe, I still did the nandroid restore after I did the wipe. Because I thought it would give me all my apps back, which it didn't. But since I had to re-install all of my apps, I would think that the internal storage would be more, since they are saving to the sd card, but the internal storage was low right after I did the nandroid restore. If I remember right, before I did the restore, the internal storage read 90mb, I think, then after the nandroid it went to 40, despite none of the apps being on the phone.

Yes, when I re-flashed Aloysius 2.1, I also re-flashed Dartremor a2sd as well. It was still on my sd card, so I flashed it. It appears that my apps are being saved to my sd card, because with all the apps I downloaded, I think I would have nearly no internal storage left. I am also not sure where I type in "a2sd check", or where to type "a2sd repair". I'm not too certain on what to type to get into the adb shell either, it was quite awhile ago when I rooted my sprint hero, and I really haven't needed to get into the adb shell since rooting it.

If Aloysius already has it installed, do I need to run darktremor as well? If darktremor works fine/better than aloysius's a2sd, I'll gladly use darktremor. Do I need to do another wipe of my phone, and those other two things below the "data/factory reset", and then start from the ground up, instead of doing the nandroid restore like I did? I appreciate the help!
[Hero CDMA Android Development] tkirton:
Couple of things come to mind:

1. When you did the nandroid backup, did you select the nandroid backup option or the nandroid + ext option? If you chose the first one, your programs on the SD card would not be saved.

2. The A2SD isn't loading...but there's a way to check that.

If you don't have access to ADB, download a terminal program from the market. Once you do that, open it and perform the following commands:

su

/system/bin/a2sd check

That will show you if you are actually saving programs to the SD card or not.

I would agree if you are downloading a lot of programs you would have probably ran out of space or come dangerously close to it. I suspect that, if the A2SD is working, then your issue is dalvik-cache. If you want to move the dalvik-cache to the SD card, type the following while still in the terminal program (providing that a2sd check states there are no issues):

/system/bin/a2sd cache

If you do run a2sd check and it states there is an issue (/data/app is on internal storage), then we need to find out why before you run the a2sd repair. Send me the results of the check if there's issues and we'll go from there.
[Hero CDMA Android Development] sh4nk:
I only selected the "nandroid backup" when I did my back up earlier this month. So that would explain why my apps weren't saved. When I originally did the nandroid restore, all of the names of the programs, and icons, were on my screens. They weren't the regular icons though, they were white, with a gear thing and paper looking thing. So i guess that would explain why the apps had to be re-installed. Still not sure why my internal memory was at 40mg though. I have access to the adb, via the command prompt on my laptop, I'm just not too savvy with the commands that I have to type to get into it, without screwing it up, lol. I'll download a terminal program later tonight, I have a big paper I have to write my my criminal justice class tonight first. Last time I downloaded a terminal program though, it wouldnt really let me type anything in, it had alot of problems. Do you recommend a certain program?

Would using dconfig to move my apps to sd, and the dalvik cache to sd work? Or since I'm using darktremor do I have to go about it with the adb?
[Hero CDMA Android Development] tkirton:
Much easier to do it in adb.

Type adb shell to get to the terminal of your phone. After that, type the commands from earlier.

Dconfig is designed for DamageControl's version (created by TrevE). He uses a completely different technique to control A2SD (uses a property file, I use flag files). His GUI won't work on my version. I'm in the planning stages for a GUI version of Darktremor A2SD (version 2.8), but I'm not that good with Java, so I have to have a friend help me with it.
[Hero CDMA Android Development] ynvmalimal:
size of partitions?

how big should each partition be?
[Hero CDMA Android Development] tkirton:
For the ext partition, it really depends. Most people set theirs at 512MB. Mine is set to 4GB (I have a 16GB SD card). I would say between 512MB and 1GB would work.

For the swap partition, 32MB is optimal. I have mine set to 64MB. Do not set it above 64MB, your performance will degrade significantly.
[Hero CDMA Android Development] sh4nk:
Re:

I will try out what you said, and ill let you know how it goes. Itll have to be tomorrow, because its been a loooooong ass day, lol.

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

Sent via the XDA Tapatalk App
[Hero CDMA Android Development] sh4nk:
I have a quick question. If for whatever reason the a2sd check, or repair, doesn't work, can I do the wipe that I did the other day to get my phone working again? It was the "factory data wipe" and the other two "wipe" options below the "factory data wipe" in recovery, one of which is a wipe of the sd card, but keeping the partitions in tact. I was thinking this because when I did that, it showed that I had about 90mb of internal storage, and it wasn't until I did the nandroid restore that it dropped down to 40mb, even though none of the apps were on my phone, and I had to re-install all of them. I just thought that I could do the wipe, then re-flash Aloysius 2.1, and Darktremor, because that may be easier to do since all I would have to do is re-install all of the apps on my phone. If I do that though, will setCPU still be in the market under apps I've paid for? I don't really want to have to buy it again since I already have bought it.

I also was thinking that the wipe may be beneficial, because ever since I did the nandroid restore, "Sense" has been having some issues (like having to force close, a lot of lag, or randomly re-booting). Because I really don't mind having to re-download all the apps again if it will get my phone working like it was before I had to fix it, lol.
[Hero CDMA Android Development] Jus10o:
Holy tartar sauce.. 4gb for apps.. lol i couldnt use 2gb if my life depended on it. Like with actually apps I would use.

I kinda skimmed through this, the OP could answer more of the questions.

But ANY app you have EVER paid for will alwaysss be saved. In the market it will never disappear, so you wont have to re-buy anything. As long as you sign in with the same google account you purchased it on.

Also wiping everything and starting fresh is the best thing to do when you get alot of problems. You learn where it goes wrong, if it even happens again. Also if flashing different things, files can be left behind that could cause issues. So doing a clean install and only flashing the necessary things could make everything work perfect again.
[Hero CDMA Android Development] sh4nk:
Ok, I did the a2sd check.

These all have an "*" next to them, so that's why I'm putting an "*" when there's one, and a "!" when there's an "!" next to it.

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 casch-*regular directory.

*file .dalvikcache not found.

!dalvik runs from int. storage.

swap-*partition present.

*file .noswap not found.

*swap starts.

zipalign-*running at boot

property patch-property found.

cm.filessystem.ready or dc.filesystem.ready

*boot image init.rc patched

_____________________________________________

I wasn't quite sure how to copy it from the CMD window, into a post. So I figured writing it out so you knew exactly what it says would help. Above the A2SD Status Report, there is a "!" next to "mount point found..no further action required. and a "*" next to "ext partition found and already mounted.

So, it looks like my apps are being saved to my sd card, so why is my internal memory so low? Even if I move the dalvik cache to the sd card, it probably won't give me too much more internal storage, will it? Should I just do the wipe like I mentioned in the post before this one?

I hope that this info helps.
[Hero CDMA Android Development] tkirton:
It doesn't hurt the ROM or A2SD to do the factory wipe (which wipes /data/data), dalvik-cache (wipes /data/dalvik-cache) and the SD card (wipes /system/sd/app and /system/sd/app-private). You'll just lose all of your data.

Also, paid apps don't disappear from Market if you wipe your phone. Once you pay for an app, it will reappear in your Market list, no matter what Rom you have installed.
[Hero CDMA Android Development] tkirton:
Actually, dalvik-cache is a space hog.

Example: On a test with the dalivk-cache in Darktremor A2SD version 2.5, my free space went from 74MB (with apps moved to SD card) to 110MB (with both apps and dalvik-cache moved).

However, I have a Class 6 SD card. It is recommended you have at least a Class 4 if you are going to run dalvik-cache on the SD card. Class 2 may not run fast enough and will take a very long time to reload dalvik-cache if the cache is erased for any reason.
[Hero CDMA Android Development] sh4nk:
One of those "wipes" in recovery also wipes some stuff on the sd card, but without erasing all the data on it, or erasing my partitions, making me have to re-partition it. Since it's showing my apps saving to my sd card, do you recommend me just biting the bullet and doing those 3 wipes, then starting from scratch by re-flashing the rom, and darktremor, after doing the 3 wipes? Since I'll have all my data on my sd card still (pics, music, videos, ect...), I just wont do the nandroid restore this time, so that I'll have my internal storage stay high. That kinda seems like what I'm going to have to do, in order to make it work like it did before the nandroid restore, unless you guys have some further insight on getting it to work? :) If that's what I have to do, that's what I have to do, lol.

I appreciate the help guys! :D
[Hero CDMA Android Development] sh4nk:
My SD Card is a Kingston, 16gb. My Wife got them from the Sprint store, so I'm assuming they are either a class 4 or class 6? I don't mind keeping the dalvik cache on the internal storage, if it keeps my phone running fast. I just want my internal storage back up so that I can put more apps on my sd card.
[Hero CDMA Android Development] tkirton:
Could be Class 2.

Keep something in mind, as you add more programs, the dalvik-cache gets bigger (as well as other caches).

You may have no choice but to move the dalvik-cache to the SD card if you are wanting to put a lot more programs on the card.

As long as you don't erase the dalvik-cache, you can try this: a2sd cache

That will move the dalvik-cache to the SD card. If that puts a lag on your phone or your phone becomes unstable, you can type a2sd nocache to reverse the action.
[Hero CDMA Android Development] sh4nk:
If I just do those 3 wipes, I'll have to re-flash the ROM, and re-flash Darktremor, correct? Because I'm thinking about just doing the wipes so that my phone will quit being buggy.
[Hero CDMA Android Development] tkirton:
Yes...that will insure you start with a fresh copy of the rom and Darktremor A2SD.
[Hero CDMA Android Development] tkirton:
New Update

Darktremor A2SD 2.7 Update 2 is now released (no, it's not 2.7.5...I'm still working on that).

This will finally set the /system partition back to read-only state when the program is completed.

It also keeps Zipalign from starting at boot until you tell it to.

See the first page for a list of fixes.

EDIT: okay...this is what happens when I rush stuff. Decided to make direct edits to my zip file rather than run the create-a2sd script. Result was some half-ass editing on my part. I uploaded a newer release 2 that has the fix for a2sd migrated to the other programs.
[Hero CDMA Android Development] sh4nk:
Re:

Thanks for the great info! I think thats what Im going to do. :-)

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

Sent via the XDA Tapatalk App
[Hero CDMA Android Development] tkirton:
Not a problem. If you have any other questions, feel free to ask them. I will try to answer them as best as I can.