How do I change the mount point path for a USB memory stick?
Barry Scott
barry.scott at onelan.co.uk
Tue Feb 27 02:12:28 PST 2007
Barry Scott wrote:
> I'm using FC4 with hal-0.5.2-2.
>
> I want to change the mount point for USB memory sticks.
> I've managed to change the mount point root but I cannot figure out
> how to change
> the last part of the mount point name.
>
> My mount handling script gets called with:
>
> HALD_ACTION add
> HAL_PROP_BLOCK_DEVICE /dev/sdb1
>
> and see the following entry in fstab:
>
> /dev/sdb1 /data/data/external/UDISK_2_0 vfat
> user,pamconsole,sync,noatime,exec,managed 0 0
>
> Where does the UDISK_2_0 come from and how do I change it?
>
> In /etc/hal/fdi/policy I have:
>
> ------ 10-onelan-storage-policy.fdi -------
> <?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
> <deviceinfo version="0.2">
> <device>
> <match key="info.udi" string="/org/freedesktop/Hal/devices/computer">
> <merge key="storage.policy.default.mount_root"
> type="string">/data/data/external</merge>
> <merge key="storage.policy.default.mount_option.noauto"
> type="bool">false</merge>
> <merge key="storage.policy.default.mount_option.noatime"
> type="bool">true</merge>
> <merge key="storage.policy.default.mount_option.user"
> type="bool">true</merge>
> <merge key="storage.policy.default.mount_option.sync"
> type="bool">true</merge>
> </match>
> </device>
> </deviceinfo>
>
>
> ------- 90-onelan-mount.fdi ------
> <?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
> <deviceinfo version="0.2">
> <device>
> <match key="info.udi" string="/org/freedesktop/Hal/devices/computer">
> <append key="info.callouts.add"
> type="strlist">/usr/local/onelan/ntb/bin/ntb_mount_usb --clean</append>
> </match>
>
> <match key="volume.policy.should_mount" bool="true">
> <match key="@block.storage_device:storage.policy.should_mount"
> bool="true">
> <append key="info.callouts.add"
> type="strlist">/usr/local/onelan/ntb/bin/ntb_mount_usb -v</append>
> <append key="info.callouts.remove"
> type="strlist">/usr/local/onelan/ntb/bin/ntb_mount_usb -v</append>
> </match>
> </match>
>
> <!--
> <match key="storage.policy.should_mount" bool="true">
> <match key="storage.no_partitions_hint" bool="true">
> <append key="info.callouts.add"
> type="strlist">/usr/local/onelan/ntb/bin/ntb_mount_usb -s</append>
> <append key="info.callouts.remove"
> type="strlist">/usr/local/onelan/ntb/bin/ntb_mount_usb -s</append>
> </match>
> </match>
> -->
> </device>
>
> </deviceinfo>
>
> Barry
Have I asked on the right list? I was hoping to get an insight into
where the naming
comes from so that I can control the names.
Barry
More information about the hal
mailing list