Current-Users archive

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

Re: df(1) reporting wrong size



Jukka Salmi wrote:
Hello,

on a freshly installed NetBSD/i386 system (5.99.11 built from sources as
of about two days ago)  df(1) seems to report a wrong value for the free
disk space for the /var file system (du(1) is correct, though):

$ df -h /var
Filesystem        Size       Used      Avail %Cap Mounted on
/dev/wd0f         241M       139M        90M  60% /var
$ du -xsh /var
3.2M    /var

IIRC a similar problem has been reported recently, but I can't find the
thread in question now.

Any hints?

You don't happen to have very many small files on /var do you?
If I remember right, du reports the actual size of the files, while with df you see how much space have been allocated. They are not the same thing.

Other than that, I can't guess. :-)

        Johnny

--
Johnny Billquist                  || "I'm on a bus
                                  ||  on a psychedelic trip
email: bqt%softjar.se@localhost             ||  Reading murder books
pdp is alive!                     ||  tryin' to stay hip" - B. Idol


Home | Main Index | Thread Index | Old Index