unmount: /cdrom device is busy error and solution

last updated in Categories , , , , , , ,

Q. I am trying to unmount remotely hosted Linux server. I have CD mounted and when ever I type command umount /cdrom or umount /dev/cdrom I get an error that read as follows:
unmount: /cdrom device is busy

How do I solve this problem?

A. In order to solve this problem. Run umount command as follows:
# cd /
# umount /cdrom

If problem still continues then forcefully unmount the cdrom:
# cd /
# fuser -km /cdrom

OR try the following command:
# cd /
# umount -l /mnt

See also:

Get 15% off on Linux Foundation certified SysAdmin, Progamming, Kubernetes/Containers and Open Stack certification & course. Use "SPLASH15" coupon code. Offer expires on August 27, 2018
training.linuxfoundation.org