You are not logged in.

#1 2006-09-28 13:10:51

jardasmid
Member
Registered: 2006-02-10
Posts: 25

Static mount points for cdrom and dvdrom

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

#2 2006-09-28 14:59:43

kamituel
Member
From: Poland
Registered: 2006-09-14
Posts: 47
Website

Re: Static mount points for cdrom and dvdrom

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

#3 2006-09-28 16:52:53

jardasmid
Member
Registered: 2006-02-10
Posts: 25

Re: Static mount points for cdrom and dvdrom

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

Board footer

Powered by FluxBB