HD space reported differently using different tools

Hey team -

my system follows:
Linux galago 5.15.6-2-MANJARO #1 SMP PREEMPT Sat Dec 4 11:11:58 UTC 2021 x86_64 GNU/Linux
Gnome = 41.1

I don’t know if this is a Gnome issue, and honestly don’t know if it’s an issue at all, but reporting about disk space usage is confusing to me. I have partitions for eufi, and for system ( / ) and for /home. df -h shows the following:

Filesystem Size Used Avail Use% Mounted on
dev 16G 0 16G 0% /dev
run 16G 1.9M 16G 1% /run
/dev/nvme0n1p2 34G 15G 18G 46% /
tmpfs 16G 5.9M 16G 1% /dev/shm
tmpfs 16G 77M 16G 1% /tmp
/dev/nvme0n1p3 420G 115G 284G 29% /home
/dev/nvme0n1p1 511M 235M 277M 46% /boot/efi
tmpfs 3.2G 116K 3.2G 1% /run/user/1000

On the other hand, “properties” within Nautilus or as shown in System Monitor are different figures. Am sure there’s explanation but wonder what that is. BTW, would show what’s reported in System Monitor or Nautilus but it’s graphical and am not sure how to share that.

Thx

rsv869

BTW… sorry the alignment of df -h output is crap. Not intentional.

Use the </> button or ticks (```) to format it.

To your question - I dont know for sure what you mean by “different figures” … but maybe you are comparing apples and oranges? What is the actual weight and/or units? Is it MiB vs MB, for example ?

Filesystem     Size  Used   Avail   Use%   Mounted on
dev             16G     0    16G      0%   /dev
run             16G  1.9M    16G      1%   /run
/dev/nvme0n1p2  34G   15G    18G     46%   /
tmpfs           16G  5.9M    16G      1%   /dev/shm
tmpfs           16G   77M    16G      1%   /tmp
/dev/nvme0n1p3 420G  115G   284G     29%   /home
/dev/nvme0n1p1 511M  235M   277M     46%   /boot/efi
tmpfs          3.2G  116K   3.2G      1%   /run/user/1000

A tmpfs is a virtual-memory-based filesystem. It resides in RAM but can be swapped out. Its default maximum size is half your RAM.

So the only filesystems in that list which take up drive space are /boot/efi, / and /home.

Understood. And thx Aragron and CSCS.

my question is about why df -h reports 284G available and 115G used on /home but System Manager reports 304.1G available and 123.2G used on the same partition. That’s a pretty big difference.

Reid

Most likely the difference between the decimal values and the binary values ─ e.g. 1 MB = 1’000 KB = 1’000’000 B, but 1 MiB = 1’024 KiB = 1’048’576 B.

df -h = power of 2    (KiB, MiB, GiB)
df -H = power of 10   (KB, MB, GB)

In the stock Manjaro installation, df is aliased to df -h.

Perfect… df -H makes a lot more sense.
thx

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.