Gentoo Archives: gentoo-user

From: walt <w41ter@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: automounting usb drives [SOLVED]
Date: Sun, 27 Feb 2011 19:20:27
Message-Id: ike824$g87$1@dough.gmane.org
In Reply to: Re: [gentoo-user] Re: automounting usb drives [SOLVED] by luis jure
1 On 02/27/2011 04:54 AM, luis jure wrote:
2
3 > PENDING ISSUE: on thunar (and xfce, the other file manager i occasionally
4 > use) i can eject the drive but no umount it (i mean the ability to umount
5 > the file system but not delete the mount point under /media)
6
7 The auth/policy landscape has changed so quickly in the last few months
8 that I can't keep up, but I can tell you that you might want to play with
9 the command-line tools from consolekit and polkit when root-versus-user
10 problems occur.
11
12 For example, look through the output of pkaction --verbose for this:
13
14 org.freedesktop.udisks.drive-detach:
15 description: Detach a drive
16 message: Authentication is required to detach the drive
17 vendor: The udisks Project
18 vendor_url: http://udisks.freedesktop.org/
19 icon: drive-removable-media
20 implicit any: no
21 implicit inactive: no
22 implicit active: yes
23
24 Look at the last three lines for 'any' 'inactive' and 'active'. What do
25 they mean?
26
27 They refer to your 'console session', which you can list with ck-list-sessions:
28
29 Session1:
30 unix-user = '1001'
31 realname = '(null)'
32 seat = 'Seat1'
33 session-type = ''
34 active = FALSE <====== NOTE
35 x11-display = ''
36 x11-display-device = ''
37 display-device = '/dev/tty1'
38 remote-host-name = ''
39 is-local = TRUE
40 on-since = '2011-02-27T14:05:03.842279Z'
41 login-session-id = '1'
42 idle-since-hint = '2011-02-27T14:05:40.005781Z'
43 Session2:
44 unix-user = '1001'
45 realname = '(null)'
46 seat = 'Seat1'
47 session-type = ''
48 active = TRUE <======= NOTE
49 x11-display = ':0'
50 x11-display-device = '/dev/tty7'
51 display-device = '/dev/tty1'
52 remote-host-name = ''
53 is-local = TRUE <======= NOTE
54 on-since = '2011-02-27T14:05:16.819654Z'
55 login-session-id = '1'
56
57 Session1 is my original login on tty1, from which I typed 'startx'.
58
59 That session is not active because I'm writing this from inside the
60 gnome desktop, i.e. Session2, which *is* active (note the tty7).
61
62 The old defunct policykit also dictated whether a session had to be
63 'local' to do certain things, but that may have vanished, dunno.
64
65 The old policykit came with very simple and understandable tools to
66 set and edit policies, and the defunct gnome-policykit gave you a
67 simple gui frontend so you could tell WTF you were doing.
68
69 Alas, no more, and the new system is virtually opaque. Not well done,
70 IMHO.
71
72 My point is (almost forgot it) that automounting stopped working for
73 many months in gnome because consolekit claimed that my ck-session
74 was *not* active and *not* local even though obviously it was both.
75
76 Some recent update finally fixed that bug, thankfully, but I have
77 no idea which update.