Quick Tip – When Linux Won’t Give Your CD Back 04/02/08
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.
Oh… and if you want to mount it and see any hidden files on it:
sudo mount /media/cdrom0/ -o unhide