Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How do I eject an audio CD inside Gnome?
Date: Sun, 29 May 2011 21:36:48
Message-Id: 201105292334.34020.alan.mckinnon@gmail.com
In Reply to: Re: [gentoo-user] How do I eject an audio CD inside Gnome? by Alan Mackenzie
1 Apparently, though unproven, at 23:20 on Sunday 29 May 2011, Alan Mackenzie
2 did opine thusly:
3
4 > Hi, Alan.
5 >
6 > On Sun, May 29, 2011 at 10:58:39PM +0200, Alan McKinnon wrote:
7 > > Apparently, though unproven, at 22:49 on Sunday 29 May 2011, Alan
8 > > Mackenzie
9 > >
10 > > did opine thusly:
11 > > > Hi, Gentoo.
12 > > >
13 > > > I've now managed to play CDs in Gnome, primarily by adding myself to
14 > > > the cdrom group. I do wish all these restrictions, enforced by group
15 > > > membership, could be switched off.
16 > > >
17 > > > Having played a CD, I discover there's no way to eject it; the physical
18 > > > button on the drive is inactive until I exit from Gnome, which is
19 > > > clearly suboptimal.
20 > > >
21 > > > However, if I start Gnome as root, I can eject a CD trouble freely.
22 > > > But running as root is also suboptimal.
23 > > >
24 > > > So, I thought, maybe this "feature" is another pesky group restriction.
25 > > > So I tried adding myself to group "disk", then to group "cdrw", all to
26 > > > no avail. I still couldn't eject the disk.
27 > >
28 > > With a CD in the drive and gnome running, please post the output of
29 > >
30 > > mount
31
32 Well that didn't work too well - they're not listed. Obviously gnome doesn't
33 use mount/mtab/fstab to do it's mounting thing. Time for Neil's plan B
34
35 eject -v
36
37 for comparison, do it as a user and then as root
38
39
40
41
42 >
43 > root@acm ~ # mount
44 > rootfs on / type rootfs (rw)
45 > /dev/root on / type ext2 (rw,noatime,errors=continue)
46 > proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
47 > rc-svcdir on /lib64/rc/init.d type tmpfs
48 > (rw,nosuid,nodev,noexec,relatime,size=1024k,mode=755) sysfs on /sys type
49 > sysfs (rw,nosuid,nodev,noexec,relatime)
50 > debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
51 > udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755)
52 > devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
53 > shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
54 > /dev/mapper/vg-usr on /usr type ext3 (rw,noatime,commit=0)
55 > /dev/mapper/vg-usrportage on /usr/portage type ext2 (rw,noatime)
56 > /dev/mapper/vg-usrportagedistfiles on /usr/portage/distfiles type ext2
57 > (rw,noatime) /dev/mapper/vg-usrsrc on /usr/src type ext3
58 > (rw,noatime,commit=0)
59 > /dev/mapper/vg-home on /home type ext3 (rw,noatime,commit=0)
60 > /dev/mapper/vg-opt on /opt type ext3 (rw,noatime,commit=0)
61 > /dev/mapper/vg-var on /var type ext3 (rw,noatime,commit=0)
62 > /dev/mapper/vg-varspoolmail on /var/spool/mail type ext3
63 > (rw,noatime,commit=0) /dev/mapper/vg-varspoolnews on /var/spool/news type
64 > reiserfs (rw,noatime) /dev/mapper/vg-iso on /iso type ext2 (rw,noatime)
65 > /dev/mapper/vg-old on /old type ext2 (rw,noatime)
66 > /dev/mapper/vg-vg--backup on /backup type ext2 (rw,noatime)
67 > usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85)
68 > binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc
69 > (rw,noexec,nosuid,nodev)
70 >
71 > > cat /etc/mtab
72 >
73 > root@acm ~ # cat /etc/mtab
74 > rootfs / rootfs rw 0 0
75 > /dev/root / ext2 rw,noatime,errors=continue 0 0
76 > proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
77 > rc-svcdir /lib64/rc/init.d tmpfs
78 > rw,nosuid,nodev,noexec,relatime,size=1024k,mode=755 0 0 sysfs /sys sysfs
79 > rw,nosuid,nodev,noexec,relatime 0 0
80 > debugfs /sys/kernel/debug debugfs rw,nosuid,nodev,noexec,relatime 0 0
81 > udev /dev tmpfs rw,nosuid,relatime,size=10240k,mode=755 0 0
82 > devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
83 > shm /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0
84 > /dev/mapper/vg-usr /usr ext3 rw,noatime,commit=0 0 0
85 > /dev/mapper/vg-usrportage /usr/portage ext2 rw,noatime 0 0
86 > /dev/mapper/vg-usrportagedistfiles /usr/portage/distfiles ext2 rw,noatime 0
87 > 0 /dev/mapper/vg-usrsrc /usr/src ext3 rw,noatime,commit=0 0 0
88 > /dev/mapper/vg-home /home ext3 rw,noatime,commit=0 0 0
89 > /dev/mapper/vg-opt /opt ext3 rw,noatime,commit=0 0 0
90 > /dev/mapper/vg-var /var ext3 rw,noatime,commit=0 0 0
91 > /dev/mapper/vg-varspoolmail /var/spool/mail ext3 rw,noatime,commit=0 0 0
92 > /dev/mapper/vg-varspoolnews /var/spool/news reiserfs rw,noatime 0 0
93 > /dev/mapper/vg-iso /iso ext2 rw,noatime 0 0
94 > /dev/mapper/vg-old /old ext2 rw,noatime 0 0
95 > /dev/mapper/vg-vg--backup /backup ext2 rw,noatime 0 0
96 > usbfs /proc/bus/usb usbfs rw,noexec,nosuid,devmode=0664,devgid=85 0 0
97 > binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,noexec,nosuid,nodev 0 0
98
99 --
100 alan dot mckinnon at gmail dot com