gnu/141397: gnome desktop prevents umount without '-f'

bob frazier bobf at mrp3.com
Sat Dec 12 06:10:01 UTC 2009


>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 at 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:


More information about the freebsd-bugs mailing list