gnu/141397: gnome desktop prevents umount without '-f'
bobf at mrp3.com
Sat Dec 12 06:10:01 UTC 2009
>Synopsis: gnome desktop prevents umount without '-f'
>Arrival-Date: Sat Dec 12 06:10:01 UTC 2009
>Originator: bob frazier
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
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".
installed port versions:
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
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
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
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'.
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
More information about the freebsd-bugs