I made the mistake of using df .
from the HostOS and luckily noticed that wasn’t correct before the storage filled up.
I’m want to confirm how to tell how full my device storage is from within a container. From the output of df
it looks like the overall free storage (none) and shared-volume storage are the same:
Filesystem 1K-blocks Used Available Use% Mounted on
none 29524956 1779628 26203260 7% /
tmpfs 495440 0 495440 0% /sys/fs/cgroup
/dev/mmcblk0p6 29524956 1779628 26203260 7% /eio-data
tmpfs 495440 0 495440 0% /tmp/resin
shm 65536 0 65536 0% /dev/shm
none 358448 0 358448 0% /dev
But from the HostOS I get:
devtmpfs 358448 0 358448 0% /dev
/dev/disk/by-partuuid/81bdc010-02 306201 279319 6812 98% /mnt/sysroot/active
/dev/disk/by-label/resin-state 18803 8428 8942 49% /mnt/state
none 306201 279319 6812 98% /
tmpfs 495440 160 495280 1% /dev/shm
tmpfs 495440 864 494576 1% /run
tmpfs 495440 0 495440 0% /sys/fs/cgroup
tmpfs 495440 0 495440 0% /tmp
tmpfs 495440 32 495408 1% /var/volatile
overlay 495440 32 495408 1% /var/lib
overlay 495440 32 495408 1% /var/cache
overlay 495440 32 495408 1% /var/spool
overlay 495440 32 495408 1% /srv
/dev/mmcblk0p1 40314 8292 32023 21% /mnt/boot
/dev/mmcblk0p6 29524956 1779888 26203000 7% /mnt/data
So if I want to know how much “free space” is available on the sd card of my raspberry pi, I should look at either
- within container
df /
ordf /eio-data
(my shared volume) - within HostOS
df /mnt/data
- from the Diagnostics tab of the dashboard
Is this correct?