Quoting Paul Colquhoun <[EMAIL PROTECTED]>:

On Sat, 16 Aug 2008, Ward Poelmans wrote:
On Sat, Aug 16, 2008 at 07:50,  <[EMAIL PROTECTED]> wrote:
> the difference between du and df is about 640 - 188 = 452 MB.
> and "df" is showing  that my root is full  2.4 times more than "du".
Normal...

Next to the difference due journaling etc, there is one important
difference between du en df:
Hm. Yeah... Maybe. Journaling add -in my experience- about 32MB.

deleted files held open by a running process. du doesn't count these
files, df does.
Yeap.

If there is a file in the /var directory *BEFORE* the /var partition is
mounted onto the directory, then du won't find it, but df will know
about the space it is using.
Yes

But you're all missing rounding errors. If you do:

du -hcs /path/to/some/dir

You'll end up with a different result if you instead do:

du -bcs /path/to/some/dir

Real example:

[EMAIL PROTECTED] ~ $ du -bcs Desktop/
1289720534      Desktop/
1289720534      total

[EMAIL PROTECTED] ~ $ du -hcs Desktop/
1.3G    Desktop/
1.3G    total

If you do the math, 1.3G is more or less 1395864372 bytes; ~110MB in diference and same tool.
Regards,
Norberto

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



Reply via email to