From owner-freebsd-gnome@FreeBSD.ORG Wed Aug 6 16:53:13 2008 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 478721065672 for ; Wed, 6 Aug 2008 16:53:13 +0000 (UTC) (envelope-from oberman@es.net) Received: from postal1.es.net (postal4.es.net [198.124.252.66]) by mx1.freebsd.org (Postfix) with ESMTP id EAEE18FC20 for ; Wed, 6 Aug 2008 16:53:12 +0000 (UTC) (envelope-from oberman@es.net) Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by postal4.es.net (Postal Node 4) with ESMTP (SSL) id MYW36416; Wed, 06 Aug 2008 09:42:16 -0700 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id B384845010; Wed, 6 Aug 2008 09:42:15 -0700 (PDT) To: Fernando Herrero =?ISO-8859-1?Q?Carr=F3n?= In-Reply-To: Your message of "Wed, 06 Aug 2008 17:06:01 +0200." <1218035162.44795.11.camel@nebet.ii.uam.es> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1218040935_56729P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 06 Aug 2008 09:42:15 -0700 From: "Kevin Oberman" Message-Id: <20080806164215.B384845010@ptavv.es.net> Cc: freebsd-gnome@freebsd.org Subject: Re: Can't unmount external device because gam is watching it X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Aug 2008 16:53:13 -0000 --==_Exmh_1218040935_56729P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > From: Fernando Herrero =?ISO-8859-1?Q?Carr=F3n?= > Date: Wed, 06 Aug 2008 17:06:01 +0200 > Sender: owner-freebsd-gnome@freebsd.org > > Hi, > > I have an external drive formatted with ufs2. When I try to unmount it > through nautilus (computer window), I get the following error: > > Cannot unmount /media/disk-3: device busy. > > Doing > > $ fstat | grep disk > > I get the following: > > *** gam_server 44650 1120 /media/disk-3 19241986 drwx------ 512 r > > Is there anything I am missing? Looks like the volume manager should > tell gam to stop watching that directory but is failing to do so. > > > uname -a: FreeBSD **** 7.0-STABLE FreeBSD 7.0-STABLE #11: Wed May 7 > 16:01:04 CEST 2008 ****:/usr/obj/usr/src/sys/**** i386 > > gnome version: 2.22.3 > GNOME nautilus 2.22.5.1 > > > > Any hints greatly appreciated. I've had the same sort of problems and I know a few things can trigger it. 1. Any shells with a CWD on the volume? 2. Any suspended or active processes (or dead/zombies) started with a CWD on the volume? 3. Any nested mounts? The last is speculation from when I had a file backed md pseudo-volumes mounted. It was weird, but what I was doing was weird. A GELI encrypted UFS disk. It had two file-backed md device of 2 GB each on it. All were mounted with the second MD at a mount point under the first. I could alway unmount the second of the two MD volumes, but the first was always busy and always it was gam-server. If I did not mount the second (nested) MD volume, there was no problem. Yes, I said it was weird and I did it for dumb reasons and don't do it any more. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 --==_Exmh_1218040935_56729P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Exmh version 2.5 06/03/2002 iD8DBQFImdRnkn3rs5h7N1ERAjr5AKCHIvJQa1MXVjT/LrsJ1/dgWZVDewCfbkR3 6m5oeJIvrErmz8c1Hm9RYmE= =lJl+ -----END PGP SIGNATURE----- --==_Exmh_1218040935_56729P--