Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jun 2010 20:40:18 GMT
From:      bob frazier <bobf@mrp3.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/148244: gnome desktop and HAL prevent umount without '-f'
Message-ID:  <201006292040.o5TKeI00026240@www.freebsd.org>
Resent-Message-ID: <201006292050.o5TKo46f059836@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006292040.o5TKeI00026240>