You are not logged in.

#1 2008-12-01 07:10:42

shazeal
Member
From: New Zealand
Registered: 2007-06-05
Posts: 341

Hal automount cdrom/dvd not working.

Im a bit of a nub with HAL, I normally just install it and it works, and I rarely use dvd/cds for anything other than burning off some files.

Anyway, I put in a DVD and thunar spits out

Failed to mount DVD, org.freedesktop.hal.storage.mount-removable no <-- (action, result).

I thought maybe it was just thunar as I am using the git version, so I installed pcmanfm, same deal, it just spits out some random errors.

So I do the obvious and check groups, yup Im in optical/storage and so is hal. There are no logged errors anywhere, so Im guessing its the PolicyKit?

Packages installed.

dbus 1.2.4-1
dbus-core 1.2.4-1
dbus-glib 0.76-1
dbus-python 0.83.0-2
hal 0.5.11-7
hal-info 0.20081022-1
policykit 0.9-7

Any ideas on what might be causing hal to deny mounting the removable media? Ive googled/wikied/seached and cant find anything related.

Offline

#2 2008-12-01 07:14:30

shazeal
Member
From: New Zealand
Registered: 2007-06-05
Posts: 341

Re: Hal automount cdrom/dvd not working.

Ok, false alarm.

 downgrading package hal (0.5.11-7 => 0.5.11-4)

Fixes it, hal from testing spazzing out by the looks.

Offline

#3 2008-12-01 07:20:14

shazeal
Member
From: New Zealand
Registered: 2007-06-05
Posts: 341

Re: Hal automount cdrom/dvd not working.

Diff of 0.5.11-4 vs 0.5.11-7 roll

--- hal.conf    2008-12-01 20:17:39.000000000 +1300
+++ /etc/dbus-1/system.d/hal.conf       2008-12-01 05:51:24.000000000 +1300
@@ -37,27 +37,9 @@
           receive_sender="org.freedesktop.Hal"/>
   </policy>
 
-  <!-- Default policy for the exported interfaces -->
+  <!-- Default policy for the exported interfaces; if PolicyKit is not used
+       for access control you will need to modify this -->
   <policy context="default">
-    <deny send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
-    <deny send_interface="org.freedesktop.Hal.Device.VideoAdapterPM"/>
-    <deny send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
-    <deny send_interface="org.freedesktop.Hal.Device.Volume"/>
-    <deny send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
-  </policy>
-
-  <policy group="power">
-    <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
-    <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
-  </policy>
-
-  <policy group="storage">
-    <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
-    <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
-  </policy>
-
-  <!-- You can change this to a more suitable user, or make per-group -->
-  <policy user="0">
     <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
     <allow send_interface="org.freedesktop.Hal.Device.VideoAdapterPM"/>
     <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>

Offline

#4 2008-12-01 18:36:20

szym
Member
Registered: 2007-11-16
Posts: 14

Re: Hal automount cdrom/dvd not working.

Same here. Can't mount USB drives, SD cards, or even hard drives. Interestingly, CDs work fine.

Offline

#5 2008-12-01 18:52:09

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Hal automount cdrom/dvd not working.


1000

Offline

#6 2008-12-09 22:14:43

jamtat
Member
Registered: 2008-03-13
Posts: 229

Re: Hal automount cdrom/dvd not working.

I have this same problem. Applies to all insertable media I've tried, from USB flash drives to CD's/DVD's. I have hal 0.5.11-4, btw. This started to happen after a recent pacman -Syu. Prior to that auto-mounting was working just fine. Suggestions on how to fix it?

James

Offline

#7 2008-12-09 23:27:22

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Hal automount cdrom/dvd not working.

I posted this solution in the bug report mentioned above, but I'll post it again here...  This solution work if you start x using xinitrc/startx:
This is exactly what I had to do in order for permissions to work correctly using hal/policykit:

1) Add this to /etc/pam.d/login

session   optional  pam_ck_connector.so

2) Prefix all session started from xinitrc with "ck-launch-session"; so my openbox .xinitrc looks like this, for example:

exec ck-launch-session openbox-session

3) Restart hal/log out fully and log back in (or just restart to be 100% sure)

Permissions should work fine without making any changes to PolicyKit.conf.

Offline

#8 2008-12-23 16:12:18

ST.x
Member
From: Sydney, Australia
Registered: 2008-01-25
Posts: 363
Website

Re: Hal automount cdrom/dvd not working.

fwojciec wrote:

I posted this solution in the bug report mentioned above, but I'll post it again here...  This solution work if you start x using xinitrc/startx:
This is exactly what I had to do in order for permissions to work correctly using hal/policykit:

1) Add this to /etc/pam.d/login

session   optional  pam_ck_connector.so

2) Prefix all session started from xinitrc with "ck-launch-session"; so my openbox .xinitrc looks like this, for example:

exec ck-launch-session openbox-session

3) Restart hal/log out fully and log back in (or just restart to be 100% sure)

Permissions should work fine without making any changes to PolicyKit.conf.

Thanks that works. Im using hal 0.5.11-7 from testing.

Offline

#9 2009-02-16 11:45:19

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: Hal automount cdrom/dvd not working.

Thanks fwojciec!

It worked for me as well.


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#10 2009-02-16 11:47:16

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: Hal automount cdrom/dvd not working.

Seems like this line in /etc/pam.d/login isn't even needed! wink But I think it's not bad to have it.

Offline

#11 2009-02-16 13:50:05

Rokixz
Member
From: Šiauliai, Lithuania
Registered: 2007-04-21
Posts: 251
Website

Re: Hal automount cdrom/dvd not working.

fwojciec you p0wn3d smile Everything's working now smile


http://ispconfig.lt - ISPConfig 3 based hosting. Coming Soon!

Offline

#12 2009-03-17 11:02:35

newgargamel
Member
From: PL, CZ
Registered: 2005-08-28
Posts: 156

Re: Hal automount cdrom/dvd not working.

but what about kdm users? how to apply it to kdm?
thanks in advance!

Offline

#13 2009-03-22 16:33:14

Slack
Member
From: Chile
Registered: 2008-10-27
Posts: 52

Re: Hal automount cdrom/dvd not working.

Thanks fwojciec, now all removable devices works fines smile


Excuse my poor english

Offline

#14 2009-03-22 22:17:25

ras0ir
Member
From: Ankara/Turkey
Registered: 2008-06-20
Posts: 65
Website

Re: Hal automount cdrom/dvd not working.

newgargamel wrote:

but what about kdm users? how to apply it to kdm?
thanks in advance!

KDM (and GDM) can automatically run ck-launch-session,  you dont need to do anything extra.

Offline

#15 2009-10-01 08:27:45

Godofgrunts
Member
Registered: 2008-11-14
Posts: 43

Re: Hal automount cdrom/dvd not working.

Hate to revive an old thread, but I've tried this method and it's not working for me.

I'm using Slim and Openbox

Using
hal 0.5.13-2
dbus 1.2.16-1
pcmanfm 0.5.1-2

Offline

#16 2010-03-14 06:39:46

Mustard
Member
From: Noblesville, Indiana
Registered: 2010-03-02
Posts: 39
Website

Re: Hal automount cdrom/dvd not working.

fwojciec wrote:

I posted this solution in the bug report mentioned above, but I'll post it again here...  This solution work if you start x using xinitrc/startx:
This is exactly what I had to do in order for permissions to work correctly using hal/policykit:

1) Add this to /etc/pam.d/login

session   optional  pam_ck_connector.so

2) Prefix all session started from xinitrc with "ck-launch-session"; so my openbox .xinitrc looks like this, for example:

exec ck-launch-session openbox-session

3) Restart hal/log out fully and log back in (or just restart to be 100% sure)

Permissions should work fine without making any changes to PolicyKit.conf.

The above worked for me.  Many thanks!!

Offline

#17 2010-03-18 22:31:58

SaVVa
Member
Registered: 2010-03-18
Posts: 6

Re: Hal automount cdrom/dvd not working.

session   optional  pam_ck_connector.so

worked for me fine!  thanks a lot
ps
compiz-standalone + pcmanfm + cairo-dock

Offline

#18 2010-05-03 20:24:03

hseu
Member
From: London, UK
Registered: 2009-03-15
Posts: 26

Re: Hal automount cdrom/dvd not working.

fwojciec wrote:

I posted this solution in the bug report mentioned above, but I'll post it again here...  This solution work if you start x using xinitrc/startx:
This is exactly what I had to do in order for permissions to work correctly using hal/policykit:

1) Add this to /etc/pam.d/login

session   optional  pam_ck_connector.so

2) Prefix all session started from xinitrc with "ck-launch-session"; so my openbox .xinitrc looks like this, for example:

exec ck-launch-session openbox-session

3) Restart hal/log out fully and log back in (or just restart to be 100% sure)

Permissions should work fine without making any changes to PolicyKit.conf.

Perfect! Thank you very much big_smile!


Vad sa du?

Offline

Board footer

Powered by FluxBB