We have moved to a new Sailfish OS Forum. Please start new discussions there.
5

[bug] dalvik duplicates app data wasting GB of space

asked 2014-10-08 17:55:10 +0200

dsilveira gravatar image

updated 2014-10-08 17:58:19 +0200

I've noticed that I had unexplainably low amount of free disk-space. So I went digging and found out that the folder:

/home/android_storage/

where alot of big files (like the osmand maps) are located, is a duplicate of (not a symlink to)

/data/media/

which in my case means, that it wastes me 1.5 GB of storage (more than 10%)

So I plea, Jolla please fix this ASAP!

EDIT ------------

/data/sdcard

also points to /home/android_storage, but this time with a proper symlink (Thank God)

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
7

answered 2014-10-08 18:45:26 +0200

Kontio gravatar image

Did you notice that /home/nemo/android_storage is fuse mounted? So the files in /home/nemo/android_storage are physically in /data/media/ and just stored once and not twice.

edit flag offensive delete publish link more

Comments

If that is true, then why does my free space show up with exactly 1.5 GB less than it should (either with "df" or "btrfs fi df"), And "du" shows that it is exactly there that it is duplicated?

dsilveira ( 2014-10-08 19:03:11 +0200 )edit
1

if you have developer mode on, open a terminal and type:

mount | grep /dev/fuse

You should get this line:

/dev/fuse on /home/nemo/android_storage type fuse (rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other)

and everything is ok.

jolladiho ( 2014-10-08 20:19:40 +0200 )edit

@dsilveira not sure what you mean and why you should exactly have 1,5GB less disk usage? Of course du shows for each folder the same amount, it's the same, but does not mean it's used twice. The space used reported by tools like df and btrfs fi df are not always so intuitive to understand (at least for me). See also btrfs wiki.

If you don't believe, boot into recovery mode, mount the @home subvolume and check out nemo/android_storage you will notice it's empty, then mount @ subvolume and check out data/media there the files are:

/ # mount -o subvol=@home /dev/mmcblk0p28  /mnt
/ # cd /mnt/nemo/android_storage/
/mnt/nemo/android_storage # ls -al
drwxrwsr-x    1 0        100000           0 May  5 18:46 .
drwxr-x---    1 100000   100000         802 Oct  6 17:59 ..
/mnt/nemo/android_storage #

/ # umount /mnt
/ # mount -o subvol=@ /dev/mmcblk0p28  /mnt
/ # cd /mnt/data/media/
/mnt/data/media # ls -al
drwxrwx---    1 1023     1023           204 Aug 12 21:53 .
drwxrwx--x    1 1000     1000           470 Sep 30 17:55 ..
drwxrwxr-x    1 1023     1023            84 Aug 29 08:05 .aptoide
drwxrwxr-x    1 1023     1023             6 Jun  1 11:37 .aptoide_settings
drwxrwsr-x    1 1023     1023             8 Feb  4  2014 Android
drwxrwsr-x    1 1023     1023            88 Apr  7  2014 ApplifierVideoCache
drwxrwsr-x    1 1023     1023            14 Sep 17 19:46 CamScanner
drwxrwsr-x    1 1023     1023            22 Feb  4  2014 DCIM
drwxrwsr-x    1 1023     1023             0 Sep 17 19:45 Download
drwxrwsr-x    1 1023     1023             8 Feb 15  2014 backups
drwxrwsr-x    1 1023     1023             0 Feb 15  2014 download
drwxrwxr-x    1 1023     1023             0 Jul 13 00:06 navigator
drwxrwxr-x    1 1023     1023             0 May 14 20:18 rdtmp
/mnt/data/media #
Kontio ( 2014-10-08 21:13:53 +0200 )edit

If you open terminal and enter a btrfs fi df, or a df, or you use an app like "memory", with all of these methods I get a reported amount of free space, which is considerably less than What I expected, and after going through every big space spender recursively with du, The Only, space usage inconsistency I find is with those folders I mentioned.

So either the fuse mount distorts the df/btrfs fi df/"memory" reading, or It in fact duplicates data.

Either way, There is a considerable amount of disk-space which seems to become unusable to the user!

dsilveira ( 2014-10-13 04:37:41 +0200 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2014-10-08 17:55:10 +0200

Seen: 649 times

Last updated: Oct 08 '14