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?

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 OS X Server

Photos: A Take Control Crash Course

Take Control of Automating Your Mac

Take Control of IOS 11

Take Control of Apple Mail, Third Edition

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

Software and cathedrals are much the same – first we build them, then we pray. (Sam Redwine)

Linux posts

Troubleshooting posts

This post tagged:



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode