Monday, 21 July 2008

ugly gnome setting hits bug

When plugging an usb hard drive into ubuntu 8.04 pc, it is automatically mounted under "/media/something". Right click the mounted media, you can access the properties of the media. Click "Volume" tab, unfold "setting" option, the users seem to be able to setup their own mount parameters such as "mount point", "file system", etc. Naturally, I tried setup my own "mount point" such as "/mnt/name". Then when I plugged out/in media again, the automounter stops working. It gives you an error message: "Cannot mount volume. Unable to mount volume..., mount_point cannot contain the following characters: newline, G_DIR_SEPERATOR (usually /)"!

It turns out that you cannot put full path like "/mnt/mymntpoint" into this field (which is by all means what people think so). You can only put one name in this field for example: "foo", then the gnome-mount will use that name with prefix "/media/" and mount your media under "/media/foo" which is quite annoying for Linux user. The only way to get rid of this error is to use "gconf-editor" under your own login (without sudo). Changing the key "/system/storage/volumes/_org_freedesktop_Hal_devices_voume_uuid_*/mount_point" to "foo" will be fine again. Also you can delete all keys and values of that field, so gnome-mount can use default name and mount points.

The bug is reported here:
https://bugs.launchpad.net/ubuntu/+source/gnome-mount/+bug/107668

At least underneath the "setting" option of "Volume" tab, gnome should give some detailed message or validate the user input before letting gnome-mount messed up!

No comments: