
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...
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 - I’m glad it was useful to someone. Thanks!
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.
Don’t forget the “eject” command, which will not only unmount the CD, but eject the tray as well.
sudo eject
@menachem - Argh!! I’m a dope!
Hee hee hee… I forgot about sudo.
At least one of us know’s what we’re doing, and that’s obviously you.
Thanks.
Nice comment!
[…] 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 […]
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
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 - 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!
[…] Berikut ini ada solusi mudah dari ubuntulinuxhelp. […]
Imo it should tell you at least that some program (preferably *which*!) is using the CD drive, so you actually know…
thanks for the tip.