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

Re: df is reading wrongly



Quoting Patrick Kirk (patrick@kirks.net):
> As part of securing my server, I moved /var and /home to seperate partitions from /  All seems to work but df is giving strange results.  When I type df, I find a partition which I know to be 88 MB to show as 1.7 Gigs.
> 
> Should I worry?  The usage info for the / partition is also 500 MB or so out.

I wouldn't mind seeing how you've mounted these partitions,
i.e. your /etc/fstab file. It's interesting that hda4 and hda5
say the same thing. I suppose the output of [c]fdisk would be
helpful too.

Is it possible that the 500MB extra in / is a deleted file(s) that's
still open, so df shows it in use but du can't see it.

Is it too much of a coincidence that 500MB is about what you've moved
from / to the /home partitions.

> PS - df as follows with hda1 "overstuffed" and hda4 "oversized"
> 
> /dev/hda1             1.9G  714M  1.1G  38% /
> /dev/hda3              15M  1.2M   13M   8% /boot
> /dev/hda4             1.7G  1.2G  471M  72% /home/debian
> /dev/hda5             1.7G  1.2G  471M  72% /home
> /dev/hda9             7.6M   11k  7.2M   0% /home/tele2
> /dev/hda10            387M  281M   86M  76% /var

Cheers,

-- 
Email:  d.wright@open.ac.uk   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.


Reply to: