unmount: /cdrom device is busy error and solution

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:

🐧 If you liked this page, please support my work on Patreon or with a donation.
🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
2 comments… add one
  • Andy Jun 2, 2007 @ 13:57

    What happens basically, is that Linux will not allow you to unmount a device that is busy. There are many reasons for this, but the most important one is to prevent data loss.

    Next time you are stuck with this message, try the following command to find out what processes have activities on the device/partition

    My primary optical drive is /dev/hda, and I would do a (as root)

    lsof -b | grep “/dev/hda”

    Of which the result is

    k3b 30396 andy 19r BLK 3,0 6545 /dev/hda

    This tells me that user andy has a process running (k3b) that is using the primary optical drive (hda)

    As soon as that program terminates its task, the device will no longer be busy and I can unmount it.

    For more information, see man lsof

  • vanessa Jul 30, 2013 @ 0:30

    hello non of these opetions really worked i am trying to install backtrack r3 and it gives me the error that the partition cannot be unmounted and it says /cdrom

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.