| View previous topic :: View next topic |
| Author |
Message |
Theophile Apprentice

Joined: 31 Mar 2004 Posts: 285
|
Posted: Sun Jul 29, 2007 9:00 pm Post subject: [SOLVED] Where do I get HAL policies? |
|
|
gnome-volume-manager is refusing to mount my volumes and no one seems to know why.
I've been looking around and found that my /etc/hal/fdi/policies directory is empty. Should this be the case? If not, where do I get policies from? _________________ Monopedilos
Last edited by Theophile on Tue Jul 31, 2007 1:43 pm; edited 1 time in total |
|
| Back to top |
|
 |
PaulBredbury Watchman


Joined: 14 Jul 2005 Posts: 6609
|
Posted: Sun Jul 29, 2007 9:27 pm Post subject: |
|
|
It's correct for /etc/hal/fdi/policy/ to be empty, if you haven't added any user-defined rules.
See /usr/share/hal/fdi/ for starters.
|
|
| Back to top |
|
 |
Theophile Apprentice

Joined: 31 Mar 2004 Posts: 285
|
Posted: Sun Jul 29, 2007 10:01 pm Post subject: |
|
|
Interesting. Is there a user-defined rule that will mount removable devices? _________________ Monopedilos |
|
| Back to top |
|
 |
sun_cracker Tux's lil' helper


Joined: 18 Apr 2007 Posts: 112 Location: Belgique / Bruxelles / Namur
|
Posted: Tue Jul 31, 2007 10:07 am Post subject: |
|
|
| Theophile wrote: | | Interesting. Is there a user-defined rule that will mount removable devices? |
I use this "rule":
Just create a file 90-user-methods.fdi in /etc/hal/fdi/policy with the following content:
| Quote: | <?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="volume.fsusage" string="filesystem">
<merge key="volume.ignore" type="bool">true</merge>
<match key="@block.storage_device:storage.removable" bool="true">
<merge key="volume.ignore" type="bool">false</merge>
<merge key="storage.policy.should_mount" type="bool">true</merge>
</match>
</match>
</device>
</deviceinfo> |
If you write "true" in the tag="volume.ignore" for the key "volume.fsusage" ===> Hal will not mount hardiscs and will not create icons on desktop (gnome, maybe kde too). But removable storage will be mounted automatically (usb stick, dvd , cd...)
Don't forget to restart Hal :
/etc/rc.d/hal restart
P.S.: sorry for my poor english
Sun |
|
| Back to top |
|
 |
Theophile Apprentice

Joined: 31 Mar 2004 Posts: 285
|
Posted: Tue Jul 31, 2007 1:43 pm Post subject: |
|
|
I actually solved this one pretty easily. Once I looked in /usr/share/hal/fdi/ I found that, apparently, gparted was installed on my system during the huge world update and gparted inserts a hal policy which explicitly disables automounting. All I had to do was delete that policy and things were back to normal.
Thanks! _________________ Monopedilos |
|
| Back to top |
|
 |
|