custom mount point for USB flash disk

Andrey Borzenkov arvidjaar at mail.ru
Wed Nov 23 10:05:21 PST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 23 November 2005 16:37, vitko wrote:
> Pozsar Balazs wrote:
> > On Wed, Nov 16, 2005 at 02:52:09PM +0100, vitko wrote:
> >> I'd like to enforce custom mounting point for my Apacer HT203 Flash
> >> Drive.
> >
> > You should modify the key volume.policy.desired_mount_point, not
> > volume.mount_point.
>
> Ok, I tried
>

You have to set it for volume; in your example it is set for completely wrong 
object. 

- -andrey

>
> $ cat /usr/share/hal/fdi/50user/apacer_ht203.fdi
> <?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.policy.desired_mount_point"
> type="string">/media/apacerht203</merge>
>        </match>
>      </match>
>    </device>
> </deviceinfo>
>
>
> Now I'm getting following in lshal output:
>
>
> ....
> udi =
> '/org/freedesktop/Hal/devices/usb_usb_device_1005_b113_100_-1_1951084D064E_
>0' volume.policy.desired_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.interface.subclass = 6  (0x6)  (int)
>    usb.interface.protocol = 80  (0x50)  (int)
>    usb.interface.number = 0  (0x0)  (int)
>    usb.interface.class = 8  (0x8)  (int)
>    usb.configuration_value = 1  (0x1)  (int)
>    usb.device_class = 0  (0x0)  (int)
>    usb.device_protocol = 0  (0x0)  (int)
>    usb.device_subclass = 0  (0x0)  (int)
>    usb.max_power = 200  (0xc8)  (int)
>    usb.num_configurations = 1  (0x1)  (int)
>    usb.num_interfaces = 1  (0x1)  (int)
>    usb.device_revision_bcd = 256  (0x100)  (int)
>    usb.is_self_powered = false  (bool)
>    usb.can_wake_up = false  (bool)
>    usb.serial = '1951084D064E'  (string)
>    usb.product_id = 45331  (0xb113)  (int)
>    usb.vendor_id = 4101  (0x1005)  (int)
>    usb.vendor = 'Apacer Technology, Inc.'  (string)
>    usb.product = 'FooBarJustToTestMatchWorks'  (string)
>    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>    usb.bus_number = 2  (0x2)  (int)
>    usb.port_number = 4  (0x4)  (int)
>    usb.level_number = 2  (0x2)  (int)
>    usb.linux.device_number = 12  (0xc)  (int)
>    usb.linux.parent_number = 12  (0xc)  (int)
>    usb.num_ports = 0  (0x0)  (int)
>    usb.speed_bcd = 294936  (0x48018)  (int)
>    usb.version_bcd = 512  (0x200)  (int)
>    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-8/2-8.4/2-8.4:1.0' (string)
>    linux.sysfs_path_device =
> '/sys/devices/pci0000:00/0000:00:02.1/usb2/2-8/2-8.4/2-8.4:1.0'  (string)
>    linux.sysfs_path =
> '/sys/devices/pci0000:00/0000:00:02.1/usb2/2-8/2-8.4/2-8.4:1.0' (string)
>    info.bus = 'usb'  (string)
>
>
> but mount point for the device is still /media/usbdisk.
>
> Any other idea how to set custom mount point for USB flash (or any other)
> drive?
>
>
> Vit
> _______________________________________________
> hal mailing list
> hal at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/hal
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDhK9iR6LMutpd94wRAkKXAJ9Igdhu5ofXT+6waJ2hYMmBGg4IBgCfeNQI
bQg7UAKIgXTC98O1S8dpvek=
=qjVr
-----END PGP SIGNATURE-----


More information about the hal mailing list