FS#20035 - [brasero] fails to eject the DVD after a successful burn
Attached to Project:
Arch Linux
Opened by Johan Eriksson (Hund) - Wednesday, 30 June 2010, 21:58 GMT
Last edited by Jan de Groot (JGC) - Thursday, 08 November 2012, 09:22 GMT
Opened by Johan Eriksson (Hund) - Wednesday, 30 June 2010, 21:58 GMT
Last edited by Jan de Groot (JGC) - Thursday, 08 November 2012, 09:22 GMT
|
Details
After a sucessfull burn of a ISO-file to a DVD, Brasero
fails to eject the DVD and gives me this message: "The disc
could not be ejected though it needs to be removed for the
current operation to continue."
Im using brasero 2.30.2-1. |
This task depends upon
also with cdrom-iso cdrom-data and dvd-data (other media types not teseted).
https://bugs.archlinux.org/task/22452
local/eject 2.1.5-4 [0.22 MB]
but brasero is not able to eject the media autmatically
udev-174 assigns optical drives to the "disk" group, which given that my user isn't in that group makes brasero fail to access the drive. Adding a user to the "disk" group isn't generally recommended since this implies access to hard drives as well, and I therefore reassign the drive to the "optical" group of which my user IS a member:
=== /etc/udev/rules.d/81-optical.rules
#
# udev-174 assigns optical drives to group "disk"; reassign to group "optical"
#
# Permissions for IDE CD devices
SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", ATTR{removable}=="1", ATTRS{media}=="cdrom*", GROUP="optical"
# Permissions for SCSI CD devices
SUBSYSTEMS=="scsi", KERNEL=="s[rg][0-9]*", ATTRS{type}=="5", GROUP="optical"
===
The drive used to be in the "storage" group though, of which my user was also a member, and upon seeing no devices in /dev being owned by the "storage" group anymore, I deleted my user from that group (# gpasswd -d rene storage). At this point, burning a CD/DVD with brasero works fine, but brasero fails at the end with the here mentioned eject trouble:
===
The disc in "PLEXTOR DVDR PX-820SA" cannot be ejected
Not Authorized
===
Adding my user BACK to the "storage" group (# gpasswd -a rene storage) fixes the issue. As said, no device in /dev is owned by group "storage" anymore so this might imply some hardcoding-trouble going on somewhere?
Quite unsure that it would be in brasero though. This seems to be an interaction between archlinux permissions-policy (if there is such a thing...), udev-174, brasero and, perhaps, things like thunar trying to butt in.
(the trouble itself IS specific to brasero though: ejecting through the "eject" comand line utility or through right-clicking the icon on my XFCE desktop works fine)
https://bugs.archlinux.org/task/26640
custom rule
use consolekit to allow your user access to devices
exec ck-launch-session yoursession or use gdm/kdm/lxdm
It seems Thunar installs a policykit rule that wants the storage group. See
https://bugs.archlinux.org/task/26640
Although I'm not all that sure how all this, ehm, "stuff" is supposed to interact that feels like it might be something that Thunar should not in fact do...
uid=1000(rene) gid=100(users) groups=100(users),7(lp),10(wheel),50(games),91(video),92(audio),93(optical),94(floppy),95(storage),96(scanner),97(camera),98(power)
[rene@e600 ~]$ ck-list-sessions
Session1:
unix-user = '1000'
realname = ''
seat = 'Seat2'
session-type = ''
active = FALSE
x11-display = ':0.0'
x11-display-device = ''
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2011-11-02T11:26:32.697950Z'
login-session-id = ''
Session2:
unix-user = '1000'
realname = ''
seat = 'Seat3'
session-type = ''
active = FALSE
x11-display = ':0.0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = FALSE
on-since = '2011-11-02T11:26:32.811067Z'
login-session-id = ''
I use slim as a display manager, have in /etc/slim.conf:
"login_cmd exec ck-launch-session /bin/bash -login ~/.xinitrc %session"
(and exec "xfce4-session" from ~/.xinitrc)
EDIT: Where's the option to have this bugzilla not strip leading spaces when displaying?
either slim is really broken or you have some pacnew files inside /etc/pam.d
There are no unmerged changes in /etc/pam.d. My /etc/pam.d/slim is:
===
#%PAM-1.0
auth requisite pam_nologin.so
auth required pam_env.so
auth required pam_unix.so nullok
account required pam_unix.so
password required pam_unix.so
session required pam_limits.so
session required pam_unix.so
session optional pam_loginuid.so
session optional pam_ck_connector.so
===
(only) the "nullok" is a local tweak; otherwise it's vanilla slim.
The right output should have active and is-locale TRUE. After you managed to have this output you can get rid of all groups and have only users
Session2:
unix-user = '1000'
realname = 'ioni'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2011-11-01T01:53:16.858361Z'
login-session-id = '2'
exec ck-launch-session xfce4-session
then startx
watch it work :)
This is an old bug (and not reported by me) but it can probably be closed. The originally reported problem is the experience you get without a correct ConsoleKit setup.
Session2:
unix-user = '1000'
realname = 'lookatmynameonbugcomment'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2011-11-09T05:39:28.420368Z'
login-session-id = '2'
https://bbs.archlinux.org/viewtopic.php?id=130154
(as to Diego's problem... no idea).