[PLUG] df shows 33G used, but it does not add up with du

Wil Cooley wcooley at nakedape.cc
Mon Jan 9 10:39:57 PST 2006

Also Sprach AthlonRob <athlonrob at axpr.net> on Mon, Jan 09, 2006 at 10:24:43AM PST:
> Eli Stair wrote:
> > Usually when I've seen that, it's due to either sparse files or
> > filesystem corruption.
> Wouldn't sparse files cause things to go the other way?

No, blockless regions in sparse files will not be reported in either du
or df.  Try, for example, to create an empty sparse file and compare the
output of du and df:

dd if=/dev/zero of=test.0 bs=1k count=0 seek=1M

Wil Cooley                                 wcooley at nakedape.cc
Naked Ape Consulting                        http://nakedape.cc
* * * * Linux, UNIX, Networking and Security Solutions * * * *
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.pdxlinux.org/pipermail/plug/attachments/20060109/cf540c18/attachment.sig>

More information about the PLUG mailing list