> 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 ?
Take into your calculation the amount of reserved blocks of the filesystem. dumpe2fs -h / | grep "Reserved block count" > Cheers > Nick . Alexander _______________________________________________ rhelv5-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rhelv5-list
