It’s a general linux question about the du command. You can find that current processes still hold deleted data (so it’s not available yet), not sure if there can be an issue with the sector size (so with small files, they use at least the size of 1 sector and if they are much smaller, they block more storage than their size).
Hi, thanks for your reply and for contributing.
I had heard about TVs before, but I confess that about hard drives this is the first time I’ve heard them.
When creating and ext2/3/4 filesystem, the amount of reserved blocks for privileged processess is set to 5% as default. The reserved blocks reduce the available block count of df:
Hello, your theory makes a lot of sense. At this point the space has already been released in the unit, but next time I will observe this detail.
Thanks for the contribution!
Also, for drive manufacturers, k=1000, M=10^6, G=10^9 etc. This makes their drives look larger compared to the the other method which is k=1024, M=1024^2 and G=1024^3.
One of these can be known as Ki, Mi and Gi but I can never remember which.
You need to check which the df and du commands uses.
[edit]
You need to use the -H switch with df to get values in SI units (1000, 1,000,000 etc), or --si with du. This would then compare better with the manufacturers’ claims.
[/edit]