Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Aug 2008 09:42:15 -0700
From:      "Kevin Oberman" <oberman@es.net>
To:        Fernando Herrero =?ISO-8859-1?Q?Carr=F3n?= <fhcarron@terra.es>
Cc:        freebsd-gnome@freebsd.org
Subject:   Re: Can't unmount external device because gam is watching it 
Message-ID:  <20080806164215.B384845010@ptavv.es.net>
In-Reply-To: Your message of "Wed, 06 Aug 2008 17:06:01 %2B0200." <1218035162.44795.11.camel@nebet.ii.uam.es> 

next in thread | previous in thread | raw e-mail | index | archive | help
--==_Exmh_1218040935_56729P
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

> From: Fernando Herrero =?ISO-8859-1?Q?Carr=F3n?= <fhcarron@terra.es>
> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080806164215.B384845010>