From owner-freebsd-questions@FreeBSD.ORG Thu Feb 12 07:34:24 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D525106567A for ; Thu, 12 Feb 2009 07:34:24 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 1CF538FC17 for ; Thu, 12 Feb 2009 07:34:23 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-196-52-176.dynamic.qsc.de [92.196.52.176]) by mx02.qsc.de (Postfix) with ESMTP id 0285119B7F89; Thu, 12 Feb 2009 08:34:16 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n1C7YBmd001373; Thu, 12 Feb 2009 08:34:11 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Thu, 12 Feb 2009 08:34:11 +0100 From: Polytropon To: Tim Judd Message-Id: <20090212083411.bbde5802.freebsd@edvax.de> In-Reply-To: <4993CB0A.7090809@gmail.com> References: <20090212062505.ca66b93e.freebsd@edvax.de> <4993CB0A.7090809@gmail.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: Determining process preventing umount of busy partition X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Feb 2009 07:34:24 -0000 First of all, I checked both lsof's and fstat's output: NOTHING seems to have a file open in the /usr partition. Very strange. Of course, I've tried the copies of both tools in /root/bin so they don't cause any access on /usr theirselves. On Thu, 12 Feb 2009 00:08:58 -0700, Tim Judd wrote: > Most commonly for me is because my $PWD (or CWD) is in the filesystem i > intend to umount I've checked this: In SUM, $CWD was /, and root's $HOME is /root on the / partition. Users' home directories are on /home which is separated from /usr (and can be unmounted without problems). At no time, a $CWD was on /usr partition. > so as a habit now, i move myself to the root partition (when logged in > as root) via the following, and assuming I want to umount /usr > > > # umount /usr > umount: unmount of /usr failed: Device busy > # cd > # umount /usr > > > cd, with no arguments, move you to ~ (aka $HOME) Which would be /root in case of SUM. As I said, very strange... -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...