Re: findmnt/df discrepancy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 12, 2014 at 09:29:25AM -0600, Bruce Dubbs wrote:
> I've noticed a discrepancy in percent free between findmnt and df:
> 
> $ df -h|grep /tmp
> /dev/sdb5        9.8G  8.3G  967M  90% /tmp
> $ findmnt --df|grep /tmp
> /dev/sdb5  ext4  9.7G  8.3G  967M  85% /tmp
> 
> Actually, the discrepancy seems to be df as 8.3/9.8 is 84.7%.
> Can anyone here explain the difference?  Should it be submitted to
> coreutils as a bug?

It's the reserved space on the filesystem. On an ext4 FS where the
reserved space is 0%, df and findmnt (mostly) agree:

$ df -h | grep Gluttony
 /dev/sdb2             1.8T  701G     1.1T  39% /mnt/Gluttony

$ findmnt --df | grep Gluttony
 /dev/sdb2     ext4    1.8T  700.1G   1.1T  39% /mnt/Gluttony


--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux