From owner-freebsd-gnome@FreeBSD.ORG Sun Feb 21 17:43:00 2010 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 240E71065676 for ; Sun, 21 Feb 2010 17:43:00 +0000 (UTC) (envelope-from oberman@es.net) Received: from mailgw.es.net (mail3.es.net [IPv6:2001:400:4c01::2]) by mx1.freebsd.org (Postfix) with ESMTP id EB6C48FC25 for ; Sun, 21 Feb 2010 17:42:59 +0000 (UTC) Received: from ptavv.es.net (ptavv.es.net [IPv6:2001:400:910::29]) by mailgw.es.net (8.14.3/8.14.3) with ESMTP id o1LHgvk1029693 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 21 Feb 2010 09:42:58 -0800 Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id D02E91CC0E; Sun, 21 Feb 2010 09:42:57 -0800 (PST) To: Joe Marcus Clarke In-reply-to: Your message of "Sat, 20 Feb 2010 13:57:52 EST." <1266692272.98965.43.camel@shumai.marcuscom.com> Date: Sun, 21 Feb 2010 09:42:57 -0800 From: "Kevin Oberman" Message-Id: <20100221174257.D02E91CC0E@ptavv.es.net> X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-02-21_04:2010-02-06, 2010-02-21, 2010-02-20 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1002210172 Cc: gnome@freebsd.org Subject: Re: Problems with gnome-mount and UFS volumes 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: Sun, 21 Feb 2010 17:43:00 -0000 > From: Joe Marcus Clarke > Date: Sat, 20 Feb 2010 13:57:52 -0500 > > On Tue, 2010-02-16 at 09:36 -0800, Kevin Oberman wrote: > > > From: Joe Marcus Clarke > > > Date: Tue, 16 Feb 2010 02:04:02 -0500 > > > > > > On Mon, 2010-02-08 at 15:56 -0800, Kevin Oberman wrote: > > > > I use a UFS formatted USB disk for my VirtualBox container. When I plug > > > > it in, gnome-mount mounts it fine, but I can never unmount it. It > > > > unmounts fine, but remounts again immediately. No errors (and I would not > > > > expect any). I remember when this was a problem for MSDOSFS disks, but > > > > some magic was done to prevent this. It does not seem to work for UFS, > > > > though. > > > > > > > > Is there a reasonable way to prevent this from happening? I'd really like > > > > t be able to unplug this disk when I shut down the VirtualBox container. > > > > > > > > Running the latest versions of all of the gnome ports and hald. > > > > > > > > I would normally attach lshal output, but, since everything runs cleanly > > > > and without error, I don't know that it is needed. If so, let me know. > > > > > > How is the device remounted? That is, when the device gets remounted, > > > what does the output of mount(8) look like? > > > > Here is the sequence of events I see: > > > > 1. Plug in disk > > 2. HAL reports the error "org.freedesktop.Hal.UnknownError. An unknown > > error occurred" I get two pop-ups with this, si I assume it is failing > > twice. > > 2a. The device is mounted. (I assume this is a problem with trying to > > mount the multiple different instances of the device in /dev, /dev/ufs, > > and /dev/ufsid). > > 3. mount(8) shows: > > /dev/ufs/WindowsVBd on /media/WindowsVB (ufs, local,nosuid, soft-updates) > > 4. Request umount of device > > 5. Device unmounts correctly > > 6. Device immediately re-mounts as in 2 and 2a, including errors > > 7. mount now shows: > > /dev/ufs/WindowsVBd on /media/WindowsVB_ (ufs, local, nosuid, soft-updates) > > > > The only difference is the '_' added to the mount point as the prior > > mount point was not deleted when the disk was unmounted. > > > > The things I wonder about is confusion due to the three /dev entries, > > two of which start with '/dev/ufs' and the 'd' appended to the /dev/ufs > > name due to the fact that it is the 'd' partition of the slice. > > Use the attached script to watch devd events when you insert, mount, and > unmount this volume. Post the results. Filtered out all of the CREATE and DESTROY messages from apm0. Plugged in the drive: !system=DEVFS subsystem=CDEV type=CREATE cdev=ufs/WindowsVB !system=DEVFS subsystem=CDEV type=CREATE cdev=ufsid/4aa57672516741c2d !system=DEVFS subsystem=CDEV type=CREATE cdev=ufs/WindowsVBd !system=DEVFS subsystem=CDEV type=DESTROY cdev=ufs/WindowsVB !system=DEVFS subsystem=CDEV type=DESTROY cdev=da0s1d !system=DEVFS subsystem=CDEV type=DESTROY cdev=ufs/WindowsVBd Drive now mounted as: /dev/ufsid/4aa57672516741c2d 37838604 22514286 12297230 65% /media/WindowsVB > gnome-mount -u --block --verbose -d /dev/ufsid/4aa57672516741c2d gnome-mount 0.8 ** (gnome-mount:8739): DEBUG: Unmounting /org/freedesktop/Hal/devices/volume_label_WindowsVB ** (gnome-mount:8739): DEBUG: Setting up 750ms timer for Flushing Cache dialog ** (gnome-mount:8739): DEBUG: in unmount_done : user_data = 0x0 ** Message: Unmount failed for /org/freedesktop/Hal/devices/volume_label_WindowsVB: org.freedesktop.Hal.Device.UnknownError : An unknown error occured Exit 1 !system=DEVFS subsystem=CDEV type=CREATE cdev=da0s1d !system=DEVFS subsystem=CDEV type=CREATE cdev=ufs/WindowsVB !system=DEVFS subsystem=CDEV type=DESTROY cdev=da0s1d Drive now mounted as: /dev/ufs/WindowsVB 37838604 22514286 12297230 65% /media/WindowsVB_ > gnome-mount -u --block --verbose -d /dev/ufs/WindowsVB gnome-mount 0.8 ** (gnome-mount:8764): DEBUG: Unmounting /org/freedesktop/Hal/devices/volume_label_WindowsVB ** (gnome-mount:8764): DEBUG: Setting up 750ms timer for Flushing Cache dialog ** (gnome-mount:8764): DEBUG: in unmount_done : user_data = 0x0 ** Message: Unmount failed for /org/freedesktop/Hal/devices/volume_label_WindowsVB: org.freedesktop.Hal.Device.UnknownError : An unknown error occured Exit 1 !system=DEVFS subsystem=CDEV type=CREATE cdev=da0s1d !system=DEVFS subsystem=CDEV type=DESTROY cdev=da0s1d Drive now mounted as: /dev/ufs/WindowsVB 37838604 22514286 12297230 65% /media/WindowsVB__ Oddly, I can't use the Unmount menu option to unmount today. I have no idea why. It sends out: Unable to unmount WindowsVB__ umount: unmount of /media/WindowsVB__ failed: Operation not permitted This is different from the normal case where I was receiving the "An unknown error occured". I don't know what might be causing this behavior change or why the CLI invocation of gnome-mount "works" while the menu one does nothing. Thanks for looking at this and let me know if I can provide more data. Got to go restart gnome now, as I need to unplug the drive and go register. (I'm at the North American Network Operators Group meeting in Austin and the hotel net is crawling!) -- 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