[Q] How to Move Dalvik-Cache Stock N1 - Android Q&A, Help & Troubleshooting

I have a stock N1 with Android 2.2.1 build FRG83D. The phone has an unlocked bootloader, and I have rooted the phone.
My issue is that I have no more app space. I am down to almost 20MB of app memory, and I want to move the dalvik-cache to the cache partition. I did reformat my SD card so that is has three partitions on it.
I tried to run the a2sd Dark Tremor script, but I don't think it will work because the boot.img file won't support mounting to the ext partition. In short, I ran into issues as the cache files would not move.
Does anybody know how I can move the dalvik-cache from app over the cache on a stock N1?
Thanks!

Related

[Q] Apps2SD Problems(!), Partitioned Still Using Internal.

I've rooted plenty of devices, flashed countless ROMS all the way back to Windows Mobile but this dern Aria is killing me.
This is a coworker's phone that I rooted and flashed CyanogenMod 7.
it's out of memory, of course, ClockworkMod version is 2.5.0.7. Rom Manager is the latest in the market.
First I tried to partition the card through Rom Manager which didn't work. It did format the card though.
Went into ClockworkMod and there no menu for partitioning. So... I put the SDCard in my Epic4G and partitioned it there.
The partition shows in Titanium Backup but no apps go there.
He's previously moved all apps to the SDCard, no partition, if that matters.
I've tried DarkTremor, didn't boot and had to restore, Tried S2E, caused EVERYTHING to FC. Tried installing new apps to test they still go to internal. Tried mounting the SDEXT in ClockworkMod, Same.
I'm out of ideas, Help!
Is the partition formatted as EXT3? AFAIK, S2E is not compatible with EXT4. Also, try to reformat with the linux tool gparted.
Sent from my Liberty using XDA App
u can try a program called link2sd its free in the market.
Thanks, I'll bring my linux notebook and try to muddle through it.
I'm not sure what my Epic, IIRC it does have an official clockwork recovery, formatted the card to.
Do a clean install on his phone. Backup all his apps with titanium. Boot into CWM, format /system, wipe data and factory reset, clear cache, clear dalvik, install Rom, install kernel (optional), flash DT script, reboot (it will bootloop twice, this is normal behavior and then it will boot into android). Restore with titanium and all the apps will be installed to the EXT partition.
This phone is hateful!
Wiped everything, installed the latest nightly, flash DT Beta 04.
Rebooted started installing apps and they all went to the EXT partition. Yay!
Titanium FC'd in one app so I installed GAPPS and BOOM! The internal is filled again!
WTF?!
Open up terminal and type
Su
a2sd reinstall
Reboot (don't know if this is necessary)
Sent from HTC Aria - GB Salsa Sense 2.1 + Drowning Kernel
I have s2e install on my aria and it runs flawlessly. I have all about 200 apps and my dalvik on my sd and still have 140mb available of internal space.
This maybe a long shot, but in cm settings, make sure "allow application moving" is un-checked and install location is set at automatic. s2e tricks the phone in thinking the ext is the internal space. I hope this is helpful. good luck.

[Q] Is there an app that allows full apps2sd?

I've been wondering if there's a way to do a full apps2sd without making a partition on the sd card. My ace is running a stock rom. Rooted and running 2.3.5. The internal memory really sucks and I'm thinking of getting a 8GB micro sd just to store it all.
Any hints or tips?
what do u mean by "full"?
if u just search a2sd on market, many of it will allow moving app to sdcard without even creating partition. but it just move apk tho. dalvik cache and data still occupy internal memory.
an0nym0us_ said:
what do u mean by "full"?
if u just search a2sd on market, many of it will allow moving app to sdcard without even creating partition. but it just move apk tho. dalvik cache and data still occupy internal memory.
Click to expand...
Click to collapse
I have an app called app 2 SD from the market and I don't think it does what it says. If all the apps were installed on the SD, wouldn't the internal memory be almost completely free? Or do I have a misunderstanding of apps2sd? Unless the apps2sd are different for custom roms or something?
u need to also install a2sd enabler to be able to move all apps that previously restricted by android system to only install in internal. but then most widget would be unusable if move to sdcard using that a2sd app from market. and also as i said earlier, it will only move apk. dalvik cache and data still occupy internal so it will eventually become cluttered and full again.
also i think users here if talking about a2sd, it means darktremore a2sd script. it allow moving full dalvik cache and data to sdcard without giving problem to widgets, but it needs second sdcard partition.
so to answer ur question, and if by "full" u mean full moving of dalvik cache and data to sdcard without second partition, no... theres no a2sd app that can move dalvik cache and data to sdcard without second partition. none that i can think of. darktremore a2sd script and similar variant script that can fully move dalvik cache and data to sdcard needs second partition.
the simplest way is make an ext partition using cwm recovery and use link2sd to link the apps to sd card. it also moves the dalvik cache and dex to sd. I am using link2sd and it does what it meant to

[Q] s2e won't move dalvik cache to sd-ext

I have an Optimus V running IHO with s2e installed.
I am trying to use s2e to copy my dalvik cache to my sd-ext partition, but it's not working. I check the box and it says "reboot required", so I reboot, re-open s2e, and it still says "reboot required". I don't think it actually copied it to sd-ext.
How can I get it to copy my dalvik cache (~107MB)?
I havent heard of iho. But s2e is only for cm7 based roms...
Sent from my LG Optimus One P500 using xda premium
Android is right, you can only use with cm7...try using ungaze or darktremor
Sent from my LG-P500 using xda premium
IHO is based of CM 7.1. s2e copied my apps and download cache to my sd-ext just fine, it's the dalvik cache it's having issues with.
I had the same problem yesterday, uninstall s2e than reinstall from market and all of those blocked selections will be available to check....giving your on a cm7 rom...if that doesn't work repartition the sdcard than reinstall the s2e.apk than select which options you want moved to sdext and it should work
Sent from my LG-P500 using xda premium
Try wiping dalvik-cache, maybe the new one will be created on the sd-ext.
Ianis G. Vasilev said:
Try wiping dalvik-cache, maybe the new one will be created on the sd-ext.
Click to expand...
Click to collapse
I tried that, didn't work
I think the partition is corrupted, try formatting again
Garuxa said:
I think the partition is corrupted, try formatting again
Click to expand...
Click to collapse
I currently have my apps and download cache on sd-ext. That worked (works) fine.
I just noticed that I have both /cache/dalvik-cache and /data/dalvik-cache. Could this be why I can't move it to sd-ext?
Jrhodes85 said:
I had the same problem yesterday, uninstall s2e than reinstall from market and all of those blocked selections will be available to check....giving your on a cm7 rom...if that doesn't work repartition the sdcard than reinstall the s2e.apk than select which options you want moved to sdext and it should work
Click to expand...
Click to collapse
I tried uninstalling and re-installing s2e, didn't work. The weird thing is that my apps and my download cache moved to sd-ext just fine.
im having the same problem. just loaded bobzhome CM7.2.0 on my optimus v. it will move anything but the dalvik cache. whats the problem?
IMPORTANT NOTE!!!!!
i moved applications only to the SD ext partition. after this i wasnt able to load many of my apps, the most important of which was s2e. so i wasnt able to undo the move. fortunately this happened early on after i flashed the new rom. so i just called it a bad job and reflashed the rom.
im giving up on the idea of extending my ext partition. i just reformatted my SD card for basic SD storage. i will just have to live within my means. not being able to move the Dalvik cache should have been enough to ward me off, but after having it mess my apps up too im not going to try again until im really desperate.
Personally I tried ungaze a d s2e and darktremor was my favorite. You get the .zip for recovery and the UI in market, search for darktremor in it. You will have the option to move dalvik cache to sd ext. My ext is formated in ext4 by the way, might be your problem. I write here mainly to tell you that in my own experience moving dalvik to sd-ext on top of my apps to sd-ext made my rom laggy and slow. Apps only worked fine. Darktremor's the best. Try it.
Sent from my LG-P500 using Much Love
Mount as Ext4
how r u partitioning the sd card? I use mini tool and have partitioned it fine. make sure you make a fat32 1st, 2nd ext2 & 3rd Linux swap (see attached image - Disc 2 as example). Thats the only way it works. Best of luck Also, once s2e is installed, open s2e > menu > settings > select option 'Mount as Ext4'. I will not recommend moving applications and private apps, just move dalvik cache and download cache.
Community: http://on.fb.me/Root4Andrd
I have been going round and round with this issue for a long time.... i used mini tool and other programs like darktremor and NONE worked,
I used mini tool like nth20 has stated only I created a fat32 partition,
I used the integrate SYS davik option in titanium backup!
I am useing a IHO rom that has link2sd and that worked for me...
good luck i have reflashed and tried so many roms and was finally able to get this to work.
__________________
Phone: LG Optimus V (VM670)
ROM: CyanogenMod 7.10.1-BobZhome-11132011
Kernel: 2.6.32.9-v3.3
Android Version 2.3.7
Overclock: 480~806MHz - Performance
Provider: Virgin Mobile USA
Mangala_Dharma said:
Personally I tried ungaze a d s2e and darktremor was my favorite. You get the .zip for recovery and the UI in market, search for darktremor in it. You will have the option to move dalvik cache to sd ext. My ext is formated in ext4 by the way, might be your problem. I write here mainly to tell you that in my own experience moving dalvik to sd-ext on top of my apps to sd-ext made my rom laggy and slow. Apps only worked fine. Darktremor's the best. Try it.
Sent from my LG-P500 using Much Love
Click to expand...
Click to collapse
I don't really want to move the dalvik-cache, to sd-ext, but when I try to install or update anything from the market, I get "package file invalid". I'm assuming that the error is that my cache is full.
nth20 said:
how r u partitioning the sd card? I use mini tool and have partitioned it fine. make sure you make a fat32 1st, 2nd ext2 & 3rd Linux swap (see attached image - Disc 2 as example). Thats the only way it works. Best of luck Also, once s2e is installed, open s2e > menu > settings > select option 'Mount as Ext4'. I will not recommend moving applications and private apps, just move dalvik cache and download cache.
Community: http://on.fb.me/Root4Andrd
Click to expand...
Click to collapse
Do you need a swap partition for dalvik cache to move correctly? I didn't add one, so that may be the issue. Unfortunately, I have too many apps, and I need them moved to sd-ext, because they don't fit in the internal memory.
slappy18201 said:
I have been going round and round with this issue for a long time.... i used mini tool and other programs like darktremor and NONE worked,
I used mini tool like nth20 has stated only I created a fat32 partition,
I used the integrate SYS davik option in titanium backup!
I am useing a IHO rom that has link2sd and that worked for me...
good luck i have reflashed and tried so many roms and was finally able to get this to work.
Click to expand...
Click to collapse
"integrate SYS davik option", eh? That looks interesting, let me try it. That seemed to help. s2e still didn't move the cache, but I can correctly install/update from the market now.
NTICompass said:
I don't really want to move the dalvik-cache, to sd-ext, but when I try to install or update anything from the market, I get "package file invalid". I'm assuming that the error is that my cache is full.
Yup. Either your dalvik cache or download cache or both cannot find enough space in internal memory.
Do you need a swap partition for dalvik cache to move correctly? I didn't add one, so that may be the issue. Unfortunately, I have too many apps, and I need them moved to sd-ext, because they don't fit in the internal memory.
You need the swap partition as apps use it the space while installations. Saves you from the 'package file invalid' error.
Hope this helps.
Community: Rooting for Android
Click to expand...
Click to collapse
I was able to use Titanium Backup's "Intergrate Sys Dalvik into ROM", and that fixed the problem (it moved ~20MB of stuff).
nth20 said:
You need the swap partition as apps use it the space while installations. Saves you from the 'package file invalid' error.
Click to expand...
Click to collapse
I can try to add one, and see if that helps, but I think if I can install apps now, then I don't need to actually move the dalvik cache.
NTICompass said:
I was able to use Titanium Backup's "Intergrate Sys Dalvik into ROM", and that fixed the problem (it moved ~20MB of stuff).
I can try to add one, and see if that helps, but I think if I can install apps now, then I don't need to actually move the dalvik cache.
Click to expand...
Click to collapse
Just 20MB. That's kinda low. Attached is a screenshot from my device. Check the size of the dalvik cache.
Community: Rooting for Android

[Q] SD format question

Hi, i have a 8gb SDcard and since i'm gonna pass form CM7.1 to CM7.2 i wanted to ask you a few questions:
1) I have a 500mb sd ext partition, will a /format SDcard from CWM5 cancel the partition?
2) Since i'm using s2e, would you reccomend me to manually uninstall apps and s2e before wiping /data and formatting the SD card?
Thanks
Bafacchio said:
Hi, i have a 8gb SDcard and since i'm gonna pass form CM7.1 to CM7.2 i wanted to ask you a few questions:
1) I have a 500mb sd ext partition, will a /format SDcard from CWM5 cancel the partition?
2) Since i'm using s2e, would you reccomend me to manually uninstall apps and s2e before wiping /data and formatting the SD card?
Thanks
Click to expand...
Click to collapse
No, your sd-ext parition will not be removed by formatting sdcard.
2. No it is not recommended, just backup your apps using Titanium backup and later you can restore them.
You need to partition only once unless you remove it manually.
/format sdcard will remove all data in fat32 partition
/format sd-ext will remove all data in ext partition
no need to do format sdcard for upgrading from 7.1 to 7.2. just do factory reset, delete cache, and dalvick cache.
no need to manually uninstall S2E.
Thanks guys!
I am not interested in restoring apps, i think i will make a clean install after flashing the rom.
dianpadi said:
/format sdcard will remove all data in fat32 partition
/format sd-ext will remove all data in ext partition
no need to do format sdcard for upgrading from 7.1 to 7.2. just do factory reset, delete cache, and dalvick cache.
no need to manually uninstall S2E.
Click to expand...
Click to collapse
So if i do factory reset and delete cache and dalvik this will remove also the apps that were moved to my sdcard with s2e?
I just want to clar my sd from the apps, so that i can make a clean install after changing rom...and i'd like to do this in the easiest way ^^
Bafacchio said:
So if i do factory reset and delete cache and dalvik this will remove also the apps that were moved to my sdcard with s2e?
I just want to clar my sd from the apps, so that i can make a clean install after changing rom...and i'd like to do this in the easiest way ^^
Click to expand...
Click to collapse
AFAIK, S2E is handling the sd-ext. when do factory reset, delete cache, and dalvik, and then flash new rom, the sd-ext also being formated.
but some application folder (e.g yahoo, titanium) still exist in the sdcard.
if you want a clean install, you can format sdcard, but you must reload the flashable zip rom to the sd card again. Then do factory reset, delete cache, delete dalvik, and flash the new rom.
dianpadi said:
AFAIK, S2E is handling the sd-ext. when do factory reset, delete cache, and dalvik, and then flash new rom, the sd-ext also being formated.
but some application folder (e.g yahoo, titanium) still exist in the sdcard.
if you want a clean install, you can format sdcard, but you must reload the flashable zip rom to the sd card again. Then do factory reset, delete cache, delete dalvik, and flash the new rom.
Click to expand...
Click to collapse
Thanks again! Well maybe i could format the SD after flashing the rom, couldn't i?
yes you can.
My experience, when I accidentaly format my SD card, I still can turn my Android on.
start up will recreate .android_secure, Android, and LOST.DIR again.
Guys...SD card is not associated with a rom -_- Remove your sd card and the phone works fine,right? android secure and lost.dir are directories that the android os makes on mounting of sd card..Try formatting your sd from the pc and and then insert it in the phone,now take it..you didnt reboot but you will still see android secure and lost.dir...Android makes them in between the mounting afaik.Flashing is not related with formatting sd card except choosing the zip file ofc
Why the heck is it that after I format my SD card... My efs file is gone????
Sent from my GT-S5830 using xda premium
ace_viknesh said:
Why the heck is it that after I format my SD card... My efs file is gone????
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
I browse with root explorer, and can not find /efs folder...

[Q] Moving dalvik cache to sd-ext doesn't work?

I've searched and read on other sections. but I can't find a solution to this.
I've also done the specific instructions, and still got problems with moving dalvik to sd-ext. Every time I try it even with the ext3 or trying to mount as ext4 I get the HTC screen stuck on boot and can't pass that.
I can move applications but not dalvik and I need the space, as my data folder was almost completly full after a month of use in the device.
Any suggestions?
What ROM and apps2ext method are you using?
cyanogen 7.1.0 and S2E latest version.
I'm using an ext3 partition. I've wiped phone, formatted sd card with fat32, ext3 and linux swap. and if I move only apps everything works fine. if I move apps + dalvik the phone stuck on the HTC white screen.
Also is there a recovery for Aria that supports ext4?
CaptainMaki said:
cyanogen 7.1.0 and S2E latest version.
I'm using an ext3 partition. I've wiped phone, formatted sd card with fat32, ext3 and linux swap. and if I move only apps everything works fine. if I move apps + dalvik the phone stuck on the HTC white screen.
Click to expand...
Click to collapse
I dunno what's causing that. I'd probably try doing a 100% clean install to see if it fixes it. (In particular, wipe data/factory reset and format system and boot partitions before installing CM7 and Gapps again.)
Also is there a recovery for Aria that supports ext4?
Click to expand...
Click to collapse
I don't know, but there's very little benefit to using ext4 over ext3 for this particular purpose anyway. Also mounting ext3 as ext4 is equivalent in performance to ext4, if you really care about that.
how do you format boot and system partitions? I've re installed rom and s2e again. I will try to move dalvik later today after I'll have time to backup. for now the apps moved and works fine and the option to move dalvik is available.
when I mount ext3 as ext4 the recovery shows no sd-ext available. I think it's also mark the sd-ext as ext4 again, even without any action on it, which makes the sd-ext unusable when the phone boots up. it also not allows to backup the partition.
CaptainMaki said:
how do you format boot and system partitions?
Click to expand...
Click to collapse
In CWM recovery, select "mounts and storage". The options to format the boot and system partitions will be there.
CaptainMaki said:
when I mount ext3 as ext4 the recovery shows no sd-ext available. I think it's also mark the sd-ext as ext4 again, even without any action on it, which makes the sd-ext unusable when the phone boots up. it also not allows to backup the partition.
Click to expand...
Click to collapse
Yeah, honestly, just use ext3. No one would actually notice a difference in performance between ext3 and ext4 for this particular purpose, and it's a lot more convenient to be able to make backups of the ext partition without any issues.
thx for all the help. I really don't know what is happening.
I've wiped boot + system, did factory wipe, wiped cache, installed CM 7.1.0 + Gapps, didn't even insreted sim card, installed only S2E and when i select Apps + Dalvik the phone is stuck on the HTC white screen.
Really frustrated with this.
CaptainMaki said:
thx for all the help. I really don't know what is happening.
I've wiped boot + system, did factory wipe, wiped cache, installed CM 7.1.0 + Gapps, didn't even insreted sim card, installed only S2E and when i select Apps + Dalvik the phone is stuck on the HTC white screen.
Really frustrated with this.
Click to expand...
Click to collapse
Can you confirm that the ext partition is formatted as a primary partition (not logical)? Have you tried a different SD card? Beyond that I'm not sure what is going on.
The first boot after enabling "dalvik cache" should take a while, but it shouldn't be at the HTC white screen, it should be at the CM boot screen.
I've formatted and re formatted the card, I will try another one.
Even if it's the card, how the apps are moving fine and the dalvik doesn't.
I've tried another thing: I've partitioned the card through ROM Manager, and it created a 512MB partition. I then moved the dalvik cache to the SD-ext and it worked. then I've used gparted to resize the partition to 1024MB. it also worked. I suspect that something in the formatting process wasnt right although I've always kept on creating primary partitions.

Categories

Resources