FS#70587 - Gnome 40 is showing wrong disk space
Attached to Project:
Arch Linux
Opened by Haruka (Haruka) - Monday, 26 April 2021, 03:24 GMT
Last edited by Jan Alexander Steffens (heftig) - Tuesday, 08 June 2021, 10:43 GMT
Opened by Haruka (Haruka) - Monday, 26 April 2021, 03:24 GMT
Last edited by Jan Alexander Steffens (heftig) - Tuesday, 08 June 2021, 10:43 GMT
|
Details
Description:
I recently downloaded Gnome 40.1 and now the nautilus file manager and gnome disks is showing the wrong disk space. Additional info: 1. gnome-shell _version: 40.1 2. GNOME Nautalis _version: 40 3. gnome-disk-utility 40.0 UDisks 2.9.2 (built against 2.9.2) Steps to reproduce: Use df -h to get your actual disk space and now go to nautilus, right-click and select properties or open gnome disks gnome-disks |
This task depends upon
Closed by Jan Alexander Steffens (heftig)
Tuesday, 08 June 2021, 10:43 GMT
Reason for closing: Not a bug
Tuesday, 08 June 2021, 10:43 GMT
Reason for closing: Not a bug
Please note that the system was running while I was gathering this data, which might cause small differences between tool runs on partition A (which was mounted as root), but doesn't explain differences in the order of gigabytes.
gnome-disk-utility and gparted show you the raw size of the partition. I don't know what gparted does to calculate "used" and "free".
df's Size comes from the filesystem, which is usually less than the partition size.
df's Size does not equal Used plus Available; there's a portion missing. That's because the filesystem reports two "free" values:
One "real" and one "for unprivileged users". "Used" is Size minus the former, while "Available" shows the latter.
df -h and --si round all values up.
baobab shows you the same size as df.
gnome-disk-utility and baobab show you the "real" free space, including space reserved for privileged users.
df --block-size 1 will show you the sizes in bytes.
df -h uses power-of-2-based units, so 1 G / GiB is 1073741824 bytes.
df --si uses power-of-10-based units, so 1 G / GB is 1000000000 bytes.
512110190592 bytes are 512.11 GB and 476.94 GiB.
gnome-disk-utility and baobab use power-of-10-based units.