Nick Lunt wrote:
Hi folks

every now and then I seem to get a flurry of users asking me "why is
'df' inaccurate?".
I've never really understood why though, so anyone know ?

Eg:

$ df -klP /
Filesystem                1024-blocks      Used      Available
Capacity Mounted on
/dev/mapper/VG00-LVol00   4031680          2204200   1622680      58%
/

$ bc
bc 1.06
Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
4031680 - 2204200
1827480

So either df is wrong, I'm blind, or bc can't do take aways ;)

Anyone know why df is wildly inaccurate ?

Ext[234] reserve 5% (by default) of the space for root-only use - see the '-m' option in the mkfs.ext[234] and tune[24]fs man pages

The difference between 1827480 and 1622680 above is about 5% of 4031680

James Pearson

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to