Package: hal Version: 0.5.9-3 Severity: normal I attach a usb disk formatted in ntfs and gnome can't mount it. I'm using ntfs-3g and I've added options to put a uid= and gid= parameter to the mount command with gconf. An error comes up with
Cannot mount volume. Error org.freedesktop.Hal.Device.PermissionDeniedByPolicy. hal-storage-removable-mount-all-options refused uid 1000 [uid 1000 is indeed the id of the user that's logged in] I've added options to /usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi to allow these for both ntfs and ntfs-3g <!-- allow these mount options for ntfs-3g --> <match key="volume.fstype" string="ntfs-3g"> <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux"> <append key="volume.mount.valid_options" type="strlist">uid=</append> <append key="volume.mount.valid_options" type="strlist">gid=</append> <append key="volume.mount.valid_options" type="strlist">umask=</append> <append key="volume.mount.valid_options" type="strlist">locale=</append> <append key="volume.mount.valid_options" type="strlist">utf8</append> </match> <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="FreeBSD"> <append key="volume.mount.valid_options" type="strlist">-u=</append> <append key="volume.mount.valid_options" type="strlist">-g=</append> <append key="volume.mount.valid_options" type="strlist">-m=</append> <append key="volume.mount.valid_options" type="strlist">-a</append> <append key="volume.mount.valid_options" type="strlist">-i</append> <append key="volume.mount.valid_options" type="strlist">-C=</append> <append key="volume.mount.valid_options" type="strlist">-W=</append> </match> </match> The strange thing is that when I check with lshal I get the following: udi = '/org/freedesktop/Hal/devices/volume_uuid_2504992676347A09' block.device = '/dev/sde1' (string) block.is_volume = true (bool) block.major = 8 (0x8) (int) block.minor = 65 (0x41) (int) block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_ST916082_1A' (string) info.capabilities = {'volume', 'block'} (string list) info.category = 'volume' (string) info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list) info.parent = '/org/freedesktop/Hal/devices/storage_serial_ST916082_1A' (string) info.product = 'Volume (ntfs)' (string) info.udi = '/org/freedesktop/Hal/devices/volume_uuid_2504992676347A09' (string) linux.hotplug_type = 3 (0x3) (int) linux.sysfs_path = '/sys/block/sde/sde1' (string) org.freedesktop.Hal.Device.Volume.method_argnames = {'mount_point fstype extra_options', 'extra_options', 'extra_options'} (string list) org.freedesktop.Hal.Device.Volume.method_execpaths = {'hal-storage-mount', 'hal-storage-unmount', 'hal-storage-eject'} (string list) org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount', 'Eject'} (string list) org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount', 'Eject'} (string list) org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as', 'as'} (string list) storage.model = '' (string) volume.block_size = 512 (0x200) (int) volume.fstype = 'ntfs' (string) volume.fsusage = 'filesystem' (string) volume.fsversion = '3.1' (string) volume.ignore = false (bool) volume.is_disc = false (bool) volume.is_mounted = false (bool) volume.is_mounted_read_only = false (bool) volume.is_partition = true (bool) volume.label = '' (string) volume.linux.is_device_mapper = false (bool) volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'uid=', 'gid=', 'umask=', 'locale=', 'utf8'} (string list) volume.mount_point = '' (string) volume.num_blocks = 312576642 (0x12a18a82) (int) volume.partition.flags = {} (string list) volume.partition.label = '' (string) volume.partition.media_size = 160041885696 (0x25433d6000) (uint64) volume.partition.number = 1 (0x1) (int) volume.partition.scheme = 'mbr' (string) volume.partition.start = 32256 (0x7e00) (uint64) volume.partition.type = '0x07' (string) volume.partition.uuid = '' (string) volume.size = 160039240704 (0x2543150400) (uint64) volume.unmount.valid_options = {'lazy'} (string list) volume.uuid = '2504992676347A09' (string) which seems to indicate that uid= is a valid mount option. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.18-4-k7 (SMP w/1 CPU core) Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15) Shell: /bin/sh linked to /bin/bash Versions of packages hal depends on: ii adduser 3.102 Add and remove users and groups ii dbus 1.0.2-5 simple interprocess messaging syst ii hal-info 20070516-1 Hardware Abstraction Layer - fdi f ii libc6 2.5-9+b1 GNU C Library: Shared libraries ii libdbus-1-3 1.0.2-5 simple interprocess messaging syst ii libdbus-glib-1-2 0.73-2 simple interprocess messaging syst ii libexpat1 1.95.8-3.4 XML parsing C library - runtime li ii libglib2.0-0 2.12.12-1 The GLib library of C routines ii libhal-storage1 0.5.9-3 Hardware Abstraction Layer - share ii libhal1 0.5.9-3 Hardware Abstraction Layer - share ii libusb-0.1-4 2:0.1.12-7 userspace USB programming library ii libvolume-id0 0.105-4 libvolume_id shared library ii lsb-base 3.1-23.1 Linux Standard Base 3.1 init scrip ii pciutils 1:2.2.4-1 Linux PCI Utilities ii udev 0.105-4 /dev/ and hotplug management daemo ii usbutils 0.72-8 Linux USB utilities Versions of packages hal recommends: ii eject 2.1.5-2 ejects CDs and operates CD-Changer -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]