You are not logged in.

#1 2009-08-09 11:51:51

Mac Tzu
Member
From: Melbourne, Australia
Registered: 2009-03-26
Posts: 38
Website

AutoMounting / Udev and HAL

Hey fellow Archers,

Sorry if this is a bit of a Noob Question.

But I am having issues with automounting usb drives that etc. 
I am running eeepc 1000 and everything works fine out of the box.  But I have shown Arch to a friend of mine and we can't gain access to the usb drive with free.desktop permission error.  I have read the wiki and forum posts.  However I have found the are for much older versions of HAL and Udev, and they are contradictory. 

Please if you could help me clarfiy a solutions.  Should Udev handle to mounting and permission rule or should I add HAL policy ?.
If HAL if the best solution could be so kind as to provide a example of Hal policy as my previous attempt to edited HAL has failed.

Kind Regards

Mac Tzu


Remember,

If it is a Placebo You can Believe in it !!!

Offline

#2 2009-08-09 11:54:19

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: AutoMounting / Udev and HAL

Hello
http://wiki.archlinux.org/index.php/HAL permissions polices section.
That may help you wink


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#3 2009-08-14 04:19:38

Mac Tzu
Member
From: Melbourne, Australia
Registered: 2009-03-26
Posts: 38
Website

Re: AutoMounting / Udev and HAL

Great thanks SpeedVin

Could you Show me w copy of your Hal polcy?


Remember,

If it is a Placebo You can Believe in it !!!

Offline

#4 2009-08-14 11:26:26

EVRAMP
Member
From: Czech Republic
Registered: 2008-10-03
Posts: 173
Website

Re: AutoMounting / Udev and HAL

Make sure you are member of storage group and you start your WM with "exec ck-launch-session openbox" in .xinitrc for example (GDM/KDM does this automatically).

Offline

#5 2009-08-14 17:54:55

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: AutoMounting / Udev and HAL

*sigh* whatever happened to the 'old', trusted *nix way?
Why not just manually mount/umount it ?
Why the heck should we copy all windows' mannerisms?

Offline

#6 2009-08-14 18:13:38

cinan
Member
From: Slovakia
Registered: 2008-07-04
Posts: 251
Website

Re: AutoMounting / Udev and HAL

well, it's much easier just to plug-in USB and browse than manually mount it.

Offline

#7 2009-08-14 18:49:07

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: AutoMounting / Udev and HAL

oh?
sudo mount /dev/sdX1 /mnt/usb
sudo umount /mnt/usb

That doesn't look like a lot of work to me - and in addition, you _know_ what you are doing and after doing a 'umount' you _know_ not to pull the thing out until you get the prompt back. I have seen too many broken fs's because people have pulled out the stick before it was ready!

If you look at the postings in this forum - a disproportionate amount deals with automount (and unmount) - it's just not the *nix way!

Last edited by perbh (2009-08-14 18:50:20)

Offline

#8 2009-08-14 20:31:53

IncredibleLaser
Member
From: Germany, NRW
Registered: 2008-07-16
Posts: 158

Re: AutoMounting / Udev and HAL

I disagree with perbh. I wouldn't want to use mount or pmount for every external drive I plug in.

Offline

#9 2009-08-14 20:39:41

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: AutoMounting / Udev and HAL

Mac Tzu wrote:

Great thanks SpeedVin

Could you Show me w copy of your Hal polcy?

No problem smile

  1 <!DOCTYPE busconfig PUBLIC
  2  "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
  3  "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
  4 <busconfig>
  5 
  6   <!-- This configuration file specifies the required security policies
  7        for the HAL to work. -->
  8 
  9   <!-- Only root or user hal can own the HAL service -->
 10   <policy user="hal">
 11     <allow own="org.freedesktop.Hal"/>
 12   </policy>
 13   <policy user="root">
 14     <allow own="org.freedesktop.Hal"/>
 15   </policy>
 16 
 17   <!-- Allow anyone to invoke methods on the Manager and Device interfaces -->
 18   <policy context="default">
 19     <allow send_destination="org.freedesktop.Hal"
 20            send_interface="org.freedesktop.DBus.Introspectable"/>
 21     <allow send_destination="org.freedesktop.Hal"
 22            send_interface="org.freedesktop.DBus.Properties" />
 23 
 24     <allow send_destination="org.freedesktop.Hal"
 25            send_interface="org.freedesktop.Hal.Device"/>
 26     <allow send_destination="org.freedesktop.Hal"
 27            send_interface="org.freedesktop.Hal.Manager"/>
 28 
 29     <allow send_destination="org.freedesktop.Hal"
 30            send_interface="org.freedesktop.Hal.Device.CPUFreq"/>
 31     <allow send_destination="org.freedesktop.Hal"
 32            send_interface="org.freedesktop.Hal.Device.DockStation"/>
 33     <allow send_destination="org.freedesktop.Hal"
 34            send_interface="org.freedesktop.Hal.Device.KillSwitch"/>
 35     <allow send_destination="org.freedesktop.Hal"
 36            send_interface="org.freedesktop.Hal.Device.KeyboardBacklight"/>
 37     <allow send_destination="org.freedesktop.Hal"
 38            send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
 39     <allow send_destination="org.freedesktop.Hal"
 40            send_interface="org.freedesktop.Hal.Device.Leds"/>
 41     <allow send_destination="org.freedesktop.Hal"
 42            send_interface="org.freedesktop.Hal.Device.LightSensor"/>
 43     <allow send_destination="org.freedesktop.Hal"
 44            send_interface="org.freedesktop.Hal.Device.Storage"/>
 45     <allow send_destination="org.freedesktop.Hal"
 46            send_interface="org.freedesktop.Hal.Device.Storage.Removable"/>
 47     <allow send_destination="org.freedesktop.Hal"
 48            send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
 49     <allow send_destination="org.freedesktop.Hal"
 50            send_interface="org.freedesktop.Hal.Device.Volume"/>
 51     <allow send_destination="org.freedesktop.Hal"
 52            send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
 53     <allow send_destination="org.freedesktop.Hal"
 54            send_interface="org.freedesktop.Hal.Device.WakeOnLan"/>
 55 
 56   </policy>
 57 
 58 </busconfig>
 59

Nuber's are from Vim smile


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

Board footer

Powered by FluxBB