Gentoo Archives: gentoo-user

From: Alexander Kapshuk <alexander.kapshuk@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] re: automounting removable drives
Date: Sat, 23 Aug 2014 14:17:43
Message-Id: 53F8A26D.4070007@gmail.com
In Reply to: Re: [gentoo-user] re: automounting removable drives by Samuli Suominen
1 On 10/08/2013 09:21 PM, Samuli Suominen wrote:
2 > futhermore authorization from polkit/consolekit must be working, so
3 > you must see 'active = TRUE' line when you run `ck-list-sessions` in your
4 > Xfce's Terminal as a normal user, see this thread (first post of it):
5 >
6 > http://forums.gentoo.org/viewtopic-t-858965-start-0.html
7 >
8 > and like said, xfce4-mount-plugin is irrelevant, and `mount` command
9 > shouldn't be used at all for udisks maintained removable devices,
10 > instead `udisksctl mount` should be used as a normal user if you
11 > really want to mount from commandline
12
13 I followed the instructions given above to set up for my removable
14 drives to automount on my laptop and desktop machines. I got it to work
15 flawlessly on my laptop, but not on the desktop. What I seem to be
16 having trouble figuring out is why my DVDs won't get automounted if I
17 eject a DVD and then load it again. The DVDs only seem to get
18 automounted when I first boot my system. I've checked the system logs,
19 compared the recommended settings given at the gentoo forum link above
20 against the settings on my laptop. Still didn't find anything amiss.
21
22 I little help would be appreciated.
23
24 Here's some info that might prove handy.
25
26 dmesg output:
27 [ 5.076608] ata5.00: ATAPI: Optiarc DVD RW AD-5200A, 1.01, max UDMA/66
28 [ 5.082537] ata5.00: configured for UDMA/66
29 [ 5.085298] scsi 4:0:0:0: CD-ROM Optiarc DVD RW AD-5200A
30 1.01 PQ: 0 ANSI: 5
31 [ 5.087417] sr0: scsi3-mmc drive: 94x/94x writer cd/rw xa/form2 cdda tray
32 [ 5.087421] cdrom: Uniform CD-ROM driver Revision: 3.20
33 [ 5.087668] sr 4:0:0:0: Attached scsi CD-ROM sr0
34 [ 5.087886] sr 4:0:0:0: Attached scsi generic sg1 type 5
35
36 udisksctl status
37 MODEL REVISION SERIAL DEVICE
38 --------------------------------------------------------------------------
39 ST3320613AS SD11 9SZ08MMB sda
40 Optiarc DVD RW AD-5200A 1.01 Optiarc_DVD_RW_AD-5200A sr0
41
42 /var/log/messages showing the udisks activities when I unmounted the DVD
43 that got mounted at boot time.
44 Aug 23 16:32:00 localhost kernel: [24817.787649] UDF-fs: INFO Mounting
45 volume 'Adventures of T', timestamp 2012/12/17 20:58 (10b4)
46 Aug 23 16:32:00 localhost udisksd[3035]: Mounted /dev/sr0 at
47 /run/media/sasha/ADVENTURES OF TINTIN on behalf of uid 1000
48 Aug 23 16:32:07 localhost udisksd[3035]: Cleaning up mount point
49 /run/media/sasha/ADVENTURES OF TINTIN (device 11:0 is not mounted)
50 Aug 23 16:32:07 localhost udisksd[3035]: Unmounted /dev/sr0 on behalf of
51 uid 1000