Feisty/Gnome: unmounting volumes on the desktop doesn't work

Bug #104693 reported by Hoffmann
This bug report is a duplicate of:  Bug #99437: umount: mount disagrees with the fstab. Edit Remove
4
Affects Status Importance Assigned to Milestone
gnome-volume-manager (Ubuntu)
New
Undecided
Unassigned

Bug Description

Since Feisty, Herd 5 (probably since Herd 4, but I can't remember), unmounting ANY volume on the desktop gives me the following error:

"/dev/your-favourite-volume-here mount disagrees with the fstab".

As I found out, this is exactly the same error message when trying to unmount in a shell as non-root user. So, the error message should state something like " Only root wants to mount...". For the desktop it looks like a permission problem? Perhaps udev/hal? I'm using gnome as wm.

Revision history for this message
willz06jw (willz06jw) wrote :

I just installed and I am having the exact same issue. I am using the Feisty beta with the current build.

Revision history for this message
Hoffmann (bubble-fish) wrote :

As far as I can see, this happens _only_ with fixed media. Removable media like cd-roms, dvd, usb sticks etc. can be unmounted with no problems. But it would be nice to be able to unmount some partitions as well.

Revision history for this message
Frederick Reeve (cylix) wrote :

This is the fix. I have been using it for a while, its fine. Though I am running linux the problem is the same. There is one function missing and the function in its place is the wrong one. This bug only affects drives that have an entry in the fstab that starts with "uuid=". The attached patch should be applied to the src-dep of util-linux. I'm not sure but I think that thats even the same for herd. For those of you who want this fix now follow these instructions:

Modify your source.list so you have so the dep-src for the main repository enabled and copy the patch into /tmp. Then run the following commands:

$ sudo apt-get update
$ sudo apt-get install build-essential
$ sudo apt-get build-dep mount
$ cd /tmp
$ apt-get source mount
$ cd util-linux-2.12r
$ ./debian/rules patch
$ patch -Np1 -i ../util-linux_user_mount.patch
$ ./configure
$ make lib
$ make -C mount
$ sudo chown root:root mount/umount
$ sudo chmod 4755 mount/umount
$ sudo mv mount/umount /bin

now you should be able to unmount you drive that was user mounted using a uuid.

Revision history for this message
Frederick Reeve (cylix) wrote :

sry for some reason I was under the impression we were talking about herd the kernel.... Anyway patch is the same. :-)

Revision history for this message
Chris Rossi (chris-archimedeanco) wrote :

This bug is still in Ubuntu Server 8.04. Any chance this patch can get into the distribution?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

Bug watches keep track of this bug in other bug trackers.