Gentoo Archives: gentoo-user

From: Ryan Sims <rwsims@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] "Cannot mount volume" on Gnome 2.16 when inserting CD? [SOLVED]
Date: Fri, 29 Dec 2006 23:39:10
Message-Id: 64e8d2f20612291534j57155f56wb917bb234064bfe0@mail.gmail.com
1 On 12/29/06, Ryan Sims <rwsims@×××××.com> wrote:
2 > On 10/2/06, Alexander Skwar <listen@×××××××××××××××.name> wrote:
3 >
4 > [snip]
5 >
6 > > I've got a /media directory. When I try to manually mount the
7 > > CD using hal and gnome-mount, I get:
8 > >
9 > > alexander@blatt ~ $ gnome-mount --hal-udi=/org/freedesktop/Hal/devices/volume_label_NEW --text --verbose
10 > > gnome-mount 0.4
11 > > ** (gnome-mount:26113): DEBUG: Mounting /org/freedesktop/Hal/devices/volume_label_NEW
12 > > ** (gnome-mount:26113): DEBUG: Mounting /org/freedesktop/Hal/devices/volume_label_NEW with mount_point='NEW', fstype='', num_options=1
13 > > ** (gnome-mount:26113): DEBUG: option='uid=1000'
14 > >
15 > > ** (gnome-mount:26113): WARNING **: Mount failed for /org/freedesktop/Hal/devices/volume_label_NEW
16 > > org.freedesktop.DBus.Error.AccessDenied : A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal")
17 > >
18 > > When I run the gnome-mount command as roót, the CD gets mounted just
19 > > fine.
20 >
21 > Exact same problem here, also a new install, but it's amd64 and I
22 > don't have much keyworded. I checked to be sure, I'm in the plugdev
23 > group. I found a few posts around the web (not gentoo) by googling,
24 > nothing helpful, and apparently nothing in the gentoo forums.
25 >
26 > I see this is a couple months old, is there a solution out there?
27
28 Hate to reply to myself, but here's the solution I found:
29
30 In /etc/dbus-1/system.d/hal.conf, I had this:
31
32 <policy group="plugdev">
33 <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
34 <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
35 <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
36 <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
37 </policy>
38
39 Seems fine. Well, I tried changing "plugdev" to "1003" (the gid of
40 plugdev on my system), restarted hal, and now things are just ducky.
41 Is this a bug, or is there still some configuration weirdness going
42 on?
43
44 This is with hal-0.5.7-r3 dbus-0.62-r2 and gnome-volume-manager-2.15.0-r1
45
46 --
47 Ryan W Sims
48
49 --
50 gentoo-user@g.o mailing list