Static mount points in opensuse 10.2
I want to configure hal to mount to a static mount point. I've tried doing it the way that it is done in 10.1 (via a file mountpoints.fdi in /usr/share/hal/fdi/policy/95userpolicy/) but that doesn't seem to work. All my searches have come up empty this far. If anyone knows how to do this, an answer would be greatly appreciated since dynamic mount points really irritate me.
|
I decided to delete the file I created (mountpoints.fdi) and try it again. This time it worked like it was supposed to. There might have been a typo in the original file to prevent it from working, although I didn't pick up on one. At least it works now...
|
sgmeunier - what did you do exactly? I am curious as to how I can get /dev/sda1 to automount to /media/filevault every single time - it's an external hard drive that never leaves this machine.
What about autofs? I was looking at /etc/auto.master and auto.misc but couldn't get anything to work. Thanks in advance! Bill |
could you post a copy of the file you created?
Quote:
Could you post your copy, I am having trouble as well and I suspect it is where I enter the mount in the merge key /usr/share/hal/fdi/policy/95userpolicy/mountpoints.fdi <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- --> <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</media/cdrom> <merge key="volume.policy.desired_mount_point" type="string">cdrom</media/cdrom> </match> </match> </device> </deviceinfo> ********************* Procedure As root, create a file with a file name of your liking and the ending .fdi in in /usr/share/hal/fdi/95userpolicy/. (For 10.0 this is /usr/share/hal/fdi/policy/95userpolicy/.) Example: mountpoints.fdi Edit the file with an editor of your choice, e.g. for a CD-ROM drive: <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- --> <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">cdrom</merge> </match> </match> </device> </deviceinfo> Adapt the following lines to your system values: <match key="block.device" string="/dev/hdc"> -> Replace /dev/hdc with the address of your CD-ROM drive. <merge key="volume.policy.desired_mount_point" type="string">cdrom</merge> -> Enter the mount point you desire. After customizing the file, execute the following command as root: rchal restart Thanks in advance joe |
Problem solved for 10.2
Hi everybody,
I think I found the problem, or rather the two problems:
Code:
<?xml version="1.0" encoding="UTF-8"?> Cheers! :cool: |
nice work inigo, thanks
|
All times are GMT -5. The time now is 09:39 AM. |