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

Re: df and du disagree



> 
> Hi all,
> 
> df shows my main partiton to have 1.1 Gigs of data
> and du -x shows it to have about 650 MB.
> 
> I think du is correct.
> 
> df reads
> 
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/hda1             1.9G  1.1G  750M  60% /
> /dev/hda3              15M  1.2M   13M   8% /boot
> /dev/hda5             1.7G  1.2G  471M  72% /home
> /dev/hda10            387M  281M   86M  77% /var
> /dev/hda6             3.2G  2.6G  479M  85% /samba
> 
> 
> If anyone knows what causes this and whether or not
> I need to worry about it I'd be very grateful.

Could it be that your main partition has data in directories that have
other file systems mounted on them?  E.g., is there data in /home on
/dev/ha1 that becomes invisible to du because /dev/hda5 is mounted on
it?

HTH,
Eric

-- 
 E.L. Meijer (tgakem@chem.tue.nl)
 Eindhoven Univ. of Technology
 Lab. for Catalysis and Inorg. Chem. (SKA)


Reply to: