well a little update about the original script in question in the thread, I just ran the commands:
with the file transfer.sh on my sd. the file contains:#mkdir /data/local/bin
#cp /sdcard/transfer.sh /data/local/bin
#chmod 0755 /data/local/bin/transfer.sh
#transfer.sh
everything seemed to work except for the maps. the folder is there. but after messing around in both satellite and nonsatellite modes, zooming around. no files! any advice?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
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/files
Last edited by constellanation; 02-06-2009 at 06:20 PM.
you gotta do the maps like i have listed in the post ext2 post a ways back....i did all mine the way i have them posted there and they work....i have never seen anyone do it the way you are doing it consty...are you sure they worked? maybe there is two ways to do all the other ones but only the one way to do the maps....
anyways here it is:
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
His way works. He just deleted his "com.google.android.apps.maps" folder instead of the "com.google.android.maps/files" folder. It couldn't write the cache because the it couldn't create the cache folder "files" because "com.google.android.apps.maps" was not found.
I don't really see why in the script everyone cd/ to the folder. Its not neccessary if you provide the full path.
it worked except for the maps... and i know there has to be a way for it to be included in the script. i guess actually i could just put it in like you said, i gotta look at it again though
consty hold up like 3 min and im gonna post a script that will move every cache for you....i need to see if this works!!!!!
Script for moving all caches to ext2 sdcard
(This is the way the sd card comes out of the box.)
ROOT ACCESS IS REQUIRED!
1. Download the file below.
2. Open the file.
3. Click: File> Save as
4. Change "Save as type" to "All Files"
5. Change File Name moveallcaches.sh (simply remove the ".txt" part)
6. Save this file on your sd card. (Unplug the USB cord from your phone now)
7. On your phone open the "Terminal Emulator" Application
8. Type: su
9. Type: cd /sdcard
10. Type: sh moveallcaches.sh
There you go!
Last edited by birdman81484; 02-07-2009 at 12:17 AM.
well birdo, I'd try it but all four of the caches that I know how to move that I use are successfully moved to the partitioned (ext2) part of my sdcard including maps using the following script
thanks everyone for the help!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
I just need a guinea pig...
our ways of writing this are totally different too....
anyways what does the chmod 0777 do? and why does the script need to be in /data/local/bin/transfer.sh?
also what program did you use to write you script?
how is it is executed when you get into the terminal emulator?
Bookmarks