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

Revision history [back]

click to hide/show revision 1
initial version

posted 2016-05-27 17:19:45 +0200

Where's all my space gone?

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.

Where's all my space gone?

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