Is "df" broken?
I have an external USB drive I use for backups, and I'm preparing to swap it out for a fresh one. It was full, and I'm been cleaning it a bit before the swap. In doing so I've found that
# df -B 1 <mount_point>
That surprises me a little ...
Ubuntu 20.04 LTS
# df --version
df (GNU coreutils) 8.28
@ColinTheMathmo What file system on that drive? If it's an ext* fs, could it be a combo of reserved blocks and fs overhead? The total blocks is definitely raw blocks, not what's available to the fs, just checking on a drive that I have and adding the used/avail up.
@cefiar It's EXT4 ... I'm finding that the Usage number goes up and down exactly as expected. Archive files to a tarball, the "Used" figure goes up. Remove the originals, the "Used" figure goes down.
The "Available" and "Use%" figures remain static at 0 and 100% respectively, even when subtracting or dividing "Used" and "Total" appropriately show that they should not be.
It's as if a "needle" got to the limit of its travel and got stuck there.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!