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.
Related
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.
Hi guys, Im a total noob in this stuff.
But my question is, me SD card has a 1GB EXT3 partition and the rest is FAT32.
I recently flashed LeeDrOiD GB Sens rom and I was wondering when I go to the Menu and I look at the memory available it says I have 119MB available space on the internal storage, shouldn't it be 1GB since the EXT3 partition should also be the internal storage...?
Or am i totally lost in this stuff?
You are totally lost. The ext partition does not extend the internal storage. If you installed a2sd correctly, a symlink to /sd-ext will be created. This forces all apps to install in /sd-ext/data instead of internal memory (/data).
To check if a2sd is working, open terminal emulator and enter these commands:
Code:
su
ls -l /data
In the output you should see this:
Code:
/app -> /sd-ext/app
/app-private-> /sd-ext/app-private
If your rom supports a2sd+, you should also find this:
Code:
/dalvik-cache -> /sd-ext/dalvik-cache
The "->" means "is moved to".
Hmm, okay. Its not working.
This is what I get,
app
app-private
backup
dalvik-cache
...
...
And so on... There is no -> symbol.
Well I just made an EXT3 partition and flashed the new LeeDrOiD HD V3.3.3 - Port - R5 A2SD++. I thought A2SD would install automatically with this ROM.
Is there anything else I need todo so the apps go to the EXT3?
Thank for your reply!
Take a look on the leedroid thread. The dev posted a guide how to get a2sd working.
sorry but i can't write this code,is it a capital i or 1 and does it have spaces between them?
sorry but need the step by step instructions,thnx
Code:
ls -l
ls for list and -l for l(ong). Hope that helps.
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.
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
While in Kids Mode, my four-year old outsmarted the security software (not hard to do - kid's security sucks. I'm constantly finding him going where he shouldn't) and reformatted the SD card in his SM-T2105 . I managed to restore the files using PhotoRec, but it dumped the files into directories of like file types - i.e. .jpg's, .pdf's, .icn's etc. Would anyone be willing to share their SD card directory structure so I can recreate his as best as I can? I realize each one will be different, but it'll help. I promise to periodically backup the card from now on.
Also, I've found plenty of questions regarding how to move apps to the SD card, but so far have not found any solutions that work. I'm getting the message "Insufficient storage available" and he doesn't even have that many apps installed. He also has a 16G card that is mostly empty. The inability of the Samsung SM-T2105 to move apps to external storage is bewildering considering the pitifully poor space available.
Thanks.
ChipStewart said:
While in Kids Mode, my four-year old outsmarted the security software (not hard to do - kid's security sucks. I'm constantly finding him going where he shouldn't) and reformatted the SD card in his SM-T2105 . I managed to restore the files using PhotoRec, but it dumped the files into directories of like file types - i.e. .jpg's, .pdf's, .icn's etc. Would anyone be willing to share their SD card directory structure so I can recreate his as best as I can? I realize each one will be different, but it'll help. I promise to periodically backup the card from now on.
Also, I've found plenty of questions regarding how to move apps to the SD card, but so far have not found any solutions that work. I'm getting the message "Insufficient storage available" and he doesn't even have that many apps installed. He also has a 16G card that is mostly empty. The inability of the Samsung SM-T2105 to move apps to external storage is bewildering considering the pitifully poor space available.
Thanks.
Click to expand...
Click to collapse
I would like to Bump this I to have a T2105 I do not have the ability to move any apps to SD it is very frustrating.
---------- Post added at 12:43 PM ---------- Previous post was at 12:23 PM ----------
I received the following from generous fellow user @SGTDude about moving apps to sd. I haven't had time to test it, but I thought I would share it with you guys.
Quote:
Repartition the SD card with two primary partitions.
Format the first partition as FAT32.
Format the second partition as EXT4
mount the ext4 partition somewhere
mount -o rw,nosuid,nodev,noatime,discard,journal_checksum,j ournal_async_commit,noauto_da_alloc,data=ordered -t ext4 /dev/block/mmcblk1p2 /system/sd
Copy several folders over from /data
mkdir /system/sd/app
mkdir /system/sd/app-asec
mkdir /system/sd/data
mkdir /system/sd/media
cp -rp /data/app/* /system/sd/app/
cp -rp /data/app-asec/* /system/sd/app-asec/
cp -rp /data/data/* /system/sd/data/
cp -rp /data/media/* /system/sd/media/
add the following lines to /data/local/userinit.sh
mount -o rw,nosuid,nodev,noatime,discard,journal_checksum,j ournal_async_commit,noauto_da_alloc,data=ordered -t ext4 /dev/block/mmcblk1p2 /system/sd
mount -o bind /system/sd/app /data/app
mount -o bind /system/sd/app-asec /data/app-asec
mount -o bind /system/sd/data /data/data
mount -o bind /system/sd/media /data/media
Note: *"/dev/block/mmcblk1p2" is probably right on any SGT3 7" running Kids Rom, but I'd double-check if I were you.
Sent from my SM-T210R using Tapatalk
Click to expand...
Click to collapse
I saw this on http://forum.xda-developers.com/showthread.php?t=2548241 but i really don't know how to do what it ask and no one ever confirms if it works. So I am at a loss. I can't reply because I am a newb.