• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root A2sd - moving dalvik cache

robinta

Well-Known Member
I rooted yesterday (thanks to guides and advise on here). I'm now wanting to move the dalvik cache. I've installed revoke 2 rom with the a2sd addon. When I run quick info it shows a2sd storage 169mb and available 96mb - does this mean the SD is already partitioned? If so, how do I now get the cache out from the internal storage
.
 
You shouldn't have an ext partition if you didn't put one there yourself - cards don't come with them. What does it say for SD storage?

I don't know "revoke 2", and can't find it at XDA, so don't know what a2sd script it's using. Can you provide a pointer?
 
Sorry... senior moment, I meant redux! SD card info just shows card volume 7.4 gig (8g card) and available 768mb.
 
Hmm, I had hoped I could work out about the possible partition from the card info, but 170 MB is small enough that I'm not confident I can, as I'm not sure what the formatted capacity of an 8GB card is to that level of accuracy. If Quick System Info says you have a2sd capacity then that implies you have an ext partition, but it seems odd that you'd not know, because these things don't partition themselves.

Anyway, to answer your original question, what you want is the dalvik2ext add-on, which you can get from the "other downloads" section of the Redux download site. Just flash it, and that's it.
 
7.468 with 169 partition, 7.629 without I think.

Actually my maths was a bit off. Took it down to KB instead of B.

Should be

8/1.024/1.024/1.024 = 7.450
or
7.831/1.024/1.024/1.024 = 7.293

Run the card through gparted and have a look.
 
Should the cache have moved automatically? Certainly the internal memory just reduced, no increase in space at all. How can you tell if the cache has moved?
 
Following SUroot's post I'm increasingly unsure whether you do have an ext partition. Unless you partitioned it yourself or got it from someone who has done it for you there shouldn't be one, so it may be that the system info app has got confused.

So can you follow SUroot's suggestion and use GParted to look at your card's partitions? This would be definitive.

If you want a quick check you could see what Titanium Backup says (bottom of overview page), though that's less reliable. Or install root explorer (not free, however) and see if there is an /sd-ext directory (and if so, what size).

If you don't have one you'll need to partition the card. GParted is the best tool - see SUroot's a2sd FAQ. But partitioning will wipe the card, so copy everything to a computer first.
 
Another simple way of checking which should be reliable: Use a terminal emulator (install if you don't have one) and just type the command "df". The output will be most readable in landscape mode.

This will list information about the different filesystems known to the system. So the output from this command for me includes:

Filesystem Size Used Free
/system 180M 140M 39M
/data 217M 104M 112M
/cache 40M 1M 38M
/sd-ext 457M 225M 231M
/mnt/sdcard 14G 13G 1G

(Your numbers would differ - I've modified my internal memory partitions).

If there's no /sd-ext in your list you don't have one. If there is you could then type "ls -l /", just to make sure there's a real sd-ext, and not a "link" that's called sd-ext but really points to some other location (links will have a "->" in the output of this command). This may be paranoia on my part, but we have some conflicting information here (system info saying there is a2sd storage but everything else sounding like there isn't), so I'd like to be sure.

As said previously, GParted is the definitive test here.
 
Back
Top Bottom