Re: Noob boo boo with samba

Tom Huppi <[email protected]>
Newsgroups gmane.os.freebsd.newbies
Message-ID <[email protected]>


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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.