You are not logged in.

#1 2010-02-18 13:05:41

Wintershade
Member
From: Croatia
Registered: 2008-02-18
Posts: 175
Website

[SOLVED] Mounting DVDs under a specific name via HAL?

Hello again.

I'd like to setup HAL to mount all my CDs and DVDs under a certain (always same) name, such as "/media/optical_disc". By default, HAL mounts them like "/media/<volume_label>".
If someone could shed some light on this (and perhaps recommend me some further readings), I'd be most grateful.
Thanks in advance!

Last edited by Wintershade (2010-04-07 20:28:30)


Only the best is good enough.

Offline

#2 2010-02-21 16:04:40

MadTux
Member
Registered: 2009-09-20
Posts: 553

Re: [SOLVED] Mounting DVDs under a specific name via HAL?

Offline

#3 2010-04-07 20:28:17

Wintershade
Member
From: Croatia
Registered: 2008-02-18
Posts: 175
Website

Re: [SOLVED] Mounting DVDs under a specific name via HAL?

Hi everyone... sorry for the delay and for resurrecting the old topic. I've been away for a while, and now I've managed to get what I want.
I've created a new HAL policy file (in /etc/hal/fdi/policy) called 20-disc.fdi, which contains the follwing configuration:

<?xml version="1.0" encoding="UTF-8"?>
 <deviceinfo version="0.2">
  <device>
   <match key="volume.is_disc" bool="true">
    <merge key="volume.label" type="string">disc</merge>
   </match>
  </device>
</deviceinfo>

From now on, every optical disc I insert into my computer will be mounted under /media/disc. Voila, desired effect achieved! smile
Thanks everyone for the help.


Only the best is good enough.

Offline

Board footer

Powered by FluxBB