Jump to content

Redirect /cache to data or ram


Recommended Posts

Guest Kayusumi
Posted (edited)

Dear all, I am using cm7 v3.0 with dta2sd, and I have mounted data/app to sd-ext

But I don't want to mount data/dalvik-cache since it causes battery to drop very fast

First of all, I use TPT to change the partition to 200sys 2cache

And follow the guide below to redirect cache to data/

http://android.modac...-for-your-apps/

After doing so, I got FCs in market downloading, the pics below are the screenshots before and after redirection

post-934340-0-96744500-1323618168_thumb.

post-934340-0-76078200-1323618230_thumb.

How do I fix this problem, thx!

Edited by Kayusumi
Guest xiaoyaoswim
Posted

I'm not sure but I think CM7 redirects cache to RAM by default. I'm using it with a 2M cache partition and a FAT32 MicroSD card, it works well even when I download big size (>20M) apps from the market.

Guest Kayusumi
Posted (edited)

I'm not sure but I think CM7 redirects cache to RAM by default. I'm using it with a 2M cache partition and a FAT32 MicroSD card, it works well even when I download big size (>20M) apps from the market.

But I got "Size is not enough" while downloading big sizes.

I have solved this problem by redirecting /cache to ram

I made a little modify which just redirecting cache/download to ram instead of redirecting whole /cache

#### START - mount /cache/download as tmpfs ####

mount -t tmpfs -o size=42M,nr_inodes=42k,mode=0770 tmpfs /cache/download

chown system.cache /cache/download

#### END - mount /cache/downlad as tmpfs ####

And the results

post-934340-0-55200400-1323654338_thumb.

post-934340-0-30551300-1323654353_thumb.

Now I am wondering if it is possible to redirect /cache/download to /sd-ext/download?

Edited by Kayusumi
Guest Kayusumi
Posted

Finally I got my cache/download redirected to /sd-ext/download

post-934340-0-22557700-1323671844_thumb.

#!/system/bin/sh

#

#

#### START - Redirect /cache/download to /sd-ext/download ####

mkdir /sd-ext/download

chown system.cache /sd-ext/download

chmod 770 /sd-ext/download

rmdir /cache/download

ln -s /sd-ext/download /cache/download

#### END - Redirect /cache/download partition to /sd-ext/download ####

Thus I have 1GB ext3 for data/app and cache/download at sd-ext and 238MB for data/

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.