df is not inaccurate.  It is reporting what the kernel/filesystem tells it.

dumpe2fs | grep "Reserverd block count"

By default, 5% of the filesystem is reserved for root.

CC

On Thu, Nov 4, 2010 at 7:57 PM, Nick Lunt
<[email protected]> 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 ?
>
> Cheers
>
> Nick .
>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus signature
> database 5590 (20101104) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
> _______________________________________________
> rhelv5-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/rhelv5-list
>
>



-- 
RHCE#805007969328369

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

Reply via email to