Jump to content

Welcome to CyanogenMod

Welcome to our forum. Like most online communities you must register to post, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of the CyanogenMod Forum by signing in or creating an account. You can even sign in with your Facebook or Twitter account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get automatic updates
  • Get your own profile and make new friends
  • Download files attached to the forum.
  • Customize your experience here
  • Share your CyanogenMod experience!
Guest Message by DevFuse
 

Move Cache to SD

cache sd desire

This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1 Dark_Sebious

Dark_Sebious
  • Members
  • 4 posts

Posted 06 February 2012 - 04:18 PM

Hi,

I try to move android market cache on my HTC desire (Cyanogen 7.1).

Here's what I did:

cd /data/data/com.android.vending
rm -R cache
mkdir /sdcard/cache/
mkdir /sdcard/cache/marketCache
ln -s /sdcard/cache/marketCache cache

But I always get the message: "The available space on the device is insufficient" when i want to update my app.

I check by ls -l:

#lrwxrwxrwx 1 root root 25 Feb 6 16:19 cache -> /sdcard/cache/marketCache

I do the same for the folder /cache/download.

It seems that the change is not taken into account

Can you help me please?

Thanks

Dark_Sebious

Edited by Dark_Sebious, 06 February 2012 - 04:19 PM.


#2 Dark_Sebious

Dark_Sebious
  • Members
  • 4 posts

Posted 13 February 2012 - 03:10 PM

Hi,

No one has any idea?

Dark_Sebious

#3 SchnHo

SchnHo
  • Members
  • 2 posts

Posted 14 February 2012 - 10:42 AM

I don't think you can move the cache to the SD card if it is formatted to FAT. You'll at least need to have an EXT3/4 partition on your SD card.

#4 daniel_fm

daniel_fm
  • Donators
  • 46 posts

Posted 18 February 2012 - 03:27 PM

Cache is really in /cache/download (at least for market). I guess you are using CM7/r2 HBOOT and don't have enough space for certain apps to download correctly.

Solution as simple as:

* Create a directory in your sdcard that you will use it as cache dir, example: /sdcard/cachedir
* remove directory /cache/download
* create a symbolic link ln -s /sdcard/cachedir /cache/download

Of course you can do the same thing to wherever you have enough space, up to you.

voilá!

#5 Dark_Sebious

Dark_Sebious
  • Members
  • 4 posts

Posted 27 February 2012 - 04:22 PM

I formatted my sd card with ROM Manager like this:
- 6GB in FAT        /sdcart
- 512MB in EXT        /sd-ext
- 128MB in SWAP

In EXT partition I created the cache folder with sub folder:
- market_cache    /sd-ext/market_cache
- download    /sd-ext/download

Then i create a symbolic link ln -s /sd-ext/cache /cache/download.

I reboot my phone but....it still doesn't work with market!

I must find a solution because I cannot update any aplication, or use applications that take cache on the phone

#6 Dark_Sebious

Dark_Sebious
  • Members
  • 4 posts

Posted 12 March 2012 - 05:07 PM

I use S2E to move the dalvik cache and it's work.

Thanks.