You are not logged in.

#1 2006-01-15 18:01:28

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Unlock cdrom issue

Hello,

On ubuntu they discovered a way to Unlock CDROM -> Eject with cd-rom button by running

sysctl dev.cdrom.lock=0

Somehow on arch the initial value is also 1 but even by chnaging it to 0 the cdrom is not unlocked sad
any ideas?

Offline

#2 2006-01-15 19:04:53

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: Unlock cdrom issue

Oh never mind actually it does work smile

Offline

#3 2006-01-15 21:35:39

paranoos
Member
From: thornhill.on.ca
Registered: 2004-07-22
Posts: 442

Re: Unlock cdrom issue

i thought it was locked because you have to umount the device first, and it's not a good idea to eject first.

if i try to eject a cd, and it won't come out, it reminds me that i have to umount it.

Offline

#4 2006-01-15 22:29:32

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: Unlock cdrom issue

Yes but if you use pmount, doing the above command will notify the system of an eject action, the cdrom will be unmounted then ejected, if devise stated as busy, it will be remounted read only before ejecting

Offline

#5 2006-01-16 20:13:27

alterkacker
Member
From: Peoples Republic of Boulder
Registered: 2005-01-08
Posts: 52

Re: Unlock cdrom issue

I can't currently get to the Ubuntuforums site so I might be missing something but what does this do that the

eject

command doesn't?

Offline

#6 2006-01-16 21:05:56

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: Unlock cdrom issue

Ok i think i might explain it more coz some are confused,
Consider you are hmm WAtching a DVD for example, when u r done and want to remove the dvd what do you do on Windows?? don't you just click on the eject button loctated on your cd-rom drive??? on linux, specially on arch, ubuntu etc.. (on redhat AFAIK it's already solved), You have to type eject on a command line, or using Gnome disk mounter applet and click on eject or on ur desktop right clicking the cd icon and then Unmount to be able to use the eject button oitherwize ur cdrom will not get out unless u do unmount it!!

But there's an easy way to do it, by doing

sudo sysctl dev.cdrom.lock=0

or

sudo sh -c 'echo "dev.cdrom.lock=0" >> /etc/sysctl.conf'

to make it permanent..

Will actually make te button work! u dont need to unmount it, u don't need to do anything, just click on the eject button and ur cd is out big_smile

hope that helps now big_smile

Offline

#7 2006-01-16 21:52:21

alterkacker
Member
From: Peoples Republic of Boulder
Registered: 2005-01-08
Posts: 52

Re: Unlock cdrom issue

Ooooh - very nice! Thank you.

Offline

#8 2006-01-16 23:50:29

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: Unlock cdrom issue

You're welcome smile

Offline

#9 2006-04-06 20:34:33

matersci
Member
From: Hellas
Registered: 2006-01-19
Posts: 169

Re: Unlock cdrom issue

It works. Thanks smile

Offline

#10 2006-04-06 21:19:00

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: Unlock cdrom issue

For gnome: install gnome-volume-manager, it will umount and eject your CD whenever possible instead of locking the drive until you umount by hand.

Offline

#11 2006-04-07 15:35:22

baze
Member
Registered: 2005-10-30
Posts: 393

Re: Unlock cdrom issue

with the change in sysctl.conf i had some big errors on shutdown, when you just open the cdrom drive while showing the content of the cd in thunar. using the recommended eject command, the disk is unmounted and the folder is closed before opening the drive.

i don't recommend the change in sysctl.conf
it would be nice if there is a cleaner method than this and one without installing half a lot of gnome hmm

Offline

Board footer

Powered by FluxBB