You are not logged in.

#1 2009-06-30 23:20:47

kiruch
Member
From: Saint-Petersburg, Russia
Registered: 2009-06-30
Posts: 22
Website

[discussion closed] eject /dev/dvd : unable to open `/dev/sr0'

i'm sorry if this question has been asked already, i'm new to this forum.

i just decided to give Thunar Volume Manager (auto-mount and auto-umount daemon) a try, and that's when the problem arose.
it invokes "eject" when i press the button on the disk tray, and then an error message appears.
i went to a terminal and tried to execute the command, and the command failed:

$ eject /dev/dvd
eject: unable to open `/dev/sr0'

of course this worked quite well:

$ sudo chmod 777 /dev/sr0

after doing so, i could eject a still mounted dvd with both methods (1: pressing the eject button, 2: invoking the eject command).
but the thing is, after another dvd is inserted, the permissions are reset to 660 (or whatever, i mean rw-rw----), so i have to do it everytime, but obviously i don't want to.

could anybody suggest what i should do to solve the problem?
thanks!

Last edited by kiruch (2009-07-01 12:40:39)

Offline

#2 2009-07-01 00:41:01

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: [discussion closed] eject /dev/dvd : unable to open `/dev/sr0'

add your user to group "optical"

gpasswd -a kiruch optical

Offline

#3 2009-07-01 12:38:54

kiruch
Member
From: Saint-Petersburg, Russia
Registered: 2009-06-30
Posts: 22
Website

Re: [discussion closed] eject /dev/dvd : unable to open `/dev/sr0'

hmm... it made "eject /dev/dvd" work just fine, but Thunar daemon still refuses to eject disks.
thanks for helping on this exact subject, djgera!
now i started another thread, because it's basically another problem and has nothing to dowith "eject" command now smile

Offline

Board footer

Powered by FluxBB