LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ivman and label (mount point) How to?? (https://www.linuxquestions.org/questions/linux-software-2/ivman-and-label-mount-point-how-to-618048/)

kaz2100 02-01-2008 06:40 PM

ivman and label (mount point) How to??
 
Hya,

I am trying to set up ivman (Debian lenny, fluxbox).

Almost everything looks great, except for mount point.
USB drive automount is great, but as I have many of them, I want label as mount point, to avoid confusion. (as thunar volman or exo-mount does)

Is there any way to make label as mount point? (/media/myLabel)

So far, I have found:
http://gobo.kundor.org/wiki/HAL_HowTo but it does not work with me.

Happy Penguins!

amenon 02-12-2008 11:01 PM

I tried making modifications in the hal policy file, but didn't have any luck there.

What I finally did was modify ivman's mounting commands in /etc/ivman/IvmConfigBase.xml

I changed the mount command to:

Code:

<ivm:Option name="mountcommand" value="pmount '$hal.block.device$' /media/'$hal.volume.label$'" />
and that works. I also had to add the following lines:

Code:

<!-- Add label if no label exists -->
<match key="volume.label" string="">
  <merge key="volume.label" type="string">usbdisk</merge>
</match>

to my hal policy file (/usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi) under the vfat mounting section. This was because I had a few disks that didn't have any labels.

btw I am running this under Ubuntu Server 7.10

Good luck.


All times are GMT -5. The time now is 02:42 PM.