Novell Home

In SUSE Linux Professional 9.3, the way that devices are mounted can cause problems

Novell Cool Solutions: Trench
By Jon Ware

Digg This - Slashdot This

Posted: 3 May 2005
 

Problem:

In SUSE Linux Professional 9.3 CD/DVD devices are mounted as /media/VOLUME_NAME. This can cause problems for some apps such as Wine which require that the mountpoint used remains constant.

Solution:

Copy the text shown below, and save it as /usr/share/hal/fdi/95userpolicy/cddvd.fdi and ensure that the mountpoints specified (/media/dvd for cd/dvdrom and /media/dvdrecorder for cd/dvd writers) match that shown in /etc/fstab. You'll then need either to reboot, or restart hal for this to take effect.

EXAMPLE: <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->

<deviceinfo version="0.2">
 <device>

 <!-- Mount CD/DVD-rom drives as /media/dvd and CD/DVD Writers as /media/dvdrecorder
      instead of as /media/<<VOLUME_NAME>> -->

  <match key="@info.parent:storage.drive_type" string="cdrom">
     <match key="@info.parent:storage.policy.desired_mount_point" string="cdrom">

       <merge key="volume.policy.desired_mount_point" type="string">dvd/</merge>
     </match>
     <match key="@info.parent:storage.policy.desired_mount_point" string="cdrecorder">
       <merge key="volume.policy.desired_mount_point" type="string">dvdrecorder/</merge>
     </match>

   </match>


 </device>
</deviceinfo>


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell