du and df don't agree

Stephen Clark sclark46 at earthlink.net
Mon Nov 10 08:01:04 PST 2008


Why would du show 630k used by /tmp while df show 161M used
by /tmp?


# du -sh /tmp
630K    /tmp
# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad0s1a     94M     41M     45M    47%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/ad0s1e    193M    161M     17M    91%    /tmp
... remaining fs info removed

# uname -a
FreeBSD 6.1-STABLE FreeBSD 6.1-STABLE

I have run fstat /tmp and can't find any files that are using
the space that df is claiming as being used.

-- 

"They that give up essential liberty to obtain temporary safety,
deserve neither liberty nor safety."  (Ben Franklin)

"The course of history shows that as a government grows, liberty
decreases."  (Thomas Jefferson)




More information about the freebsd-stable mailing list