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
--
Jonathan Billings <[email protected]>
College of Engineering - CAEN - Unix and Linux Support
_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list