How to eject a stuck CD/DVD

Some times CD/DVD drives get stuck and will not eject even if you press the eject button on the front panel. The is especially true when any application that was using the CD drive has gone astray. You can try the following steps to get out of the situation.

Open a terminal and become root.

 $ sudo  su

Try eject command.

  # eject

If some application of is using cdrom you will get a message like
umount: /media/cdrom: device is busy

To eject the CD you may have to stop the application. First, let us find out who is using the CD drive.

#fuser  /media/cdrom

/media/cdrom: 5929c 6018c 6020c

You can kill all processes accessing using /media/cdrom

# fuser -km /media/cdrom 

Then try

#eject 
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s