Category: How to... — UbuntuLinuxHelp @ 9:55 am —

CD

Just a quick tip I wanted to pass on today. Have you ever had the issue where you want to eject your CD, but it will not eject; no matter how many times you press the eject button? Annoying isn’t it? :) I remember when I first started using Linux, years ago, (my OS was RedHat then), I actually would reboot the system just to get the CD out! Obviously, that’s not too smart.

One of my friends (a brand new user) just ran into this issue. He phoned me because he thought it was a bug. (It’s not). For any new users out there. Here is a quick fix to force the CD to eject:

sudo umount /media/cdrom0/ -l

Just run the above command in a terminal, and you’ll get your CD back.

Easy!
:)

Oh… and if you want to mount it and see any hidden files on it:

sudo mount /media/cdrom0/ -o unhide

There are 12 comment(s) added so far...

#1

You know, I’m glad you posted this. I get this a few times and I just leave the cd until I bot up again. Or if I really need it I was rebooting just to get it.
Thank you for the tip.

Tara wrote on April 2, 2008 - 12:02 pm
#2

@ Tara - I’m glad it was useful to someone. Thanks!

UbuntuLinuxHelp wrote on April 2, 2008 - 12:08 pm
#3

You can straighten out a paper clip and push it into the little hole on the front of any CD or DVD drive. Best done with the power off and be sure to push it in straight. You will meet some resistance, keep pushing and the mechanical part of the drawer will move it open.

rick wrote on April 3, 2008 - 2:09 pm
#4

Don’t forget the “eject” command, which will not only unmount the CD, but eject the tray as well.

sudo eject

menachem wrote on April 4, 2008 - 12:25 am
#5

@menachem - Argh!! I’m a dope! :) Hee hee hee… I forgot about sudo.
Nice comment! ;) At least one of us know’s what we’re doing, and that’s obviously you. :) Thanks.

UbuntuLinuxHelp wrote on April 4, 2008 - 8:09 am
#6

[…] Just a quick tip I wanted to pass on today. Have you ever had the issue where you want to eject your CD, but it will not eject; no matter how many times you press the eject button? Annoying isn’t it? I remember when I first started using Linux, years ago, (my OS was RedHat then), I actually would reboot the system just to get the CD out! Obviously, that’s not too smart. Read more at Ubuntu Linux Help […]

#7

Thanks, I have this problem when my K3B burn fails. I just can’t get the failed cd out without a reboot :(
Thanks!

http://www.fsdaily.com/Beginner/Quick_Tip_When_Linux_Won_t_Give_Your_CD_Back

kuratkull wrote on April 8, 2008 - 7:47 am
#8

When this happens, it is often (but not always) because you have some process (e.g. a file browser or a terminal) which is opened to that dir (e.g. open an xterm and cd /media/cdrom0). As long as that’s the case, the directory is “busy” and cannot be unmounted without extra effort. When this happens, first make sure you haven’t got a file or dir open on the drive, or that you aren’t running some process which holds the device open (e.g. k3b). Then try the “eject” command. Don’t use the paper-clip trick on a running system unless you have no other choice.

Stephan Beal wrote on April 8, 2008 - 10:53 am
#9

@Stephan Beal - You are totally correct. A case in point, last week I used the paper clip method and created a coaster out of my CD. I didn’t realize it was still spinning when I forced it open and the noise alone made me think I damaged the CD burner. The CD itself was scratched up like it had been spinning on sandpaper. So, common sense, I should have carefully listened first! ;)

UbuntuLinuxHelp wrote on April 8, 2008 - 12:20 pm
#10

[…] Berikut ini ada solusi mudah dari ubuntulinuxhelp. […]

#11

Imo it should tell you at least that some program (preferably *which*!) is using the CD drive, so you actually know…

Vadim P. wrote on April 15, 2008 - 11:49 pm
#12

thanks for the tip.

pedobear wrote on July 1, 2008 - 1:53 pm
You can leave a response, or trackback from your own site.

Write Your Comment

Comment Guidelines: Basic XHTML is allowed (a href, strong, em, code). All line breaks and paragraphs will be generated automatically.

You should have a name, right? 
Your email address, I promised I won't tell it to anyone. 
If you have a web site or blog, you can type the URL right here. 
This is where you type your comments. 
Remember my information for the next time I visit.