The option 'usefree' is not allowed

Bug #152596 reported by Ohad Lutzky
4
Affects Status Importance Assigned to Milestone
hal (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: gnome-mount

Upon trying to mount a USB key, (...after I figured gnome-mount was being used instead of pmount, and that one needs to set --text and --no-gui on it to get --verbose to work...), I get this:

$ /usr/bin/gnome-mount -t -v -n --hal-udi=/org/freedesktop/Hal/devices/volume_uuid_46B7_08D5
gnome-mount 0.6
** (gnome-mount:13273): DEBUG: Mounting /org/freedesktop/Hal/devices/volume_uuid_46B7_08D5
** (gnome-mount:13273): DEBUG: read default option 'shortname=mixed' from gconf strlist key /system/storage/default_options/vfat/mount_options
** (gnome-mount:13273): DEBUG: read default option 'uid=' from gconf strlist key /system/storage/default_options/vfat/mount_options
** (gnome-mount:13273): DEBUG: read default option 'utf8' from gconf strlist key /system/storage/default_options/vfat/mount_options
** (gnome-mount:13273): DEBUG: read default option 'umask=077' from gconf strlist key /system/storage/default_options/vfat/mount_options
** (gnome-mount:13273): DEBUG: read default option 'exec' from gconf strlist key /system/storage/default_options/vfat/mount_options
** (gnome-mount:13273): DEBUG: read default option 'usefree' from gconf strlist key /system/storage/default_options/vfat/mount_options
** (gnome-mount:13273): DEBUG: Mounting /org/freedesktop/Hal/devices/volume_uuid_46B7_08D5 with mount_point='lutzky-usb', fstype='', num_options=6
** (gnome-mount:13273): DEBUG: option='shortname=mixed'
** (gnome-mount:13273): DEBUG: option='uid=1000'
** (gnome-mount:13273): DEBUG: option='utf8'
** (gnome-mount:13273): DEBUG: option='umask=077'
** (gnome-mount:13273): DEBUG: option='exec'
** (gnome-mount:13273): DEBUG: option='usefree'

** (gnome-mount:13273): WARNING **: Mount failed for /org/freedesktop/Hal/devices/volume_uuid_46B7_08D5
org.freedesktop.Hal.Device.Volume.InvalidMountOption : The option 'usefree' is not allowed for uid=1000

This box is an up-to-date gutsy machine installed from the Beta CD (not RC1), mounting the DOK with pmount works, mounting it on an RC1 box works, so this may be an issue for upgraders. How to fix?

Revision history for this message
Christian Reis (kiko) wrote :

This is fixed in 0.5.9.1-6ubuntu5, but if you are upgrading it requires you remove the /usr/share/hal/fdi directory first (or removing it and reinstalling). This latter fact is also alluded to in bug 130490. I'm attaching a tarball of the original fdi directory that still lists the usefree option.

Revision history for this message
Christian Reis (kiko) wrote :

Also for the record:

kiko@gasolinux:/usr/share/hal/fdi-old$ grep -r usefree *
policy/10osvendor/20-storage-methods.fdi: <append key="volume.mount.valid_options" type="strlist">usefree</append>

Revision history for this message
Martin Pitt (pitti) wrote :

Hal allows this option in gutsy final. Can you please get me the output of

  find /etc/hal/fdi/ -type f

? It might be possible that some old configuration shadowed the definition in /usr/share/hal/fdi.

Changed in gnome-mount:
status: New → Incomplete
Revision history for this message
Christian Reis (kiko) wrote : Re: [Bug 152596] Re: The option 'usefree' is not allowed

On Tue, Nov 27, 2007 at 01:19:06PM -0000, Martin Pitt wrote:
> find /etc/hal/fdi/ -type f

/etc/hal/fdi/policy/preferences.fdi
/etc/hal/fdi/preferences.fdi.bak

Changed in hal:
status: Incomplete → Confirmed
Revision history for this message
dino99 (9d9) wrote :
Changed in hal (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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