From owner-freebsd-bugs@FreeBSD.ORG Sat Dec 12 06:10:01 2009 Return-Path: Delivered-To: freebsd-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 C03891065676 for ; Sat, 12 Dec 2009 06:10:01 +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 818198FC1B for ; Sat, 12 Dec 2009 06:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nBC6A13n087033 for ; Sat, 12 Dec 2009 06:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nBC6A1Yx087032; Sat, 12 Dec 2009 06:10:01 GMT (envelope-from gnats) Resent-Date: Sat, 12 Dec 2009 06:10:01 GMT Resent-Message-Id: <200912120610.nBC6A1Yx087032@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-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 B4D1D106566C for ; Sat, 12 Dec 2009 06:07:50 +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 A37448FC1A for ; Sat, 12 Dec 2009 06:07:50 +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 nBC67odo070613 for ; Sat, 12 Dec 2009 06:07:50 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id nBC67oUF070612; Sat, 12 Dec 2009 06:07:50 GMT (envelope-from nobody) Message-Id: <200912120607.nBC67oUF070612@www.freebsd.org> Date: Sat, 12 Dec 2009 06:07:50 GMT From: bob frazier To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: gnu/141397: gnome desktop prevents umount without '-f' X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Dec 2009 06:10:01 -0000 >Number: 141397 >Category: gnu >Synopsis: gnome desktop prevents umount without '-f' >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Dec 12 06:10:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: bob frazier >Release: 7.2-STABLE >Organization: SFT Inc. >Environment: FreeBSD BSDSilver.SFT.local 7.2-STABLE FreeBSD 7.2-STABLE #2: Wed Sep 30 15:35:18 PDT 2009 bobf@BSDSilver.SFT.local:/usr/obj/usr/src/sys/GENERIC amd64 >Description: 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. WORKAROUND: specify a mount point that has more than one directory in it, such as "/media/ramstick" rather than "/ramstick". Additional information installed port versions: gnome2-2.26.3 xorg-7.4_2 hal-0.5.11_26 dbus-1.2.4.6_1 capture of typical problem reproduction BSDSilver/# mount -t msdosfs /dev/da0s1 /mnt BSDSilver/# umount /mnt BSDSilver/# mount -t msdosfs /dev/da0s1 /schtuff BSDSilver/# umount /schtuff umount: unmount of /schtuff failed: Device busy BSDSilver/# umount -f /schtuff BSDSilver/# mount -t msdosfs /dev/da0s1 /media/ramstick BSDSilver/# umount /media/ramstick >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: workaround: use a directory that is not directly off of '/' as the mount point, or use '/mnt'. This also applies to mount points listed in /etc/fstab >Release-Note: >Audit-Trail: >Unformatted: