Android Community
Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 34

Thread: Moving Caches To The EXT2 Partition

  1. #1
    Join Date
    Nov 2008
    Location
    Cuba, NY 14727
    Posts
    767

    Default Moving Caches To The EXT2 Partition


    Move Caches to EXT2 partition.



    These commands are for moving caches to the ext2 partition of your sd card. This will only work if you have partitioned your sd card to ext2 format. If you do not know if your sd card has a ext2 partition, then you most likely do not. If you have applications running from your sd card then you most likely have a ext2 partition.

    This has not yet been validated. But moving the caches to the ext2 partition should lower the risk of file corruption related to numerous read/write actions on your sd card.


    NOTE: IF YOU ARE ENTERING THESE COMMANDS AFTER A WIPE AND HAVE NOT YET USED ANY OF THE APPLICATIONS LISTED BELOW. "rm -R" lines are not necessary. If you tried them it would return and error stating the file or directory does not exist. This is because a cache has not been created. This is because you have not yet browsed anything in order to force the system to create a cache or cache directory. In other words you cannot remove(rm = remove) what is not there.

    All others, it matters not if you use the "rm -R" commands.If you have a cache on the phone this command is simply removing your cache from the phone. This frees up phone memory so you might as well try it. If you get an error message stating the file or directory does not exist, disregard it. It simply means that you have not used the cache for that application and therefore a cache or cache directory has not been created by the system. In other words you cannot remove(rm = remove) what is not there.

    Enjoy!

    Browser Cache

    cd /data/data/com.android.browser/cache
    rm -R webviewCache
    mkdir /system/sd/cache/webviewCache
    ln -s /system/sd/cache/webviewCache webviewCache

    Google Maps

    cd /data/data/com.google.android.apps.maps
    mkdir /system/sd/cache/files/maps
    rm -R files
    ln -s /system/sd/cache/files/maps files

    Google StreetView

    cd /data/data/com.google.android.street
    rm -R cache
    mkdir /system/sd/cache/streetCache
    ln -s /system/sd/cache/streetCache cache

    Market Cache

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

    imeem Cache

    cd /data/data/com.imeem.gynoid
    rm -R cache
    mkdir /system/sd/cache/imeemCache
    ln -s /system/sd/cache/imeemCache cache

    Tunewiki Cache

    cd /data/data/com.tunewiki.lyricplayer.android/cache
    rm -R webviewCache
    mkdir /system/sd/cache/tunewikiCache
    ln -s /system/sd/cache/tunewikiCache webviewCache

    Steel Browser Cache


    cd /data/data/com.kolbysoft.steel/cache
    rm -R webviewCache
    mkdir /system/sd/cache/steelCache
    ln -s /system/sd/cache/steelCache webviewCache

    *NOTE*: If the above code does not work for steel browser because there is no cache folder try this:

    cd /data/data/com.kolbysoft.steel
    mkdir cache
    cd cache
    mkdir /system/sd/cache/steelCache
    ln -s /system/sd/cache/steelCache webviewCache


    MeetMe Cache


    cd /data/data/com.stylem.meetme
    rm -R cache
    mkdir /sdcard/cache/meetmeCache
    ln -s /system/sd/cache/meetmeCache cache


    MySpace


    cd /data/data/com.myspace.android
    mkdir /system/sd/cache/files/myspace
    rm -R files
    ln -s /system/sd/cache/files/myspace files

    Gmail

    cd /data/data/com.google.android.gm/cache
    rm -R webviewCache
    ln -s /system/sd/cache/webviewCache webviewCache

    Voice Search

    cd /data/data/com.google.android.voicesearch/cache
    rm -R webviewCache
    ln -s /system/sd/cache/webviewCache webviewCache
    Last edited by birdman81484; 02-10-2009 at 11:42 AM. Reason: Added voice search and gamil cache moves

  2. #2
    constellanation's Avatar
    constellanation is offline *sigh*... I think I'll go spend some time with the family
    Join Date
    Oct 2008
    Posts
    6,849

    Default Re: Moving Caches To The EXT2 Partition

    also if you are so inclined here is a script that can be saved as transfer.sh (in a proper editing notepad)
    chmod 0777 /data/local/bin/transfer.sh

    mkdir /system/sd/cache
    cd /system/sd/cache
    mkdir /system/sd/cache/files

    rm -R /data/data/com.android.vending/cache
    mkdir /system/sd/cache/marketCache
    ln -s /system/sd/cache/marketCache /data/data/com.android.vending/cache

    rm -R /data/data/com.android.browser/cache/webviewCache
    mkdir /system/sd/cache/webviewCache
    ln -s /system/sd/cache/webviewCache /data/data/com.android.browser/cache/webviewCache

    rm -R /data/data/com.google.android.street/cache
    mkdir /system/sd/cache/streetCache
    ln -s /system/sd/cache/streetCache /data/data/com.google.android.street/cache

    rm -R /data/data/com.google.android.apps.maps/files
    mkdir /system/sd/cache/files/maps
    ln -s /system/sd/cache/files/maps /data/data/com.google.android.apps.maps/files

    mkdir /system/sd/cache/files/myspace
    busybox cp -a /data/data/com.myspace.android/files /system/sd/cache/files/myspace
    rm -R /data/data/com.myspace.android/files
    ln -s /system/sd/cache/files/myspace/files /data/data/com.myspace.android
    run it in the terminal with the commands
    su
    mkdir /data/local/bin
    cp /sdcard/transfer.sh /data/local/bin
    chmod 0755 /data/local/bin/transfer.sh
    transfer.sh
    then you can make another script called delete.sh with the following

    #!/bin/bash

    rm -R /system/sd/webviewCache/*
    rm -R /system/sd/streetCache/*
    rm -R /system/sd/marketCache/*
    rm -R /system/sd/cache/files/maps*
    rm -R /system/sd/cache/files/myspace*
    and run it with the following in terminal to clear those caches.
    sh /sdcard/deleteCache.sh
    You can adjust it as you need to, but currently this just contains the stock browser cache, the maps and streetview cache, market and myspace caches!

  3. #3
    Join Date
    Oct 2008
    Posts
    887

    Default Re: Moving Caches To The EXT2 Partition

    *** sticky***

    Was waiting for an organized post like this. Thanks mucho.
    Google Chrome OS??

  4. #4
    DaYuMu6ft7's Avatar
    DaYuMu6ft7 is offline *sigh*... I think I'll go spend some time with the family
    Join Date
    Oct 2008
    Location
    Philly All Day!
    Posts
    4,592

    Default Re: Moving Caches To The EXT2 Partition

    Damn!

    It's about time Birdie, you had allllllllllllllll day to get er done.



    OH OK!

    Constell been up to some things too
    Device : HTC HD2 Leo - 1024 (Dual Boot)
    ROM : ChuckyDroid Custom WM 6.5.5 w/Sense
    Android : Mattc 2.2 Froyo w/Sense 1.5
    SDCard : Kingston 16GB Class 2 Micro SDHC
    HSPL3: Thanks 2 (Bepe & Cotulla)
    Radio : 2.12.50.02_2


  5. #5
    Join Date
    Oct 2008
    Posts
    887

    Default Re: Moving Caches To The EXT2 Partition

    And how do you reverse it if you decide to not want to have such a luxury in the end? I hope reflashing the RC-XX isn't the only simple answer.
    Google Chrome OS??

  6. #6
    constellanation's Avatar
    constellanation is offline *sigh*... I think I'll go spend some time with the family
    Join Date
    Oct 2008
    Posts
    6,849

    Default Re: Moving Caches To The EXT2 Partition

    uhh undo? why would you do that? man I just figured out how to do it,and now I got undo it. geesh ya'll are tough.

  7. #7
    Join Date
    Oct 2008
    Posts
    887

    Default Re: Moving Caches To The EXT2 Partition

    Quote Originally Posted by constellanation View Post
    uhh undo? why would you do that? man I just figured out how to do it,and now I got undo it. geesh ya'll are tough.
    Lol this is what JF deals with!
    Google Chrome OS??

  8. #8
    Join Date
    Nov 2008
    Location
    Cuba, NY 14727
    Posts
    767

    Default Re: Moving Caches To The EXT2 Partition

    Quote Originally Posted by DaYuMu6ft7 View Post
    Damn!

    It's about time Birdie, you had allllllllllllllll day to get er done.



    OH OK!

    Constell been up to some things too

    Haha it was hell. but in my own defense i was at work for like 5 hours....

    so uhhh dayu why don't you try this out...ehhh.....ehhh...

  9. #9
    constellanation's Avatar
    constellanation is offline *sigh*... I think I'll go spend some time with the family
    Join Date
    Oct 2008
    Posts
    6,849

    Default Re: Moving Caches To The EXT2 Partition

    Quote Originally Posted by gbk1 View Post
    Lol this is what JF deals with!
    for real, some of the comments he gets at xda are ridiculous. make me an update where the browser spins counter clockwise instead of clockwise and can every fifth letter s used scream like the word of the day on pee wee's playhouse?


    and this is before he had even gotten the update to mess with!

    little known fact that I did see, he does not apparently put apps on his sdcard.... that surprised me.

  10. #10
    DaYuMu6ft7's Avatar
    DaYuMu6ft7 is offline *sigh*... I think I'll go spend some time with the family
    Join Date
    Oct 2008
    Location
    Philly All Day!
    Posts
    4,592

    Default Re: Moving Caches To The EXT2 Partition


    Quote Originally Posted by birdman81484 View Post
    Haha it was hell. but in my own defense i was at work for like 5 hours....

    so uhhh dayu why don't you try this out...ehhh.....ehhh...

    Me! Shoot, I still haven't moved apps over because I don't know how to split the sd card.

    SMH!
    Device : HTC HD2 Leo - 1024 (Dual Boot)
    ROM : ChuckyDroid Custom WM 6.5.5 w/Sense
    Android : Mattc 2.2 Froyo w/Sense 1.5
    SDCard : Kingston 16GB Class 2 Micro SDHC
    HSPL3: Thanks 2 (Bepe & Cotulla)
    Radio : 2.12.50.02_2


Page 1 of 4 1 2 3 ... LastLast

Similar Threads

  1. Updated Move Caches To SD Card!
    By birdman81484 in forum Developers Guild
    Replies: 63
    Last Post: 04-26-2009, 09:17 AM
  2. partitioning sdcard to ext2 on a mac.
    By havikx in forum Developers Guild
    Replies: 28
    Last Post: 03-30-2009, 01:02 AM
  3. Do I need to partion my sd card for moving caches?
    By sorin129 in forum Developers Guild
    Replies: 5
    Last Post: 02-06-2009, 12:21 AM
  4. Reset Caches to SD after re-flashing with JF RC30 1.41?
    By ministersin in forum Developers Guild
    Replies: 3
    Last Post: 02-03-2009, 11:53 AM
  5. Does the G1 support ext2 formatted sd cards?
    By lufthanza in forum General HTC Chat
    Replies: 0
    Last Post: 11-12-2008, 12:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •