From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jun 29 20:50:05 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08A6B1065675 for ; Tue, 29 Jun 2010 20:50:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CD8FB8FC1C for ; Tue, 29 Jun 2010 20:50:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o5TKo4rs059837 for ; Tue, 29 Jun 2010 20:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o5TKo46f059836; Tue, 29 Jun 2010 20:50:04 GMT (envelope-from gnats) Resent-Date: Tue, 29 Jun 2010 20:50:04 GMT Resent-Message-Id: <201006292050.o5TKo46f059836@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, bob frazier Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ADDE51065673 for ; Tue, 29 Jun 2010 20:40:18 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 851038FC13 for ; Tue, 29 Jun 2010 20:40:18 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o5TKeINn026253 for ; Tue, 29 Jun 2010 20:40:18 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o5TKeI00026240; Tue, 29 Jun 2010 20:40:18 GMT (envelope-from nobody) Message-Id: <201006292040.o5TKeI00026240@www.freebsd.org> Date: Tue, 29 Jun 2010 20:40:18 GMT From: bob frazier To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/148244: gnome desktop and HAL prevent umount without '-f' X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2010 20:50:05 -0000 >Number: 148244 >Category: ports >Synopsis: gnome desktop and HAL prevent umount without '-f' >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jun 29 20:50:04 UTC 2010 >Closed-Date: >Last-Modified: >Originator: bob frazier >Release: 8.1 pre-release (RELENG_8) >Organization: SFT Inc. >Environment: FreeBSD hack.SFT.local 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #1: Fri Jun 25 18:21:02 PDT 2010 root@hack.SFT.local:/usr/obj/usr/src/sys/GENERIC amd64 >Description: this is an extension of previous problem report 141397 (now closed due to revision change most likely). Prior to that, PR 136435. this problem has been in existence since the previous gnome version. with gnome desktop running, unmounting a removable device is not possible without specifying the '-f' flag under specific conditions. Previous PR 136435, re-submitted due to inability to reproduce problem and cancelation of previous PR. Conditions for bug reproduction: 1. auto-mount of removable devices disabled 2. mount point is directly off of '/' (such as '/ramstick') 3. mount point isn't "/mnt" (which appears to be unaffected) so, mounting a USB device to "/media/ramstick" (either via fstab entry or by specifying the path on the 'mount' command line) will generally NOT reproduce this problem. But mounting the SAME device to "/ramstick" will. Symptoms are the same when executing the above commands from an ssh session while the gnome desktop is running. After reproducing the problem and unmounting via 'umount -f', unplugging the USB memory stick causes a new behavior in THIS version of gnome. A dialog box with the following message appears: Cannot mount volume Error org.freedesktop.Hal.Device.UnknownError. (details) An unknown error occurred >How-To-Repeat: while running the latest gnome desktop, perform the following: 1. insert a usb disk device and note device node (example /dev/da0s1) 2. From gnome-terminal (as root) create the /schtuff directory and mount using mount -t msdosfs /dev/da0s1 /schtuff 3. unmount the same device via umount /schtuff Note error message "umount: unmount of /schtuff failed: Device busy" 4. use 'mount' to list all mounted devices and note /dev/da0s1 still mounted 5. unmount forcibly using "umount -f /schtuff" 6. create the directory "/media/schtuff" and re-attempt 2 using "/media/schtuff" as the mount point 7. unmount the device using umount /media/schtuff and note successful unmount of the device without '-f' 8. Repeat the same sequence as 6 and 7 with "/mnt" and note that it, too, is successful unmounting the device without '-f'. >Fix: only workaround is to either use '/mnt' or a mount point that is in the '/media' directory for removable devices. this also applies to entries placed in 'fstab'. >Release-Note: >Audit-Trail: >Unformatted: