Silly question regarding "du" and "df".

Michael T. Richter ttmrichter at gmail.com
Fri Jan 26 14:33:10 UTC 2007


On Fri, 2007-26-01 at 15:39 +0200, Marius Gedminas wrote:

> On Fri, Jan 26, 2007 at 05:45:48PM +0800, Michael T. Richter wrote:
> > Being who I am, I also run df and get this:
> > 
> > Filesystem             Size   Used  Avail Use% Mounted on
> > /dev/sda1               79G    38G    38G  50% /media/Repository80GB
> > 
> > Now I cannot for the life of me make the numbers add up.
> 
> That's because by default 5% of disk space in ext3 partitions is
> reserved and not included in the Avail column.  79G * 5% ~= 4G.  38G +
> 38G + 4G = 80G. The 1G difference is just rounding error, run df without
> -h to see the exact block counts.


OK, that makes sense.  It's not exactly the best-documented "makes
sense" thing I've ever seen, but it makes sense.  Thanks (everybody) for
the help.

-- 
Michael T. Richter
Email: ttmrichter at gmail.com, mtr1966 at hotpop.com
MSN: ttmrichter at hotmail.com, mtr1966 at hotmail.com; YIM:
michael_richter_1966; AIM: YanJiahua1966; ICQ: 241960658; Jabber:
mtr1966 at jabber.cn

"To [the Chinese], all other people are barbarians." --The Dalai Lama
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070126/ba105811/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070126/ba105811/attachment.pgp>


More information about the ubuntu-users mailing list