Noob boo boo with samba
Tom Huppi
thuppi at huppi.com
Wed Jan 19 20:59:13 PST 2005
On Wed, 19 Jan 2005, Ronny Hippler wrote:
> Well here is a noob sharing his experience. Don't mount a windows share
> in your home dir! Now how do I unmount this shy of rebooting? it just
> keeps giving a device is busy error even from root account. Doh!
Try 'lsof' to see what processes are using what files. I've not
tried it on a windows share, so YMMV, but it's the best tool
(available on FreeBSD which seems to lack 'fuser') that I've found
for other such difficulties in umounting various unix-served
filesystems. Sometimes one might start a new process (i.e., an
xterm) when within a mounted filesystem then even leaving that
filesystem will not be sufficient to allow a umount (in my
experiance at any rate.) Such things can be confusing and
difficult to track down.
'lsof' (combine with 'grep' and 'wc') is also good at determining
that it is 'mozilla' which has opened 10,000 file descriptors over
the last three days too ;)
BTW, 'lsof' is not part of the base system I don't think. In the
ports collection, it's in sysutils/lsof/.
Thanks,
- Tom
More information about the freebsd-newbies
mailing list