> -----Original Message-----
> From: [email protected] [mailto:rhelv5-list-
> [email protected]] On Behalf Of Jonathan S Billings
> Sent: 04 November 2010 12:38
> To: Red Hat Enterprise Linux 5 (Tikanga) discussion mailing-list
> Subject: Re: [rhelv5-list] df is inaccurate
> 
> On 11/04/2010 07:57 AM, Nick Lunt wrote:
> > So either df is wrong, I'm blind, or bc can't do take aways ;)
> >
> > Anyone know why df is wildly inaccurate ?
> 
> It has to do with the reserved blocks:
> 
> 
> % dumpe2fs -h /dev/sda3 | egrep 'Reserved block count|Block size'
> dumpe2fs 1.39 (29-May-2006)
> Reserved block count:     935585
> Block size:               4096
> 
> % df -B4096 /
> Filesystem           4K-blocks      Used Available Use% Mounted on
> /dev/sda3             18125330   2651427  14538318  16% /
> 
> % 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'.
> 18125330 - 2651427
> 15473903
> 15473903 - 14538318
> 935585

Aha that must be it then !! 

Thanks everyone for your help, I just thought df was crap ;)

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

Reply via email to