February 13, 2009

find whats causing a busy partition in freebsd

trying to umount an nfs or external disk partition and got “partition busy” ?
use fstat -f to find out what the hold up …

-f      Restrict examination to files open in the same file systems as              the named file arguments, or to the file system containing the              current directory if there are no additional filename arguments.              For example, to find all files open in the file system where the              directory /usr/src resides, type ``fstat -f /usr/src''.