[SOLVED] AP2SD+++, data on /system/sd, Where wrong? - Desire General

I want to move some some huge apps data dir on sd card, to free internal memory. /data/data/com.google.earth, for example, is 17MB !
So, I make a folder /system/sd/data/ moving in com.google.earth and doing symlink under /data/data
Code:
ln -s /system/sd/data/com.google.earth com.google.earth
but, at reboot, symlink are still here, but folder /system/sd/data disapears with all contents...
Why ? Where wrong ?
(i'm using MCR R4 with AP2SD++ )

I believe that the A2SD script moves all data to internal memory and removes the data dir from SD.
It's not even recommended to move data to the SD card because it's very insecure and can cause force closes.
At least that's how it was on the G1 and the A2SD script is most probably taken from there.

beidl said:
I believe that the A2SD script moves all data to internal memory and removes the data dir from SD.
Click to expand...
Click to collapse
well, looking into A2SD script I found this:
Code:
# don't allow /data/data on sd because of upgrade issues - move it if possible
if [ -d /system/sd/data ];
then
busybox cp -a /system/sd/data/* /data/data/;
busybox rm -rf /system/sd/data;
fi;
And I agree, if you move all /data/data phone never start without SD, but all what I want is move some, less used, big application, link Google Earth. So I've call the folder /system/sd/4data, to prevent script deleting, and seems to works fine, it survive at boot, Google Earth starts and I have 17Mb more memory free.

Related

[Test] Extended App2SD with data/data on SD

I'm using App2SD+ with MoDoCo r7.
I have today tried to moving data/data to sd card through symlink. I have now 138 MB internal memory free with (240 Apps). 90% of Apps & all Games works fine. But I can't start some Apps like "Market" or "Swype".
I get an error and it will be closed.
Can somebody check my adb steps ? is it correct or have I forgot some things ?
mount system
mkdir /system/sd/data
cd /data/data
cp * /system/sd/data
cd /data
rm -r data
ln -s /system/sd/data /data/data
thanks!
App data on SD causes too much problems and a big decrease in speed. (Galaxy S users have problems because data is on an internal SD card by default)
There's a reason data hasn't been moved to SD by the A2SD script yet.
If you really really really want as much space on /data as possible,
it's better to move an apps lib file to /system and symlink it to the apps data directory.
So at least the file is on the internal NAND.

[Q] HELP SD-EXT back to phone memory

Is there a method to move data in ext2 back to phone memory in my desire? I found some recovery tools allow that. But I don't find any way in clockwork mod.
Thanks for the help.
Make a backup of yours Apps+Data with Titanium Backup, make a backup of FAT32-Partition of the Card. Partition the SD-Card without swap and ext. Reboot the Desire and restore the SD-Card (with USB-Connection) and restore the backups made with Titanium Backup.
Thanks for the info. But Titanium Backup can't restore everything. Is there any other method to move ext2 data back to phone like some other recovery tools able to move ext back to phone.
n
Go into recovery, mount sd-ext and data.
Open an ADB shell and do the following
rm /data/app
rm /data/app-private
rm /data/dalvik-cache
Thats how you delete the links.
mv /sd-ext/app /data/
mv /sd-ext/app-private /data/
mv /sd-ext/dalvik-cache /data/
If it's correct there should be a app, app-private and dalvik-cache dir again, check like this:
ls /data/
Double check if there is still something important left on sd-ext:
ls /sd-ext
If there is a data folder you need to move it to, but I think there were only app, app-private and dalvik-cache.
Turn phone off, remove SD card and put it into your PC to repartition it. If you reboot the phone with SD card still in it will re-setup ap2sd.
By using this command all apps will move back to phone right?
Titanium Backup
I found an option in Titanium Backup allowing for a batch moving of all apps to the internal memory. I used it (because i need to also) and I checked in Settings>Applications>Apps on SD and none were there
mrusheen said:
I found an option in Titanium Backup allowing for a batch moving of all apps to the internal memory. I used it (because i need to also) and I checked in Settings>Applications>Apps on SD and none were there
Click to expand...
Click to collapse
Settings>Applications>Apps on SD only shows Froyo Apps to SD, it doesn't show old A2SD or A2SD+ apps, the phone is tricked into thinking those apps are installed internally
Yes that is the problem. So I want to find a way to reverse it.

[Q] Is splitting the Dalvik cache between two memory locations possible?

Hi,
I was thinking that for some applications for performance reasons it is preferable to have the associeate davlik cache file in internal memory and for others it is better to move to them to sd in order to save space? Is there any script/code which implements such a feature?
You can allow DK to be on ext, then move certain DKs to a new folder on NAND, then add a symlink on ext.
Droidzone said:
You can allow DK to be on ext, then move certain DKs to a new folder on NAND, then add a symlink on ext.
Click to expand...
Click to collapse
thanks, is there some kind of gui for this that would make batch processing simple, and can i do it the other way? I.e. symlink files from Nand to ext?
I dont know if there is any gui. Why do you need one?
Code:
adb shell
mv targetpath/filename.dex sourcepath/
ln -s targetpath sourcepath
are all the commands that you need.
Droidzone said:
I dont know if there is any gui. Why do you need one?
Code:
adb shell
mv targetpath/filename.dex sourcepath/
ln -s targetpath sourcepath
are all the commands that you need.
Click to expand...
Click to collapse
So that i can move multiple files easily. I was considering XD2SDX http://forum.xda-developers.com/showpost.php?p=18911182&postcount=1784 which places app data and apks on the sd and keeps the dalvik cache on internal memory. My thinking is that for apps that are rarely used it is unecessary to have the the associated cache on the internal memory, so I want to experiment with moving invidual dalvik app caches, this is why a gui would be useful. Afterall it would be a chore to have to type in the commands manually each time i install a new app.
QtADB.............symlinks will have to be created manually.

[Q] [CM7] Can't install/update from market after flashing Alpharev partition table

Hi,
I am running CM7.1.0 on rooted and s-off HTC desire with DarkTremor app2sd scripts.
I just flashed the Alpharev CM7r2 partition table (moving also Davilk to sd-ext through App2SDGUI), but, even if I gained a lot of internal memory space, I am no more able to update/install new apps from Market due to an "insufficient storage available" error.
Can someone help me ? I tried also to wipe all and re-install from scratch CM7, but still getting the same error. It seems to me I cannot download/update apps with download size > of my /cache partition size, which is 5mb.
Many thanks to anyone helping me.
Ok, I found the problem.
The problem is that CM7 isn't automatically moving the /cache partition to the /data partition, which it should do since /cache partition is small (5 mb).
Thus, since market uses /cache/download to store downloaded .apk, it cannot store there apks bigger than 5mb.
To fix this I created a symbolic link with a folder inside my SDcard: this folder will act as the new market cache folder.
Here is the list of commands for users encountering my problem:
Code:
adb shell
cd /cache/
rm -R download
mkdir /mnt/sdcard/marketcache
ln -s /mnt/sdcard/marketcache download
chown -h system.cache download
Can someone explain me why CM7 didn't automatically performed this step for me ?
Thanks.
Just wanted to say thank you, because this also worked for me after I somehow screwed up the FAT32 partition on my SD card.
The only way to reconnect with the market was to make a symlink to the cache/download folder as you describe. (In fact, there wasn't a "download" folder at all under my cache partition -- which may have been part of the problem). But it's fixed now. A million thanks.
CM7r2 Hboot, GSM desire, running Mildwild 2.9.5 / Oxygen
I am happy it helped, that is why I posted the solution I had found.
Cheers
ghepardo said:
Hi,
I am running CM7.1.0 on rooted and s-off HTC desire with DarkTremor app2sd scripts.
I just flashed the Alpharev CM7r2 partition table (moving also Davilk to sd-ext through App2SDGUI), but, even if I gained a lot of internal memory space, I am no more able to update/install new apps from Market due to an "insufficient storage available" error.
Can someone help me ? I tried also to wipe all and re-install from scratch CM7, but still getting the same error. It seems to me I cannot download/update apps with download size > of my /cache partition size, which is 5mb.
Many thanks to anyone helping me.
Click to expand...
Click to collapse
There is another code(need sdcard extfs, runing in Android Terminal or under ADB shell in cmd):
Code:
cp -a /cache/download /sd-ext
rm -r /cache/download
ln -s /sd-ext/download /cache/download
reboot

[MOD][Howto] Move folders from internal to external sd card

Here is the script i use to mount folders from my external sd card over folders on the internal one. This makes it possible to transfer the most space consuming files off the internal memory, so you have more space for installing other applications.
this method requires some basic linux skills, if you dont know how to use the linux command line, you better try the foldermount app. as always, use this method on your own risk.
this works with the mount --bind command, nothing new, similar scripts are documented for the galaxy s3, galaxy tab and also used by the foldermount app. one advantage over the foldermount app is, that this script is launched by init.d very early in the boot process, so no app is started at the time of mounting (not finding the files they expect).
1. you need a kernel with init.d support. tested with adam 1.3.2 and perseus alpha1. (alpha0 did not work for me).
2. get a root command promt on your phone, i recommend adb shell, a local terminal emulator will work too.
3. you may need to type "su" in the console to get a root shell
4. create the init directory by typing "mkdir /etc/init.d" and "chmod 777 /etc/init.d"
5. create the file "/etc/init.d/02mountbind" by using your favorite text editor. you may also create it on sdcard first and then copy it over. make sure to do a "chmod 777 /etc/init.d/02mountbind" on it.
6. the content of the script depends on your requirements. also, it does not move any files, you have to do that yourself. I recommend to test with the first mount -o bind test line. then comment in the other two lines after you have moved the files over to your external sdcard.
Code:
#!/system/bin/sh
echo "started mount script" >/data/local/tmp/init.d_log.txt
#start the volume manager
vold
#mount the external sd card, its not there at boot time
mount -t vfat -o umask=0000,uid=1000,gid=1023 /dev/block/vold/179\:9 /storage/extSdCard/ 2>&1 >> /data/local/tmp/init.d_log.txt
#this is a test, you can use it to confirm everything is working before you start to move files. if all is fine, you can write files to the folder "test" on your internal sdcard and see the changes on the external one.
mount -o bind /storage/extSdCard/test/ /data/media/0/test 2>&1 >> /data/local/tmp/init.d_log.txt
#mount the Android directory of the extSdCart to the internal one. Move all files from your internal sdcard to the external one first
#mount -o bind /storage/extSdCard/Android/ /data/media/0/Android 2>&1 >> /data/local/tmp/init.d_log.txt
#also mount the obb directory. its not on the "internal sdcard" but also on your internal storage. it holts the most data of games like gta3, max payne and so on.
#mount -o bind /storage/extSdCard/Android/obb /data/media/obb/ 2>&1 >> /data/local/tmp/init.d_log.txt
echo "done mount script" >> /data/local/tmp/init.d_log.txt
after placing the script and making it chmod 777, try to reboot and see if it works. if not, check the file /data/local/tmp/init.d_log.txt for log informations.
i have some games installed, had a full internal memory and were able to free up 6Gb space on my using this method.
Feedback welcome.
raw235 said:
Here is the script i use to mount folders from my external sd card over folders on the internal one. This makes it possible to transfer the most space consuming files off the internal memory, so you have more space for installing other applications.
this method requires some basic linux skills, if you dont know how to use the linux command line, you better try the foldermount app. as always, use this method on your own risk.
this works with the mount --bind command, nothing new, similar scripts are documented for the galaxy s3, galaxy tab and also used by the foldermount app. one advantage over the foldermount app is, that this script is launched by init.d very early in the boot process, so no app is started at the time of mounting (not finding the files they expect).
1. you need a kernel with init.d support. adam kernel has it, others may have it too.
2. get a root command promt on your phone, i recommend adb shell, a local terminal emulator will work too.
3. you may need to type "su" in the console to get a root shell
4. create the init directory by typing "mkdir /etc/init.d" and "chmod 777 /etc/init.d"
5. create the file "/etc/init.d/02mountbind" by using your favorite text editor. you may also create it on sdcard first and then copy it over. make sure to do a "chmod 777 /etc/init.d/02mountbind" on it.
6. the content of the script depends on your requirements. also, it does not move any files, you have to do that yourself. I recommend to test with the first mount -o bind test line. then comment in the other two lines after you have moved the files over to your external sdcard.
Code:
#!/system/bin/sh
echo "started mount script" >/data/local/tmp/init.d_log.txt
#start the volume manager
vold
#mount the external sd card, its not there at boot time
mount -t vfat -o umask=0000,uid=1000,gid=1023 /dev/block/vold/179\:9 /storage/extSdCard/ 2>&1 >> /data/local/tmp/init.d_log.txt
#this is a test, you can use it to confirm everything is working before you start to move files. if all is fine, you can write files to the folder "test" on your internal sdcard and see the changes on the external one.
mount -o bind /storage/extSdCard/test/ /data/media/0/test 2>&1 >> /data/local/tmp/init.d_log.txt
#mount the Android directory of the extSdCart to the internal one. Move all files from your internal sdcard to the external one first
#mount -o bind /storage/extSdCard/Android/ /data/media/0/Android 2>&1 >> /data/local/tmp/init.d_log.txt
#also mount the obb directory. its not on the "internal sdcard" but also on your internal storage. it holts the most data of games like gta3, max payne and so on.
#mount -o bind /storage/extSdCard/Android/obb /data/media/obb/ 2>&1 >> /data/local/tmp/init.d_log.txt
echo "done mount script" >> /data/local/tmp/init.d_log.txt
after placing the script and making it chmod 777, try to reboot and see if it works. if not, check the file /data/local/tmp/init.d_log.txt for log informations.
i have some games installed, had a full internal memory and were able to free up 6Gb space on my using this method.
Feedback welcome.
Click to expand...
Click to collapse
can you plz make a app for this coz its very difficult for ameture like Me.Thanks
@palash_6670 Why dont you use the foldermount app from the market
grgsiocl said:
@palash_6670 Why dont you use the foldermount app from the market
Click to expand...
Click to collapse
I use it
It is amazing ^_^
Sent from my GT-I9500 using Tapatalk 4 Beta
palash_6670 said:
can you plz make a app for this coz its very difficult for ameture like Me.Thanks
Click to expand...
Click to collapse
bhai, use FOlderMount (https://play.google.com/store/apps/details?id=com.devasque.fmount) ! awesome application !
greatricky said:
bhai, use FOlderMount (https://play.google.com/store/apps/details?id=com.devasque.fmount) ! awesome application !
Click to expand...
Click to collapse
Yeah Bro Using it Thanks for the suggestion
Guys, wouldnt be easier to simply edit the root\etc\vold.fstab and change the montpoints of internal memory and external microsd?
Pistolaobr said:
Guys, wouldnt be easier to simply edit the root\etc\vold.fstab and change the montpoints of internal memory and external microsd?
Click to expand...
Click to collapse
i have tried that, there is no mount point for the internal one in vold.fstab. instead i have modified the init.rc config (by repacking the kernel) to mount the external one in place of the internal one and ignore the external moint point, but that caused the camera application to hang (i think it checks for both sdcards). also, my script does not only mount the large Android folder from one sd to the other, it is also able to mount the /data/media/obb folder, which neither on the internal nor on the external sdcard, to the external sdcard. simple mountpointswapping would'nt make this possibe. that obb folder was 3,5GB large for me, containing the most data of my games.
palash_6670 said:
Yeah Bro Using it Thanks for the suggestion
Click to expand...
Click to collapse
How much space did you save doing that?
drziddo said:
How much space did you save doing that?
Click to expand...
Click to collapse
u can put the game file on sd card[OBB,game files] and mount it.it will work like as a Mobile memory. [sorry for the english]
Hi
Is it possible to find a way through CWM Flash ?
azoojeddah said:
Hi
Is it possible to find a way through CWM Flash ?
Click to expand...
Click to collapse
Probably yes, but it woulb be one for each cwm custom rom or for each custom kernel.
xperia z
pls folder mount doesnt work with xperia z any suggestions pls???
johnemone said:
pls folder mount doesnt work with xperia z any suggestions pls???
Click to expand...
Click to collapse
What does it say?
mw86 said:
What does it say?
Click to expand...
Click to collapse
it shows me d green pin but wen I try to start d game it doesn't start
raw235 said:
Here is the script i use to mount folders from my external sd card over folders on the internal one. This makes it possible to transfer the most space consuming files off the internal memory, so you have more space for installing other applications.
this method requires some basic linux skills, if you dont know how to use the linux command line, you better try the foldermount app. as always, use this method on your own risk.
Click to expand...
Click to collapse
Nice work...Keep it up
Click to expand...
Click to collapse
Looks Greattttt.....Keep It Up :good:
is this will work on galaxy s3?

Categories

Resources