custom mount point for USB flash disk
vitko
vitk0 at seznam.cz
Wed Nov 16 05:52:09 PST 2005
I'd like to enforce custom mounting point for my Apacer HT203 Flash Drive.
I've made up this simple FDI and put it into /usr/share/hal/fdi/95mylocalpolicy:
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<match key="info.bus" string="usb">
<match key="usb.vendor_id" int="0x1005">
<match key="usb.product_id" int="0xb113">
<merge key="usb.product" type="string">FooBarJustToTestMatchWorks</merge>
<merge key="volume.mount_point" type="string">/media/apacerht203</merge>
</match>
</match>
</match>
</device>
</deviceinfo>
I just doesn't work, volume.mount_point remains "/media/usbdisk". I can see
the problem is here
udi = '/org/freedesktop/Hal/devices/block_1267-7D67'
volume.policy.mount_option.quiet = true (bool)
volume.policy.mount_option.iocharset=utf8 = true (bool)
volume.policy.desired_mount_point = 'usbdisk' (string)
volume.policy.mount_filesystem = 'vfat' (string)
...
volume.mount_point = '/media/usbdisk' (string)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
block.device = '/dev/sdc' (string)
block.major = 8 (0x8) (int)
block.minor = 32 (0x20) (int)
block.storage_device = '/org/freedesktop/Hal/devices/block_8_32' (string)
whereas my enforced volume.mount_point shows here
udi = '/org/freedesktop/Hal/devices/usb_usb_device_1005_b113_100_-1_1951084D064E_0'
volume.mount_point = '/media/apacerht203' (string)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
info.udi =
'/org/freedesktop/Hal/devices/usb_usb_device_1005_b113_100_-1_1951084D064E_0' (string)
info.product = 'USB Mass Storage Interface' (string)
...
usb.product_id = 45331 (0xb113) (int)
usb.vendor_id = 4101 (0x1005) (int)
usb.vendor = 'Apacer Technology, Inc.' (string)
usb.product = 'FooBarJustToTestMatchWorks' (string)
...
info.parent = '/org/freedesktop/Hal/devices/usb_device_1005_b113_100_-1_1951084D064E'
(string)
usb.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:02.1/usb2/2-5/2-5:1.0' (string)
linux.sysfs_path_device = '/sys/devices/pci0000:00/0000:00:02.1/usb2/2-5/2-5:1.0' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:02.1/usb2/2-5/2-5:1.0' (string)
info.bus = 'usb' (string)
How do I propagate volume.mount_point down to block device?
I'm running Debian (Sarge), hal version is 0.4.7.
Thanks for any hints.
Vit Kotrla
More information about the hal
mailing list