How to uninstall an unresponsive DVD drive by linux
This article is about how linux uninstalls unresponsive DVD drives. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Uninstall an unresponsive DVD drive
The experience of a novice to the web: when you press the Eject button on the DVD drive of the server (running the Redmond-based operating system), it pops up immediately. He then complains that in most enterprise Linux servers, if you run a process in that directory, the pop-up won't happen. As a long-term Linux administrator, I will restart the machine. If I am not sure what is running and why I do not release the DVD drive, I will eject the disk. But it's inefficient.
Here's how to find the process that holds the DVD drive and easily eject the DVD drive: simulate first. Place a disk in the DVD drive, open a terminal, and load the DVD drive:
# mount / media/cdrom # cd / media/cdrom # while [1]; do echo "All your drives are belong to us!"; sleep 30; done
Now open the second terminal and try to eject the DVD drive:
# eject
You will get the following message:
Umount: / media/cdrom: device is busy
Before releasing the device, let's find out who is using it.
# fuser / media/cdrom
The process is running and it is our fault that the disk cannot be ejected. Now, if you are the root user, you can terminate the process at will:
# fuser-k / media/cdrom
Now you can finally uninstall the drive:
# eject
Fuser is normal.
Thank you for reading! This is the end of this article on "how to uninstall unresponsive DVD drives from linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!