Date: Wed, 19 Jan 2005 23:59:12 -0500 (EST) From: Tom Huppi <thuppi@huppi.com> To: Ronny Hippler <replies.20.r11roadster@spamgourmet.com> Cc: freebsd newbies <freebsd-newbies@freebsd.org> Subject: Re: Noob boo boo with samba Message-ID: <Pine.BSF.4.58.0501192346170.50418@nuumen.pair.com> In-Reply-To: <20050120042757.9A66E43D45@mx1.FreeBSD.org> References: <20050120042757.9A66E43D45@mx1.FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.58.0501192346170.50418>