You are not logged in.
Hi all,
I would like to have static mount points for my CDRW and DVDRW drives. I use gnome-volume-manager for automounting. CDs are mounted to /media/<VOLUME_LABEL>, but i would like them to be mounted to /media/dvdrom or /media/cdrom (depending on the drive).
I tried to create hal policy file in /usr/share/hal/fdi/policy/20thirdparty/ named 10dvddrivestaticmountdir.fdi with this content:
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<!-- optical drives -->
<match key="block.device" string="/dev/hdc">
<match key="volume.is_disc" bool="true">
<merge key="volume.policy.should_mount" type="bool">true</merge>
<merge key="volume.policy.desired_mount_point" type="string">dvdrom</merge>
</match>
</match>
<match key="block.device" string="/dev/hdd">
<match key="volume.is_disc" bool="true">
<merge key="volume.policy.should_mount" type="bool">true</merge>
<merge key="volume.policy.desired_mount_point" type="string">cdrom</merge>
</match>
</match>
</device>
</deviceinfo>
but with no success.
Offline
I didn't ever specified my own policy to hal, but I found that on google:
http://linuxfromscratch.org/pipermail/b … 12785.html
And there is this fragment:
User defined customizations
should be in files contained in the /etc/hal/fdi/policy directories.
Maybe this is the problem?
I tried, I failed, no matter. Try again, fail again, fail better.
Offline
Even if I move the file to /etc/hal/fdi/policy, it doesn't work.
Update:
Now I tried this:
<merge key="volume.label" type="string">dvdrom</merge>
Then cd mounts to /media/dvdrom, but cdrom label is wrong.
Offline