• Announcements

    • Reminder - MoDaCo position on illegal content   07/30/15

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such softwareNintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)CUSTOM ROMS You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)ROMs must give full credit to the original authorISSUES If you have any issues with this policy, please contact PaulOBrien directly via PM.
    • Reminder: Selling items on the forum directly is not allowed   07/30/15

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspension / ban.
Sign in to follow this  
Followers 0

Putting dalvik-cache on /cache

6 posts in this topic

Posted

Hi everyone

I'm running MIUI 2.3.16 on the A1, but I guess this applies to any GB rom, so I'm opening a new thread.

I've always been annoyed at how the free space on /data just seems to get filled up on it's own, even if I'm not installing new apps. So I decided to have a look around with root explorer, and what I found out is that the culprit is the dalvik-cache, that resides on /data/dalvik-cache. The annoying thing is that while /data gets filled up with apps and dalvik cache, the /cache partition is EMPTY. It has only 1.44 mb occupied out of 75mb!

So I tried to move the dalvik-cache to /cache, but I'm having trouble. I tried to use Darktremor's A2sdGUI that has a function to move dalvik-cache to /cache, but it doesn't work, after the phone restarts the dalvik-cache is still on /data.

So I then tried to just create a symlink manually: I deleted the /data/dalvik-cache folder, and replaced it with a symlink to /cache/dalvik-cache.

But this doesn't work either, because when you reboot the system resets these folders and links, by re-creating /data/dalvik-cache folder and creating a link from /cache/dalvik-cache to that folder (while what I would like to do is the opposite!).

Can anyone help me figure this out? (if it is even possible?)

0

Share this post


Link to post
Share on other sites

Posted

remove this line from your build.prop

dalvik.vm.dexopt-data-only=1[/CODE]

1

Share this post


Link to post
Share on other sites

Posted

remove this line from your build.prop

dalvik.vm.dexopt-data-only=1[/CODE]

That line is not present :(

I tried adding it and setting it to "0", but to no avail, it still re-creates. the data/dalvik-cache and re-links /cache/dalvik-cache to it at reboot :(

0

Share this post


Link to post
Share on other sites

Posted

That line is not present

I tried adding it and setting it to "0", but to no avail, it still re-creates. the data/dalvik-cache and re-links /cache/dalvik-cache to it at reboot

Ok a dirty fix :) Symlink /data/dalvik-cache to /cache/

0

Share this post


Link to post
Share on other sites

Posted

Ok a dirty fix Symlink /data/dalvik-cache to /cache/

Tried it. SOME of the dalvic-cache files started being put in /cache but then, some time during boot, some script or application removes the link and re-creates the /data/dalvik-cache folder... any idea what could it be?

0

Share this post


Link to post
Share on other sites

Posted (edited)

Well, I've written this script:


rm -f -r /cache/dalvik

mkdir /cache/dalvik

cp /data/dalvik-cache/* /cache/dalvik

rm -f -r /data/dalvik-cache

rm -f -r /cache/dalvik-cache

cd /data

ln -s /cache/dalvik dalvik-cache

I use SManager set to run the script at startup with root access. Probably very "primitive", but I'm a linux noob, so I'm not so used to bash scripts. But it seems to work, tho it would be better to find out why it gets reset at each boot.

Still, I now have 40 extra mbytes on /data, so I'm happy.

Edited by Master_T
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.