Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Where do I get HAL policies?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Theophile
Apprentice
Apprentice


Joined: 31 Mar 2004
Posts: 285

PostPosted: Sun Jul 29, 2007 9:00 pm    Post subject: [SOLVED] Where do I get HAL policies? Reply with quote

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
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 6609

PostPosted: Sun Jul 29, 2007 9:27 pm    Post subject: Reply with quote

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.
Code:
equery files hal
Back to top
View user's profile Send private message
Theophile
Apprentice
Apprentice


Joined: 31 Mar 2004
Posts: 285

PostPosted: Sun Jul 29, 2007 10:01 pm    Post subject: Reply with quote

Interesting. Is there a user-defined rule that will mount removable devices?
_________________
Monopedilos
Back to top
View user's profile Send private message
sun_cracker
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2007
Posts: 112
Location: Belgique / Bruxelles / Namur

PostPosted: Tue Jul 31, 2007 10:07 am    Post subject: Reply with quote

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 :D
Sun
Back to top
View user's profile Send private message
Theophile
Apprentice
Apprentice


Joined: 31 Mar 2004
Posts: 285

PostPosted: Tue Jul 31, 2007 1:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum