File system error

Oliver Fromme olli at lurza.secnetix.de
Thu Apr 1 06:46:00 PST 2004


water B <waterb11 at yahoo.com> wrote:
 > I got a little problem with /usr partition
 >  
 > # df -h
 > Filesystem    Size   Used  Avail Capacity  Mounted on
 > /dev/da0s1a   288M    72M   193M    27%    /
 > /dev/da0s1f    15G    13G   535M    96%    /usr
 > /dev/da0s1e   288M    97M   168M    37%    /var
 > procfs        4.0K   4.0K     0B   100%    /proc
 > # du -h /usr
 > ...
 > 6.4G    /usr
 > I have deleted some files but it does not restore the used disk.
 > Does anybody have an idea?

That happens if there are processes that still hold the
files open which you deleted.  As long as a process is
accessing the file data, the space is not reclaimed by
the file system.

Find the process (or processes) and kill it (or them).
/usr/bin/fstat (or lsof from the ports collection) might
be helpful.

If you prefer a windows solution, you can also simply
reboot.  ;-)

Regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"If you think C++ is not overly complicated, just what is a protected
abstract virtual base pure virtual private destructor, and when was the
last time you needed one?"
        -- Tom Cargil, C++ Journal


More information about the freebsd-stable mailing list