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

Where's all my space gone?

asked 2016-05-27 17:19:45 +0300

WhyNotHugo gravatar image

updated 2016-05-27 17:46:00 +0300

I've been low on space on my device since forever. I've been trying to track down where my space is gone, but it seems to be a mystery:

$ df -h /home//nemo
Filesystem            Size  Used Avail Use% Mounted on
/dev/mmcblk0p28        14G   12G  2.1G  85% /home

However:

# du -sh * --exclude=proc
188K    acct
4.6M    bin
72M     boot
0       cache
0       config
4.0K    d
4.6G    data
4.0K    default.prop
484K    dev
8.0K    drm
13M     etc
45M     firmware
4.0K    fstab.qcom
3.1G    home
8.0K    init.qcom.class_core.sh
4.0K    init.qcom.class_main.sh
4.0K    init.qcom.early_boot.sh
20K     init.qcom.rc
4.0K    init.qcom.ril.sh
8.0K    init.qcom.sh
4.0K    init.qcom.syspart_fixup.sh
16K     init.rc
16K     init.rc.orig
8.0K    init.target.rc
4.0K    init.trace.rc
16K     initlogo.rle
22M     lib
0       media
4.0K    mnt
3.2G    opt
108K    persist
20M     root
8.2M    run
3.5M    sbin
4.0K    sdcard
0       srv
0       swap
0       sys
108M    system
12K     tmp
4.0K    tombstones
8.0K    ueventd.qcom.rc
12K     ueventd.rc
866M    usr
47M     var
4.0K    vendor

Keep in mind that /opt contains a symlink to /home, so it's duplicating this number actually.

I've used an app called "Space Inspector". it shows similar numbers.

This is really annoying - I've deleted about half my music just to gain space, but most of it is actually unaccounted for.


Updated with requested info:

# btrfs fi show
ERROR: unable get label Inappropriate ioctl for device
Label: 'sailfish'  uuid: 0f8a2490-53ed-4ff6-ba34-b81df3430387
        Total devices 1 FS bytes used 11.13GiB
        devid    1 size 13.75GiB used 13.75GiB path /dev/mmcblk0p28

Btrfs v3.16
# btrfs fi df /
Data, single: total=13.01GiB, used=10.93GiB
System, DUP: total=40.00MiB, used=4.00KiB
System, single: total=4.00MiB, used=0.00
Metadata, DUP: total=330.00MiB, used=201.47MiB
Metadata, single: total=8.00MiB, used=0.00
edit retag flag offensive close delete

Comments

What do these commands say:

devel-su btrfs fi show

devel-su btrfs fi df /

cy8aer ( 2016-05-27 17:31:07 +0300 )edit

I've updated the question with the requested information

WhyNotHugo ( 2016-05-27 17:46:19 +0300 )edit
3

do a btrfs balance

coderus ( 2016-05-27 18:13:57 +0300 )edit

It's complaining about low disk space. I had to delete almost all my music before if stopped complaining about that (looks like it's also what kept the upgrades from working).

WhyNotHugo ( 2016-05-27 18:26:28 +0300 )edit

I'm having the same problem. I can't do btrfs balance because I don't have enough space. And I can't remove anything anymore: i've got no video and pics to remove!!! What to do?

chinauser ( 2016-05-29 19:40:32 +0300 )edit

1 Answer

Sort by » oldest newest most voted
3

answered 2016-05-29 14:54:34 +0300

chemist gravatar image

As @hobarrera mentioned in a comment, he had to delete some files to be able to balance btrfs, this is essential, btrfs needs free space to work (just like any other OS). Android + home are already >7.5GB, so upgrade caches and the actual system may eat the rest in no time. If you have problems keeping Android device usage to a minimum, find out if your apps may use the sdcard instead of internal storage.

edit flag offensive delete publish link more

Comments

This is the right usage, regrettably. We end up having almost no usable space on the device: about 5GB for the OS, and about 4GB free for balancing, so we can only use 2-3GB.

WhyNotHugo ( 2016-05-30 07:56:52 +0300 )edit

Not quite acceptable. It looks like SFOS is like Windows, we need to re-install it every 6 months...

chinauser ( 2016-05-30 08:28:48 +0300 )edit

Not a reinstall, but actually worse, because it's user data that needs to be (temporarly) purged, not the OS itself (I've no idea what the issue in on windows though, since I've no knowledge of it).

WhyNotHugo ( 2016-05-30 11:57:13 +0300 )edit

@chinauser just nope, the space on all devices is limited and a 16GB android 4.2.2 will eat up all internal memory with stupid caches that cannot be deleted (Samsung Galaxy Tab2 needs to be factory reset every 6 months if you want it to work smooth), and btw, where is the problem to move some of your personal "huge" data to the uSD, that is what the slot is for. If you download large amounts of data you are screwed on any device that does not ship with 64GB internal storage. So those 7.5GB of android+home are what? Yes, your data, so you may use 6GB of the internal storage (that is more than you get on most other devices of that size). We all want more always, for sure the Jolla1 was no big storage phone when it hit the shelves but it got a uSD slot (use it!)

@hobarrera my Win7 update remains that cannot be deleted grew to 13GB, the whole system grew to around 40GB with only apps installed on the root device that actually need to be on the root device

chemist ( 2016-05-31 01:38:17 +0300 )edit

@chemist: My entire data is only 3.2 GB, dunno where you got the other number (twice that amount!).

I don't really care if a Galaxy Tab2 or some other Android device is crap. For any bad product there's something worse (except for the product that's literally the worst in the world). Stating that something worse exists is no excuse for this sort of annoyances.

Also, many devices shipped with way more space. The Nokia N900 (two generations back!) had 32GB space. I've no idea why this phone would have half the amount (which about only 20% usable).

I don't have a microSD card. It's kind of a pretty big investment, IMHO too, and I'm not sure if I really want to invest so much to get around this, rather than just replace the device.

WhyNotHugo ( 2016-05-31 01:53:12 +0300 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2016-05-27 17:19:45 +0300

Seen: 529 times

Last updated: May 29 '16