Jump to content

Can't umount cdrom

Recommended Posts

Every wonder why sometimes you get this message when you try to un-mount a NFS drive or cdrom drive


root@homer:~# umount /mnt/cdrom 
umount: /mnt/cdrom: device is busy
umount: /mnt/cdrom: device is busy


Well chances a process is running that is using that directory. To find out run


root@homer:~# fuser -m /mnt/cdrom/
/mnt/cdrom/:         24066c


That shows you what process is using that directory. Now lets do a ps aux and see whats running


root@homer:~# ps aux | grep 24066 
root     24066  0.0  0.5  2244 1284 pts/10   S    14:04   0:00 -su



Looks like a the root user is in that directory. If you cannot find the term that is in that directory then kill that process


root@homer:~# kill 24066



now you can un-mount


root@homer:~# umount /mnt/cdrom/


This tip brought to you by the letter J and the letter Y

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...