Error unmounting external hard drive
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Media Applet |
New
|
Undecided
|
Unassigned | ||
gnome-mount |
New
|
Undecided
|
Unassigned | ||
gnome-mount (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
I'm using the media-applet 0.3.2 Ubuntu package, with gnome-mount 0.8-1ubuntu1. When I click to eject an external hard drive (labeled "External") in media-applet, it appears to work properly, however I get the following message:
Cannot unmount the volume 'External'.
Cannot remove directory
The /media/External directory does get removed, however. The following messages are displayed on the console:
mount added :68606E5F606E34
(media-
mount removed : 68606E5F606E344
unable to read content type attributeunable to read content type attribute
I get the exact same error message when I run "gnome-mount -vu -d /dev/sdb1" manuallly.
If I run "gnome-mount -ve -d /dev/sdb1" (eject instead of unmount), I get the following error:
Cannot eject volume
There was an error ejecting the volume or drive.
org.freedesktop
But this time, the partition gets unmounted, but the /media/External directory still exists, and I am not able to re-mount the drive with either media-applet or gnome-mount. Mounting manually (with "mount", as root) still works fine, and once I've mounted it once manually, I can remount it again with gnome-mount, however, if I don't first remove the /media/External directory, it will mount it to /media/External_.
I can reproduce the part where if you "don't first remove the /media/External directory, it will mount it to /media/External_".
This seems to be a permissions problem. gnome-mount uses HAL to mount external mediums. HAL usually mounts to /media/$disklabel. If you manually created /media/External as root (sudo mkdir /media/External) or somehow the permissions of that folder gets changed, then HAL does not have the permission to mount to that directory. Hence using /media/External_.
Perhaps you could try unplugging the external medium, removing that directory (sudo rmdir /media/External) and External_ if it exists, then try plugging the external medium back, and mounting it with gnome-mount.
Mixing the use of gnome-mount and mount may cause permissions problems sometimes.
Hope that helps!