# # Why can't I unmount my CDROM or mounted image?
APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

Why can't I unmount my CDROM or drag an image to the trash?

I've removed advertising from most of this site and will eventually clean up the few pages where it remains.

While not terribly expensive to maintain, this does cost me something. If I don't get enough donations to cover that expense, I will be shutting the site down in early 2020.

If you found something useful today, please consider a small donation.



Some material is very old and may be incorrect today

© December 2003 (various)

Filesystems not unmounting: probably because some process is using it. It might even be you- if you have CD'd there. Something that sometimes catches folks: you "cd /cdrom" and then perhaps start another shell. Later on you cd somewhere else, but the shell you started with is still sitting on /cdrom- and it wll not unmount.

On all modern systems, you should have "lsof". A simple "lsof /mnt" (or wherever the cd or disk is) will show you the processes and programs using that.

If you don't have "lsof", use "fuser /mnt" or "fuser /dev/cd0" (note that on Linux these will produce different results but are equivalent on OSR5 at least) to find the process and kill it.

A music CD can easily get stuck that way. A mounted DVD/CD image in use can also be "stuck".


If you found something useful today, please consider a small donation.



Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

->
-> Why can't I unmount my CDROM or mounted image?


Inexpensive and informative Apple related e-books:

Take Control of Automating Your Mac

Take Control of iCloud

Digital Sharing Crash Course

Take Control of OS X Server

Take Control of Numbers






Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us


Printer Friendly Version





I wanted to learn how to swim, so Google showed me how to turn on the water at the sink and let me splash it around a bit. They then dragged me into a helicopter, flew way out into the ocean and dumped me out. (Tony Lawrence)




Linux posts

Troubleshooting posts


This post tagged:

FAQ

Optical



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode