Feargal Reilly <firstname.lastname@example.org> wrote:
> BTW, anybody know what the best method be for double-checking
> df's figures would be? du?
No, du(1) only sees files that have links (i.e. directory
entries). It doesn't see deleted files that occupy space
as long as processes still have them open, which can make
quite a difference. You can use the command "lsof +L1" to
check for such files. If there aren't any on the file
system in question, then the number from du(1) should be
pretty close to the number from df(1).
The df(1) tool just displays the summary records from the
file system. The only safe way to verify those numbers is
to run fsck(8) manually on the file system (possibly twice).
It will fix the summary records if necessary. Then run
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
"To this day, many C programmers believe that 'strong typing'
just means pounding extra hard on the keyboard."
-- Peter van der Linden