From owner-freebsd-gnome@FreeBSD.ORG Thu Jun 26 03:58:22 2008 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D01121065676 for ; Thu, 26 Jun 2008 03:58:22 +0000 (UTC) (envelope-from chris@vindaloo.com) Received: from corellia.vindaloo.com (corellia.vindaloo.com [64.51.148.100]) by mx1.freebsd.org (Postfix) with ESMTP id 9B38C8FC1D for ; Thu, 26 Jun 2008 03:58:22 +0000 (UTC) (envelope-from chris@vindaloo.com) Received: from kessel.vindaloo.com (kessel.vindaloo.com [172.24.145.71]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by corellia.vindaloo.com (Postfix) with ESMTP id 548055D92; Wed, 25 Jun 2008 23:27:19 -0400 (EDT) From: Christopher Sean Hilton To: Kevin Oberman In-Reply-To: <20080625201521.299CD4500E@ptavv.es.net> References: <20080625201521.299CD4500E@ptavv.es.net> Message-Id: <43EE2290-5D9C-4F0B-99BB-1B051D93738C@vindaloo.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v924) Date: Wed, 25 Jun 2008 23:27:18 -0400 X-Mailer: Apple Mail (2.924) Cc: FreeBSD GNOME Users Subject: Re: Unable to umount removable media: device busy 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: Thu, 26 Jun 2008 03:58:22 -0000 On Jun 25, 2008, at 4:15 PM, Kevin Oberman wrote: > > I've had that problem since the dawn of HAL. gam_server tends to > keep it > open. If I wait a long time after the last access to the device, I > think > gam gives up on monitoring it, but that may link to other things > like the > number of directories it monitors. > > Wish there was some way to tell gam to just let go of a device/ > directory > wot eh unmount would always work. After a little reading I'm guessing that gamin and gam_server are attempts to rewrite fam. Googling for gam_server brings up countless pages on it's misbehaviour with regard to CPU usage (gam_server is eating up 40% of my cpu and the like). Is there any way to combine Hal, geom and the automounter into a more robust solution? E.g. I fdisk and disklabel my USB stick with a Native FreeBSD filesystem. Then I use tunefs -L "myusbstick" /dev/da0s1a to label the filesystem for geom. Now when I plug in the USB stick I get an entry in /dev/ufs/myusbstick. Now I configure amd with a map like this: /default type:=program;\ mount:="/usr/sbin/mount mount /dev/ufs/${key} ${fs}";\ unmount:="/usr/sbin/umount umount ${fs}"; * fs:=${autodir}/${key}; In case you are interested you use a program mount because amd never times out a ufs mount. Command to mount the pendrive: ls -l //