[Q] /cache almost full although using a2sd+ - Desire Q&A, Help & Troubleshooting

Hi,
I'm using MCR Fr11 (Froyo + Sense) with a2sd+.
Some applications could not be installed in my phone (the application was correctly downloaded then "installation failed" message occured). So I cleaned up the dalvik-cache (rm -r /cache/dalvik-cache/* while in recovery mode).
After that, I managed to install one application (google maps update) but then the problem reappeared with other applications.
I noticed that /cache partition is almost full (3.1MiB left).
I have three questions :
1) I can guess that /system/sd/dalvik-cache is the cache on the SD card used by a2sd+, so was is the purpose of /cache/dalvik-cache ? And why this internal memory cache is located on a very small partition (40MiB) ?
2) Is it safe to delete /cache/dalvik-cache and to create a link in the SD card partition ?
Something like :
Code:
rm -rf /cache/dalvik-cache
mkdir /system/sd/dalvik-cache2
ln -s /system/sd/dalvik-cache2 /cache/dalvik-cache
3) Is there another way to solve the problem ?
Thank you for your help.

I have the same problem, did you found a solution?

You do not have to care about not enough for the cache partition. Just clean cache of market:
Settings>applications>manage applications>all>choose market>clean cache. If this does not help, clean data of market (also under "manage applications"). You can also try to wipe cache in recovery.

I think I have the same problem...
The dalvik-cache is located in the cache partition, and the cache partition is full. Thus no further app can be installed.
Shouldn't the dalvik-cache by default be in the data partition? Does Oxygen move the dalvik-cache to the cache partition? Because I am pretty sure I didn't run any scripts that could have done it.
Can someone point me to instructions how to get it back to the data partition, please?

Related

[How To ]Moving Dalvik-cache to sd-ext partition

my sdcard is kingston class 6. .i want Moving Dalvik-cache to sdcard .because my system .i'm make ota android 2.1 this rom language to china'language .system/app was deodex. .so the data /dalvik-cache is very big .
help me .....how to Moving Dalvik-cache to sdcard........
12/28 I kown how to move dalvik-cache to ext
1.adb shell
2.su
3.busybox df -h
4.cp -a /data/dalvik-cache /system/sd/
5.rm -r /data/dalvik-cache
6.ln -s /system/sd/dalvik-cache /data/dalvik-cache
7.reboot
OK that 's all
How to move dalivik-cache to sdcard
I believe its...
a2sd cachesd to move dalvik to ext
to check if working
chka2sd
another option i found on the forms is to move the dalvik cache to the cache folder instead of the sdcard with a script...
http://forum.xda-developers.com/showthread.php?t=748053
hope this helps

[Q] problem with Ext on sd

Hi all!
I have space problem. I've installed AceSmod007 whit 512 MB Ext3 partition.
In data information i read:
9.71 MB available in data
7.20 MB available on system
412 available on Ext partition
Infact phone warns little free space. What should I do?
Thanks!
try moving apps to sdcard (settings>applications)
I tried. But it fills the fat partition. So now I have less in fat and much in ext.
The problem is that i can't install other apps because it fells that there isn't enaugh free space
how big is your sd card ?.
Im sure they recommend 1GB ext with this rom
After you flashed ROM all apps should be installed on ext, automatically. Try full wipe, wipe cache and flash ROM again
Finally I put cm7-r2 hboot and install the cm7 version of the rom with 1 GB Ext4.
It runs well
ferencz1 said:
try moving apps to sdcard (settings>applications)
Click to expand...
Click to collapse
Ignore this.... If your using apps2sd its auto
Look up data2sd if you ever need even more room
Check if a2sd/a2sd+ is working:
Get connectbot from market, open it and enter:
Code:
su
ls -l /data
When you can see this:
Code:
app -> /sd-ext/app
app-private -> /sd-ext/app-private
a2sd is working. When you can also see this:
Code:
dalvik-cache -> /sd-ext/dalvik-cache
a2sd+ is working.
When you can see only the first output, it's unsurprisingly, your /data partition gets filled. This is done by dalvik cache.

[Q] [CM7] Can't install/update from market after flashing Alpharev partition table

Hi,
I am running CM7.1.0 on rooted and s-off HTC desire with DarkTremor app2sd scripts.
I just flashed the Alpharev CM7r2 partition table (moving also Davilk to sd-ext through App2SDGUI), but, even if I gained a lot of internal memory space, I am no more able to update/install new apps from Market due to an "insufficient storage available" error.
Can someone help me ? I tried also to wipe all and re-install from scratch CM7, but still getting the same error. It seems to me I cannot download/update apps with download size > of my /cache partition size, which is 5mb.
Many thanks to anyone helping me.
Ok, I found the problem.
The problem is that CM7 isn't automatically moving the /cache partition to the /data partition, which it should do since /cache partition is small (5 mb).
Thus, since market uses /cache/download to store downloaded .apk, it cannot store there apks bigger than 5mb.
To fix this I created a symbolic link with a folder inside my SDcard: this folder will act as the new market cache folder.
Here is the list of commands for users encountering my problem:
Code:
adb shell
cd /cache/
rm -R download
mkdir /mnt/sdcard/marketcache
ln -s /mnt/sdcard/marketcache download
chown -h system.cache download
Can someone explain me why CM7 didn't automatically performed this step for me ?
Thanks.
Just wanted to say thank you, because this also worked for me after I somehow screwed up the FAT32 partition on my SD card.
The only way to reconnect with the market was to make a symlink to the cache/download folder as you describe. (In fact, there wasn't a "download" folder at all under my cache partition -- which may have been part of the problem). But it's fixed now. A million thanks.
CM7r2 Hboot, GSM desire, running Mildwild 2.9.5 / Oxygen
I am happy it helped, that is why I posted the solution I had found.
Cheers
ghepardo said:
Hi,
I am running CM7.1.0 on rooted and s-off HTC desire with DarkTremor app2sd scripts.
I just flashed the Alpharev CM7r2 partition table (moving also Davilk to sd-ext through App2SDGUI), but, even if I gained a lot of internal memory space, I am no more able to update/install new apps from Market due to an "insufficient storage available" error.
Can someone help me ? I tried also to wipe all and re-install from scratch CM7, but still getting the same error. It seems to me I cannot download/update apps with download size > of my /cache partition size, which is 5mb.
Many thanks to anyone helping me.
Click to expand...
Click to collapse
There is another code(need sdcard extfs, runing in Android Terminal or under ADB shell in cmd):
Code:
cp -a /cache/download /sd-ext
rm -r /cache/download
ln -s /sd-ext/download /cache/download
reboot

Change Download Location for Market/Play?

Apologies ahead of time if this has been answered before. I spent about 30 minutes Googling and trying solutions without any luck.
My situation is that I'm on MikG 3.11 and am using the built in A2SD to store all the apps on a 2GB SD-Ext partition. I have enough apps that the ~160MB internal /cache partition is pretty much filled with Dalvik Cache files in the /cache/dc subdirectory (only 3MB left on the partition).
Unfortunately, Google Play (formerly Market) seems to download app installs and updates into /cache with file names like "Download.apk" and "Download-1.apk" and then installs the apps from there. Since there is so little space, any app above 1.5MB or so fails to download and install (it seems to need the space for the download and then space to extract the download, so you can only get apps that are about 1/2 the size of the remaining partition space).
Is there any way to change where Google Play/Market downloads apps to install? I've got plenty of space on /data or the SD-Ext partition.
I found old directions to fix this issue by entering the following at terminal to create a sym link for Market to download on the SD card:
Code:
mkdir /mnt/sdcard/market-download-cache
su
cd /cache
mv download download.bak
ln -s /mnt/sdcard/market-download-cache download
ls -ahl
Unfortunately, Play/Market no longer uses a "download" sub-directory on /cache, so this won't work.
To fix the problem, I tried using "a2sd cachesd" to free up space on /cache by moving the Dalvik Cache to the SD-Ext partition, but that made for a really laggy experience (presumably because my SD card has bad random r/w access). I could also presumably just unmount the partition from /cache and make /cache a sym linke to a folder on the SD Ext card, but it doesn't seem that would perform much better.
My only thought at this point for a long term solution is to copy the current /cache contents to /system/sd/cache, mount the current partition on /cache at /mnt/cache (unmounting it from /cache first), create a sym link from /cache to /system/sd/cache, then set up a sym link from /mnt/cache/dc to /system/sd/cache/dc. All of this would have the effect of keeping the Dalvik Cache on the same internal partition where it currently resides while letting Play/Market have plenty of space in the new /cache which would actually be a directory on the SD-Ext partition. But, this seems kind of hacky and could negatively impact other things that might need /cache.
My short term solution is that every time I need to install or update apps, I just go into /cache/dc with Root Explorer and delete a bunch of the cached data to free up enough space for the app(s) and then do the update/install through Play/Market. The OS then seems to recreate the cached information the next time I run the app whose cached data I deleted (for example, I deleted the IMDB cached data and the next time I ran IMDB it took a long time to come up but then worked fine-- presumably the delay was recreating the cached data/app). The OS also seems to recreate the dalvik cached files on boot (not sure if that is a general feature or just in the MikG ROM I'm using).
In any case, I think all of the above is accurate so even if nobody has better solutions, maybe this will help others understand why they can't install/update apps even though it seems they have plenty of space.
If anybody is out there that has a good long term solution to this (like a place you can change the directory where Play/Market downloads), please let me know.
It's probably not cool to respond to your own post, but I had another idea for fixing this problem:
It looks like /data has 140MB of space left on it-- could I move the Dalvik Cache to that partition so there would be plenty of space on /cache to let Market/Play work?
As far as I can tell, /data/dalvik-cache is already a link (maybe a hard link?) to /cache/dc, so presumably I could just switch that to the Dalvik Cache was actually on /data?
Any thoughts on whether this would work and if it is a good idea or bad idea?

[Q] Move cache (not dalvik cache) to sd-ext?

I tried stock a2sd with Y, Y, Y and after installing a load of apps it says "Insufficient storage available" for each new app (apart from a few small apps dotted around the middle of the sea of Insufficient storage available errors). Titanium Backup says that every partition has loads of free space.
In recovery it says the "Cache" partition is nearly full. How can I move this to the sd-ext partition (not the dalvik cache)?
Also, does stock a2sd with Y, Y, Y, do the same thing as data2sd and do I need to do a2sd install each time I install a new app?
Not 100% sure but if ur s-off rooted etc u can use terminal emulator from market and type
su
cachesd
Maybe someone can confirm this as i hav'nt used it myself but seen it in another post
Sent from my HTC Desire
Thanks but I already tried that - it seems to only move the dalvik cache.
maybe this will help
http://www.google.ie/url?sa=t&rct=j..._umVDA&usg=AFQjCNGWhD-cvvnyhZ8edSu7lhvb3UVryA
or try here
http://www.google.ie/url?sa=t&rct=j...t6CXDA&usg=AFQjCNH4BDsehxz01xYhghyEKjNzYbhSYA
Thanks. In the second link you posted I found this post, that explains you need to install Darktremor Apps2SD. Can this be used with stock A2SD, or do I need to start a fresh? It does look like you need to start a fresh because of overlapping commands and it has the same commands as stock A2SD anyway.
I have an sd-ext partition - will the script move it to there or the SD card and will I have to run it each time I install a new app?
I did try searching the forums and Google with different terms, but I couldn't find anything.
EDIT: It only mentions the Dalvik Cache, NOT the Cache in the Darktremor Apps2SD link below. I'll try it, but it looks like it's back to square one. Says here: "cachesd - Moves Dalvik cache files to the ext2/ext3/ext4 partition on your secure digital card. Creates Dalvik Cache to SD flag."
EDIT2: I found here that using Mount2SD there's an option to move the Cache when it's too small! But I can't find a download link.
EDIT3: Found it!
Cache - m2sd cache <enable/disable/auto>
By enabling this option, the script will link /sd-ext/cache to the /cache location. This is useful if your cache partition is to small to download big apps from market.
If you don't have an sd-ext partition, the cache will be linked to /data/cache instead.
Also by setting the auto option instead of enable, the script will only remount the cache if the nand cache is below 40mb.
Click to expand...
Click to collapse
Wrong post.

Categories

Resources