I'm trying to get my Sandisk Cruzer Micro drive to mount to /media/CruzerMicro, using HAL policies. The drive is formatted regularly, so just using labels doesn't work (besides, I'm trying to learn). Using "hal-device | grep -i cruzer" I got
Code:
storage.model = 'Cruzer Micro' (string)
Here's my policy (/usr/share/hal/fdi/policy/10osvendor/01-cruzer-micro.fdi):
Code:
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="@block.storage_device:storage.model" string="Cruzer Micro">
<merge key="volume.policy.desired_mount_point" type="string">CruzerMicro</merge>
<merge key="volume.policy.mount_option.sync" type="bool">true</merge>
</match>
</device>
</deviceinfo>
The general drive-hotplug-policy seems to be /usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi
- so I figured that whichever comes first takes precedence (?) Therefore "01-cruzer-micro.fdi".
At any rate, it doesn't seem to do anything. I've tried restarting hal before inserting the drive but it still mounts to /media/disk when mounted in thunar.