From owner-freebsd-newbies@FreeBSD.ORG Thu Jan 20 04:59:13 2005 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36B8C16A4CE for ; Thu, 20 Jan 2005 04:59:13 +0000 (GMT) Received: from nuumen.pair.com (nuumen.pair.com [209.68.1.119]) by mx1.FreeBSD.org (Postfix) with SMTP id B677B43D45 for ; Thu, 20 Jan 2005 04:59:12 +0000 (GMT) (envelope-from thuppi@nuumen.pair.com) Received: (qmail 54564 invoked by uid 55300); 20 Jan 2005 04:59:12 -0000 Date: Wed, 19 Jan 2005 23:59:12 -0500 (EST) From: Tom Huppi X-X-Sender: thuppi@nuumen.pair.com To: Ronny Hippler In-Reply-To: <20050120042757.9A66E43D45@mx1.FreeBSD.org> Message-ID: References: <20050120042757.9A66E43D45@mx1.FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd newbies Subject: Re: Noob boo boo with samba X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2005 04:59:13 -0000 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