yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] xxxk15:
well it gave me the error Insufficient Storage Avabilable on Damage Control 2.09.1 so i downgraded to 2.08.1 and i downloaded about 60 apps then all the sudden it gave me the Insufficient Storage Avabilable error again. I thought it was fixed. It gave me the error after updating an app and installing another app so i uninstalled them both and cleared the data on the market but that didnt work. I have 64MB left on internal Storage. I dont know what to do to fix this, anything will be apprciated

Would the preview fix 2 fix this??
[Hero CDMA Android Development] tkirton:
I'm assuming you are running 2.7 update 3r1 or 2.7.5 (any version).

No, because I ran into that issue earlier today.

Where's your dalvik-cache set to? Mine was set to the /cache partition, which I think caused my issue (and the market cache).

Here's what I did on my phone earlier today to resolve it:

1. Moved the dalvik-cache to the SD card: a2sd cachesd

2. Clear the Market cache: /system/bin/busybox rm -f /data/data/com.android.vending/cache/*

3. Reboot the phone.

Apparently, rebooting the phone is critical. I performed the first two and was greeted by a corrupted package error. Only when I rebooted did everything straighten out.

Also, clearing the data from the Market doesn't clear the cache...there's some form of limit to how much can be cached, apparently. Not sure why, though (unless it is to make sure you don't run out of space on the internal storage).
[Hero CDMA Android Development] xxxk15:
ok when i type in rm -f /data/data/com.android.vending/cache/* right after adb shell it says "rm failed for -f, Read-only file system". So than i typed in cd /data/data and typed in rm -f /data/data/com.android.vending/cache/* and it told me "rm failed for -f, No such file or directory

So where do i type this or am i doing something wrong??
[Hero CDMA Android Development] tkirton:
Type these in place of the rm commands:

/system/xbin/busybox rm -f /data/data/com.android.vending/cache/*

Sorry, should've added the busybox command in the front.
[Hero CDMA Android Development] xxxk15:
alright i think it worked i typed /system/xbin/busybox rm -f /data/data/com.android.vending/cache/* and it repeated it underneath. Is that how it is supose to work??
[Hero CDMA Android Development] tkirton:
It will just return to the command prompt if it works without any confirmation.
[Hero CDMA Android Development] xxxk15:
when i go into settings>apps>manage apps>Market You can clear the cache and when i tried it and turned my phone off it rebooted without my market or apps(that was with your a2sd) but when i use damage control's a2sd it reboots fine and idk if it worked. when i type /system/bin/busybox rm -f /data/data/com.android.vending/cache/* in it just repeates its self and brings the # back up on the command prompt(that is with your a2sd)

Should i try the command prompt again??

also when i typed /system/bin/busybox rm -f /data/data/com.android.vending/cache/* it repeated it underneath and then went back to the command prompt as #
[Hero CDMA Android Development] tkirton:
Can you do it again and run a logcat when the phone boots? I would like to see what is going on with the program.

It shouldn't repeat like that. I have seen certain busybox commands repeat...try the following instead:

/system/xbin/busybox rm -f /data/data/com.android.vending/cache/*

or

/system/bin/busybox.a2sd rm -f /data/data/com.android.vending/cache/*

(noticed the /system/bin/busybox isn't normally where busybox is located...it's located in /system/xbin/busybox)
[Hero CDMA Android Development] xxxk15:
how do i run a logcat?...sorry i dont use command prompt alot
[Hero CDMA Android Development] tkirton:
If you have the Android SDK, you can run ddms and start logcat from there. DDMS (Dalvik Debug Message Service) is a GUI that tracks the incoming messages..thus allowing you to debug the system.

The other way (also requiring the Android SDK) is:

adb logcat > logcat.dt27.log

If you run that command as soon as you see the HTC screen, let it go for about a minute...then press CTRL-C to end. A file called logcat.dt27.log should have been created. If it did and it has data, send that file to me at rtkirton@gmail.com
[Hero CDMA Android Development] xxxk15:
so you want me to use command prompt to type /system/bin/busybox.a2sd rm -f /data/data/com.android.vending/cache/*

then run a log cat and reboot the phone or do you want me to do it the way by Settings>apps>Manage apps>Market>clear cache and then reboot because that is the way i have the problem
[Hero CDMA Android Development] xxxk15:
i think its fixed. I was messing around and took off your a2sd and then went into settings>Apps>Manage apps>Market>Clear cache and turned it off flashed your a2sd and now its working pretty well thanks for all your help
[Hero CDMA Android Development] jdog94:
how do i move dalvik-cache back to internal mem
[Hero CDMA Android Development] jdog94:
well i done all that and was ok till i moved dalvik-cache to sd then tried to add friend stream widget and went into force close loop so i wiped all and just flashed EE3.o back to my phone

anybody know what caused this?
[Hero CDMA Android Development] jdog94:
well i am just not having any luck with this i guess apps2sd will have to wait a while for me unless someone has some tips

this time i wiped

flashed EE3.0

flashed a2sd

flashed EE kernal

rebooted and it just stayed booting for over 30 min till i just pulled the battery
[Hero CDMA Android Development] xstrider:
Just to make sure, your using this file to flash the EE kernal correct?

ee3kernel-signed.zip

I got it from tkirton in his new preview thread. I am too new to post links tho.
[Hero CDMA Android Development] tkirton:
Clear the cache using your method (settings -> apps...), then reboot. Run the logcat while you are rebooting. I'm trying to see what's going on with Apps2SD and why you are losing Market.
[Hero CDMA Android Development] tkirton:
That's still bothers me...why would Darktremor Apps2SD have anything to do with Market, except if it is on /data/app.

I have a command a2sd fixmarket to try to fix this issue...I thought the issue was zipalign, but maybe that's not the issue at all.
[Hero CDMA Android Development] tkirton:
a2sd nocache
[Hero CDMA Android Development] someonenewhere:
problem fixed....pushed marketupdater.apk and vending.apk back to /system/app and it fixed the problem...
[Hero CDMA Android Development] tkirton:
Cool. Glad to hear it.
[Hero CDMA Android Development] sekarpdkt:
Four questions

1. a2sd nocache ==> Do I need to run it every time or only once?

2. Can I run from terminal, while phone is running or recommended to run it through adb in recovery mode?

3. If I am using a2sd, is it recommended to unmount and perform data transfer between phone and PC through USB, while phone is running? I assume it is safer, because you are using different mount point for cache and ext3.

Not related to you application. If answer to 3 is yes, in case of ANDROID 2.2, which does not partition like yours, user will loose the capability to perform file transfer between PC and phone, while phone is running. Am i right?
[Hero CDMA Android Development] tkirton:
1. Run a2sd nocache once.

2. You can run from terminal. You will need to type su first.

3. The SD card mount that Android has is different from the ext mount. When you mount your SD card via the Android interface, you're mounting the FAT32 part of the SD card. You can mount and unmount that partition freely. The EXT partition cannot be unmounted unless you move all the applications and dalvik-cache off the SD card. Then you'll have to manually unmount (/system/xbin/busybox umount /system/sd). This really should only be used if you are removing the SD card from the phone (normally you would be better to turn the phone off if you are going to do that).

If you want to push applications directly to the ext, use ADB push (and if you want to pull applications directly from the ext partition, use ADB pull).

Froyo is another beast altogether...but if I read the specs correctly, Froyo stores apps on the SD card using a secured folder on the FAT32 partition. That method may have issues when you mount your SD card to your computer, I don't honestly know (haven't played with Froyo yet). However, Froyo can be forced to store apps on the ext partition...after all, it's still have a Linux kernel.
[Hero CDMA Android Development] sekarpdkt:
Thanks. Pretty clear explanation.
[Hero CDMA Android Development] jdog94:
i had evil eris on my phone

the added apps2sd

and the EE30 kernal

but i screwed up moving dalvik-cache to sd

so i wiped card

wiped ext

wiped cache

did doing that move the dalvik-cache back to internal ??????
[Hero CDMA Android Development] tkirton:
Nope...but if you type a2sd nocache that will reset the dalvik back to internal storage.
[Hero CDMA Android Development] BigBeefy:
I have run into a roadblock. I dont know where to look. I have Aloysius 2.0.9 as my rom. I have flashed this Darktremor Apps2SD v 2.7, update 3r1 to my phone. Partitioned card, 0mb swap, 512mb partition.

Now this is where I am lost. I ran an a2sd check via adb and I get this sequence of messages.

# a2sd check

a2sd check

[ ] Launching Darktremor A2SD

[1] Illegal instruction [ ${#} == 0 ]

Starting Darktremor A2SD version 2.7 Update 3r1

[ ] Mounting /system as read-write

[ ] Starting A2SD in check mode

[ ] Running A2SD Check Program.

[ ] Searching for Mount Point...

[*] Mount point /system/sd located.

[ ] Checking for ext partition

[X] Ext partition found, but not mounted.

Your rom may not be setup to run A2SD.

Check with your rom developer if the boot image

is programmed to run A2SD.

[ ] Setting File System Ready property to 1.

[ ] Remounting /system to read-only.

# a2sd cachesd

a2sd cachesd

[ ] Launching Darktremor A2SD

[1] Illegal instruction [ ${#} == 0 ]

Starting Darktremor A2SD version 2.7 Update 3r1

[ ] Mounting /system as read-write

[ ] Starting A2SD in cachesd mode

[ ] Running A2SD Setup Program.

[ ] Searching for Mount Point...

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

[ ] Remounting /system to read-write

[ ] Checking for ext partition

[!] Ext partition found, but not mounted.

[ ] Mounting ext partitions

[*] Ext partition mounted.

[ ] Creating /system/sd/dalvik-cache

[ ] Copying /data/dalvik-cache to /system/sd/dalvik-cache

[ ] Removing /data/dalvik-cache

[ ] Creating /data/dalvik-cache link to /system/sd/dalvik-cache

[ ] Creating Dalvik Cache on SD flag file.

[ ] Remounting /system as read-only.

[ ] Setting File System Ready property to 1.

[ ] Remounting /system to read-only.

I have only 55.44mb of internal space available. All my apps are still on my phone. How do I get them to the card? Where have I gone wrong?

Please help
[Hero CDMA Android Development] tkirton:
Illegal instruction? There's something new...that's apparently because the sh program doesn't recognize $# as a placeholder for the number of parameters you are passing from command line. No big deal..there's redundancy code that will fix that issue in the bash script.

I suspect the a2sd isn't running at the start. Can you produce a logcat of the boot process (need the start of the boot). That will tell me what's going on with this program and rom.

You can send me the logcat to my e-mail address: rtkirton@gmail.com

EDIT: I don't have Aloysius 2.0.9, but I do have a copy of 2.1. I ran it with Darktremor 2.7 Update 3r1 and it is working. I'll have to look at something new when I get the logcat.
[Hero CDMA Android Development] BigBeefy:
Now I am on the white reboot screen with the three little droid skaters. Been here for 30 minutes now.
[Hero CDMA Android Development] tkirton:
That's the bootloader (HBOOT) screen. It won't do anything until you tell it something.

Pull the battery and reboot again.
[Hero CDMA Android Development] djmcnz:
Pure Gold

In one exchange, two completely different examples of perfect patience.

Made my day. I think that's going in my signature... :D
[Hero CDMA Android Development] BigBeefy:
pulled battery. re ran check. nothing there. re flashed darktremor...rebooting now. rebooting fine, but thats all. nothing new happening.
[Hero CDMA Android Development] tkirton:
You said you are running Aloysius 2.0.9. I didn't have 2.0.9 to test, but I did have 2.1 and everything ran okay. So, here's where we are at:

1. Aloysius 2.0.9 may have a bug that prevents Apps2SD from working

2. Something is wrong with the SD card

3. Something has changed from the original environment

I don't think #1 is the issue...Aloysius is based from DamageControl and I do know that DamageControl relies heavily on Apps2SD (DamageControl's version is similar to mine...it does more than moves applications to the SD card).

I'm not convinced #2 is the issue...the lines of code that is having the issue is stating that the ext partition exists but not mounted. When you do a2sd cachesd, you force the ext partition to mount. This is great until you reboot (then a bootloop occurs because the ext isn't mounting on boot). I'm convinced that the Apps2SD isn't running at boot...

I think it is more #3...something has changed. Which now leads me into my question. Since you installed Aloysius, have you changed the boot image (perhaps to an overclock kernel)? If so, it could be that the boot image that is being used doesn't have the necessary components in the init.rc to launch Apps2SD.

If you did, I should still be able to help you...all I would need is the name of the kernel you used and I can put the necessary components to get Apps2SD started.

If you didn't...then I would definitely need that logcat.
[Hero CDMA Android Development] BigBeefy:
Ok, I did add an overclock kernal, it is this one....kernel-overclock-update-v3.zip

I dont have the link. Maybe it would be easier if I just reflashed Aloysius. I would lose all my settings. I would hate to have to start all over.

How do I pull a logcat?
[Hero CDMA Android Development] tkirton:
You can pull a logcat using adb: adb logcat

Also, you shouldn't have to wipe anything if you are reflashing Aloysius 2.0.9. The only thing that will change will be the boot image.
[Hero CDMA Android Development] cephraim:
Dalvik Cache on SD - Risky?

Sorry if this is already addressed in this thread...

I was reading on another board that moving the cache to the SD can prematurely kill your SD card, given how often it will now be accessed.

Is this a real concern?

FWIW - It's running well right now for me, but I'd rather not chance it for the few megabytes...

Thanks!

Eph
[Hero CDMA Android Development] tkirton:
That depends on your card. Most cards it isn't a concern...but some of the cheap brands are.

I'm using a RiData Class 6 16GB with the cache on the SD partition. It seems to hold up pretty well.

I don't think it is as much of a concern because the SD card has wear-leveling built in...meaning it doesn't use the same segment of memory over and over again. That extends the life of the card dramatically.

Also, dalvik-cache doesn't rebuild everytime you boot up, nor does it rebuild when you are running programs. The only time dalvikvm will rebuild something is under the following conditions:

1. When dalvik-cache is empty.

2. When a new program is installed or upgraded

3. When a program is deleted.

It is accessed constantly to read...but reading isn't what wears a card down...it is writing to it.
[Hero CDMA Android Development] LC_Nab:
Hey sorry if this question seems a bit noobish xD, but ok when it gives you the choices:

run dalvik from sd and from cache, does it mean you have to move it first to sd then do the cache ? or both are the same and simply the first one just dumps it in the sd and the second one dumps it on a partition specially made for it like example" ext3 or ext4 ?

Thank you
[Hero CDMA Android Development] cephraim:
Thanks. I've got a PQI Class 6 8GB, so I guess I'm probably OK, too.

Does the apps2sd nocache command move it back permanently? Is a reboot required to make that happen?
[Hero CDMA Android Development] tkirton:
a2sd cachesd - moves the dalvik-cache to the SD card (it will do it automatically)

a2sd cachepart - moves the dalvik-cache to the cache partition (it will do it automatically)

The second one actually puts it on the /cache partition (which is the directory /cache on your root folder). It is a completely separate partition used for market and recovery.
[Hero CDMA Android Development] tkirton:
a2sd nocache will move the dalvik-cache to the internal storage...permanently. The default for Apps2SD is not to move the dalvik-cache.

A reboot is recommended...I know the upcoming RC1 will reboot the phone. I don't think the other versions will do it automatically.
[Hero CDMA Android Development] Jrocker23:
Hey Guys/Gals,

Can someone help me out. I am having a hard time getting apps2sd to work on evil eris. Here is what I am doing.

Cleared and wiped all info-flashed the evil eris rom-partitioned sd card -copied apps2sd 2.7 r1 to card with the usb toggle option-flashed the apps2sd-reboot.

I get 83mb of memory and apps install to phone memory. Am I missing something?

Thanks in advance.
[Hero CDMA Android Development] LC_Nab:
Thank you for your answers !!! and the help : D .
[Hero CDMA Android Development] tkirton:
Yes...a boot image with the apps2sd launch commands: http://www.darktremor.info/files/eris/ee3kernel-signed.zip.
[Hero CDMA Android Development] distortedloop:
This is fantastic. Works like a charm on my Nexus One with Froyo. Thanks so much for the effort!
[Hero CDMA Android Development] tkirton:
http://www.darktremor.info/files/eris/ee3kernel-signed.zip

That's what you are missing...a kernel with the code in it.
[Hero CDMA Android Development] tkirton:
I don't know if I ever answered your question (seems like questions are blurring together). If your apps are on /system/app, then Darktremor Apps2sd won't copy them to your SD card. It is designed to copy /data/app and /data/app-private, which are user programs.

The reasoning for this is that /system/app is where the core files for Android are located. If you move them to the sd card and your card fails to mount, you won't be able to continue booting as there's no core programs. The idea to leave it on internal storage allows you to boot the phone and you may lose the programs you downloaded from the Market.
[Hero CDMA Android Development] sekarpdkt:
Wow. Thanks for sharing logical reason also.
[Hero CDMA Android Development] kinkade:
cyanogenmod 6 and htc desire

Hi there,

great work on this, i'm having a it of trouble though.

i have flashed the zip and when i check it in the terminal it says that it cant mkdir system/sd/app as the filesystem is read only.

what should i do?
[Hero CDMA Android Development] tkirton:
Can you send me a screenshot, a log (/data/dta2sd.log when you boot the phone) or a logcat so I can see what you are seeing?

E-mail: rtkirton@gmail.com
[Hero CDMA Android Development] kinkade:
Hi thats brilliant, i've emailed you the logcat,

let me know if there is any other info i can get you
[Hero CDMA Android Development] ferrarinews:
Hi.

I get a ROM that already has its software installed (A2SD). The question is, I create the partition in the recovery and then when I do :

su

a2sd cachesd

to move, "Dalvik cache" for the SD, the mobile phone when starts, it takes infinite time.

How to solve this?

Thank you very much.
[Hero CDMA Android Development] tkirton:
Two things I can think of:

1. The rebuilding of Dalvik Cache takes a while on some phones...it depends on how many apps you have. The more apps you have, the longer the time it takes. Look at a minimum of three minutes to rebuild.

2. Something is wrong with your SD card or the rom isn't launching Apps2SD. Try a2sd check if the rom has Darktremor Apps2SD installed (run an adb shell session since your phone never comes out of boot) to see if there is some alignment problem.

3. If the rom has Darktremor Apps2SD installed, try updating to 2.7.5.1
[Hero CDMA Android Development] chugger93:
I just installed newest CM6 nightly 929, then flashed your latest a2sd. I think I'm good, but decided to run "a2sd" command and got this below. Not sure if this is a good thing or not?

C:\androidsdk\tools>adb shell
# a2sd
a2sd
[ ] Launching Darktremor A2SD
Starting Darktremor A2SD version 2.7 Update 3r1
[ ] Mounting /system as read-write
[*] Starting A2SD (Lite Version) in mode.
[ ] Searching for Mount Point...
[ ] Mount point found..no further action required.
[ ] 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?
[ ] Mounting ext partitions...
mount: mounting /dev/block/mmcblk0p2 on /system/sd failed: Device or resource bu
sy
[X] Mounting ext partition failed.
[X] Can't continue script...aborting.
[ ] Setting File System Ready property to 1.
[ ] Remounting /system to read-only.
#
[Hero CDMA Android Development] tkirton:
Umm...that's not the latest Darktremor. The latest is Darktremor Apps2SD 2.7.5.1.

Download: http://www.darktremor.info/files/a2sd/dtapps2sd-2.7.5.1-adv-signed.zip

Thread: http://xdaforums.com/showthread.php?t=715116
[Hero CDMA Android Development] wmor:
Darktremor Apps2SD

Hi,

i am new to rooting and apps2sd,

I just rooted my G1 with RA recovery 1.7.0 and the latest version of CM 6 which i thought had apps2sd, but i have told the settings to install all apps to the sd however the internal memory is going down.

I saw a video on youtube from MobileUnlimited called "How To - Apps2SD for the G1 (TheUnlockr)" which puts apps2sd on the card and that makes the internal memory of the phone to show 1.5GB.

Does Darktremor Apps2SD do that too? Does it work with CM6?

Also i read and hear a lot about ext2 and 3 and 4.. what do those mean? I didn't partition anything, i think the RA Recovery did it for me?

Oh also i have a 8GB class 10 MicroSD Card.

Thanks for any help you can give me.

Thanks
[Hero CDMA Android Development] AntonioCorrenti:
Hi, I hope someone will help me,

because in the rom thread I get just ignored.

I have hcdr rom for htc tattoo, where I have enabled 2 weeks ago a2sd, by formatting in ext3 and launching from adb a2sd install.

Everything worked out of the box, the apps are now really on the sd. In this 2 weeks I installed several apps and all this new apps are installed in the internal memory.

If i launch a2sd install, it does nothing (it gives me some output), a2sd reinstall is not recognized, so I don't know how to move those apps to the sd memory.

Any help?
[Hero CDMA Android Development] tkirton:
What they must be doing is mounting then entire /data directory to the SD card. That's the only way you can achieve that.

And, no, Darktremor doesn't do that....at least not that way.

Darktremor uses the already proven Cyanogen method, which is symlink /data/app and /data/app-private to the SD card.

I officially run Darktremor with CM6 on my Hero. It runs fine with that, so it should work with you.

EXT2, EXT3 and EXT4 are Linux partition types. They are mainly used for the Linux operating system. Coincidentally, Android uses Linux as a base, so it can use some or all these partitions (depends on how the kernel was compiled).

EXT2 is a basic Linux filesystem.

EXT3 is EXT2 with journaling. This allows the OS to write lost data when the SD card is unexpectedly unmounted. This is the recommended partition to use for Android. EXT3 is backwards compatible with EXT2 (EXT3 will mount as an EXT2 if the kernel only supports EXT2).

EXT4 is a more recent version of the EXT partitions that uses extents (which is a different way of writing data to the media). EXT4 is somewhat backwards compatible with EXT3 unless extents are used. Once extents are used, it is no longer compatible. Many roms in Android do not support EXT4.