Appletell | Apple, Mac, iPhone, iPod | News, Rumors, Reviews, How-Tos

Subscribe to our content for free: (?)
Get our Daily Email

Can’t eject a disc image? Find out what’s stopping it

by Mark Rowland on Jun 16, 2008 at 08:17 PM

For those of you who are constantly met with the error that a disc image cannot be ejected because it is in use, read on for a quick little how-to with some Terminal code.

For this example, the disc Image that doesn’t want to leave will be titled “Stubborn Image.” Once you have the Finder error message tell you that you cannot eject the image, plug the following into Terminal:

lsof | grep Stubborn Image

The result should look like a variation of this:

bash       228 johndoe  cwd      DIR      14,4      4096          2 /Volumes/Stubborn Image
Word      1379 johndoe   24u     REG      14,4        81     197704 /Volumes/Stubborn Image/C/Archiver/test.txt

This means that Word is using the file test.txt, so the first step should be to quit Word.  Then, cd out of the Stubborn Image directory. 

Voilà! Your Stubborn Image can be ejected!

I haven’t had an image to test this out with, but if you get the chance, tell us how it goes in the comments.

[Editor’s Note: And be careful. Terminal isn’t something you want to play around with if you don’t know what you’re doing.]

Via [Mac OSX Hints]

Subscribe to keep up with the latest Apple news and rumors! - Subscribe to our feed


Comments
  • Adam Fisher-Cox said:

    Gotta wonder why Apple can’t just tell you in the actual warning, yet they can in the Terminal.

  • Harvey said:

    Well, that’s nice and incomprehensible. A little more detail would help.

  • Page 1 of 1 Comment Pages
Join the Discussion

Name: *

Email: *

Location (Links to Google Maps):

URL:

Enter Your Comment Below...

* Required fields

Remember my information?

Notify me of follow-up comments?

Submit the word you see below:


Special Features