Jump to content

Is this how A2SD supposed to work?


Guest khtse

Recommended Posts

I have MCR R8 with old school A2SD installed, and have a 512MB ext2 partition on my SD card. Lately I have been getting the "low on space" warning all the time when I install new apps, and have to uninstall some apps in order to put some new apps on.

Upon checking, all my apps are only using about 70MB of my ext2 partition, and there is still 400MB+ space left there. On the other hand, there is only about 20MB left on my phone storage, causing the "low on space" warning popping up whenever I put new apps onto my phone. I've noticed that when a new app is installed, only part of it goes to my ext2 partition, while the remaining goes to my phone storage.

For example, this is some partial output of "adb shell df -h" before and after Google Earth is installed:

Before:

/dev/block/mtdblock5	147.6M	126.3M	 21.3M  86% /data

/dev/block/mtdblock4	 40.0M	 22.4M	 17.6M  56% /cache

tmpfs					 8.0M		 0	  8.0M   0% /app-cache

/dev/block/mmcblk0p2	457.4M	 67.4M	365.6M  16% /system/sd
After:
/dev/block/mtdblock5	147.6M	141.4M	  6.3M  96% /data

/dev/block/mtdblock4	 40.0M	 22.4M	 17.6M  56% /cache

tmpfs					 8.0M		 0	  8.0M   0% /app-cache

/dev/block/mmcblk0p2	457.4M	 72.8M	360.2M  17% /system/sd

i.e. only about 5MB of Google Earth installation went to the SD card, while the other 15MB was installed on the phone storage.

Is this how A2SD supposed to work? I'm up to the point that I always have to remove apps in order to installed new ones... which is kind of frustrating...

Link to comment
Share on other sites

Guest afiorillo

Issue the following command and compare the results (please note the symlinks):

C:\android-sdk_r06-windows\tools>adb shell ls -l /data

drwxrwxr-x	1 system   system		2048 Aug 25 06:50 anr

lrwxrwxrwx	1 root	 root			11 Aug 23 13:36 app -> /sd-ext/app

lrwxrwxrwx	1 root	 root			19 Aug 23 13:36 app-private -> /sd-ext/app-private

drwx------	1 system   system		2048 Aug 25 00:20 backup

lrwxrwxrwx	1 root	 root			20 Aug 23 13:36 dalvik-cache -> /sd-ext/dalvik-cache

drwxrwx--x	1 system   system		2048 Aug 25 13:45 data

drwxr-x---	1 root	 log		   2048 Aug 23 13:36 dontpanic

drwxrwx--x	1 shell	shell		 2048 Aug 23 13:36 local

drwxrwx---	1 root	 root		  2048 Aug 23 13:36 lost+found

drwxrwx--t	1 system   misc		  2048 Aug 25 13:50 misc

drwx------	1 root	 root		  2048 Aug 23 16:51 property

drwxrwxr-x	1 system   system		2048 Aug 25 14:57 system


C:\android-sdk_r06-windows\tools>

If that is not what you see on your computer, you have got something wrong with your A2SD(+): misplaced ext partition?

Edited by afiorillo
Link to comment
Share on other sites

This is what I got (I'm using A2SD, not A2SD+)

C:\AndroidSDK\android-sdk-windows\tools>adb shell ls -l /data

drwxrwxr-x	1 1000	 1000		  2048 Aug  8 19:06 ←[1;34manr←[0m

lrwxrwxrwx	1 0		0			   14 Aug 18 14:47 ←[1;36mapp←[0m -> ←[1;34m/system/sd/app←[0m

lrwxrwxrwx	1 0		0			   22 Aug  5 14:51 ←[1;36mapp-private←[0m -> ←[1;34m/system/sd/app-private←[0m

drwxr-xr-x	1 0		0			 2048 Aug  5 14:47 ←[1;34mase←[0m

drwx------	1 1000	 1000		  2048 Aug  5 14:53 ←[1;34mbackup←[0m

drwxrwx--x	1 1000	 1000		  2048 Aug 25 12:43 ←[1;34mdalvik-cache←[0m

drwxrwx--x	1 1000	 1000		  2048 Aug 25 12:43 ←[1;34mdata←[0m

drwxr-x---	1 0		1007		  2048 Aug  5 14:51 ←[1;34mdontpanic←[0m

lrwxrwxrwx	1 0		0			   11 Aug  5 14:51 ←[1;36mdrm←[0m -> ←[1;34m/data/local←[0m

drwxr-xr-x	1 0		0			 2048 Aug  5 14:47 ←[1;34metc←[0m

drwxrwx--x	1 2000	 2000		  2048 Aug 18 14:38 ←[1;34mlocal←[0m

drwxrwx---	1 0		0			 2048 Aug  5 14:51 ←[1;34mlost+found←[0m

drwxrwx--t	1 1000	 9998		  2048 Aug 25 17:14 ←[1;34mmisc←[0m

drwx------	1 0		0			 2048 Aug 25 12:17 ←[1;34mproperty←[0m

drwxrwxr-x	1 1000	 1000		  2048 Aug 25 18:24 ←[1;34msystem←[0m

Link to comment
Share on other sites

no one?

FYI, I had the same problem back when I was using MCR 3.1, so it is not specific to r8.

please could you list /data

ls -la /data

and then

cd /data

du -sh

then

cd /data/data

du -sh

Link to comment
Share on other sites

Guest Sally Mack

I've been having the exact same problem as the OP... copied and paste from another thread i started before seeing this one.

Hi all,

I've been having some difficulty maintaining a decent amount of internal storage space. Im using rc1 and partitioned using amon ra recovery. Using quick system info I can see thhat space on the a2sd storage is being taken up, so it appears that its working.

That being said, I just ran an experiment with google earth. I used the froyo move to sd card feature, thinking that if a2sd were working properly, it wouldn't affect my internal storage space. My theory was correct, however when I uninstalled it completely, I gained 15mb of internal storage space. Could app data seriously be eating all my internal storage space? There must be something wrong here that im missing!

Any help appreciated!

Also:

#ls -l /data

drwxrwxr-x    1 1000     1000          2048 Sep  3 02:33 anr

lrwxrwxrwx    1 0        0               14 Sep  1 04:16 app -> /system/sd/app

lrwxrwxrwx    1 0        0               22 Sep  1 04:16 app-private -> /system/sd/app-private

drwxr-xr-x    1 0        0             2048 Sep  1 04:12 ase

drwx------    1 1000     1000          2048 Sep  1 04:19 backup

drwxrwx--x    1 1000     1000          2048 Sep  5 20:12 dalvik-cache

drwxrwx--x    1 1000     1000          2048 Sep  5 20:12 data

drwxr-x---    1 0        1007          2048 Sep  1 04:16 dontpanic

lrwxrwxrwx    1 0        0               11 Sep  1 04:16 drm -> /data/local

drwxr-xr-x    1 0        0             2048 Sep  1 04:12 etc

srwxrwxrwx    1 0        1002          2048 Sep  4 22:43 inc_data_path

drwxr-xr-x    1 2000     2000          2048 Sep  1 04:16 local

drwxrwx---    1 0        0             2048 Sep  1 04:16 lost+found

drwxrwx--t    1 1000     9998          2048 Sep  5 20:14 misc

drwx------    1 0        0             2048 Sep  5 19:36 property

drwxrwxr-x    1 1000     1000          2048 Sep  5 20:12 system

#

And...

# ls -la /data

drwxrwx--x 1 1000 1000 2048 Sep 5 20:21 .

drwxr-xr-x 14 501 20 0 Sep 5 19:35 ..

drwxrwxr-x 1 1000 1000 2048 Sep 3 02:33 anr

lrwxrwxrwx 1 0 0 14 Sep 1 04:16 app -> /system/sd/app

lrwxrwxrwx 1 0 0 22 Sep 1 04:16 app-private -> /system/sd/app-private

drwxr-xr-x 1 0 0 2048 Sep 1 04:12 ase

drwx------ 1 1000 1000 2048 Sep 1 04:19 backup

drwxrwx--x 1 1000 1000 2048 Sep 5 20:12 dalvik-cache

drwxrwx--x 1 1000 1000 2048 Sep 5 20:12 data

drwxr-x--- 1 0 1007 2048 Sep 1 04:16 dontpanic

lrwxrwxrwx 1 0 0 11 Sep 1 04:16 drm -> /data/local

drwxr-xr-x 1 0 0 2048 Sep 1 04:12 etc

srwxrwxrwx 1 0 1002 2048 Sep 4 22:43 inc_data_path

drwxr-xr-x 1 2000 2000 2048 Sep 1 04:16 local

drwxrwx--- 1 0 0 2048 Sep 1 04:16 lost+found

drwxrwx--t 1 1000 9998 2048 Sep 5 20:30 misc

drwx------ 1 0 0 2048 Sep 5 19:36 property

drwxrwxr-x 1 1000 1000 2048 Sep 5 20:12 system

drwxr-xr-x 1 1000 1000 2048 Sep 5 20:23 tombstones

# cd /data

# du -sh

116.8M .

#cd /data/data

# du -sh

55.4M .

#

post-733540-1283718592_thumb.jpg

Link to comment
Share on other sites

You need to use A2SD+ which I believe also moves the dalvik cache to the SD card.

yes.

the difference between /data and /data/data is mostly the dalvik-cache (you can see it if dalvik-cache is no symlink in data, then you have A2SD not A2SD+)

you free the difference by moving fom A2SD to A2SD+

what eats up internal storage even with A2SD+ is

/data/data (internal storage)

google earth data (not app) ie takes 17MB

Link to comment
Share on other sites

Guest Sally Mack
yes.

the difference between /data and /data/data is mostly the dalvik-cache (you can see it if dalvik-cache is no symlink in data, then you have A2SD not A2SD+)

you free the difference by moving fom A2SD to A2SD+

what eats up internal storage even with A2SD+ is

/data/data (internal storage)

google earth data (not app) ie takes 17MB

So my question is.... is my setup correct?

If so, I guess my only solution is to use a2sd+ (or uninstall some apps)?

Link to comment
Share on other sites

So my question is.... is my setup correct?

If so, I guess my only solution is to use a2sd+ (or uninstall some apps)?

as far as i can tell yes

ie i have A2SD+

data used

/data 64MB

/data/data 54MB

/data/calvik-cache (= symlink to ext partition /system/sd/dalvik-cache) 84MB

internal storage (total 148MB) used 68MB / free 80MB

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.