[CentOS] du vs df size difference

Ryan Pugatch rpug at tripadvisor.com
Wed Sep 30 22:30:08 UTC 2009



Luciano Rocha wrote:

> Do this:
> mount /dev/xvda3 /mnt
> du -hc /mnt
> 
> And see if you can find the other 12GB.
> 
> I usually do:
> du -mc --max-depth 2 /mnt | sort -n
> 
> Though I've recently learned:
> du -hc --max-depth 2 /mnt | sort --human-readable or some such, but that
> requires a very recent coreutils installation.
> 


That's interesting.. du is showing the same amount as df when I do this. 
  I wonder why..

Ryan



More information about the CentOS mailing list