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?

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".

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?

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)



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode