Kernel 2.6.21.5, slackware 12.0
du belongs to coreutils.
coreutils 6.9
Hi:
How can this be?
Code:
semoi@darkstar:~/bin$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 18G 14G 3.3G 81% /
/dev/hda1 20G 9.2G 11G 47% /xp
/dev/hdc 1.6G 1.6G 0 100% /mnt
semoi@darkstar:~/bin$
I don't understand the Use = 81% datum. 14 / 18 = -0.77 < 0.81. If you think its a rounding error,
Code:
semoi@darkstar:~/bin$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda3 18097492 13804204 3373972 81% /
/dev/hda1 20472816 9608416 10864400 47% /xp
/dev/hdc 1670664 1670664 0 100% /mnt
semoi@darkstar:~/bin$
13804204 / 18097492 = ~0.76, still well below 0.81 whereas
9608416 / 20472816 = ~0.47, the right figure. I guess du is right, but what is the cause of the discrepancy?