Can’t eject a disc image? Find out what’s stopping it
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.txtThis 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
Black Friday 2009
Black Friday is almost here! Gadgetell's got you covered with all the latest news on who's offering the best deals. Dangerous crowds? You're on your own.
Our new podcast: Meet...
We know. Podcasts are so last year - but this one you won't want to miss. Whether it’s a rumor that won’t die, a new product announcement, or just a really good Macintosh or iPhone app find that we have to let you know about, we’ll make sure it’s covered on Appletellcast.
iPhone App Reviews
iPhone Apps. They were great when the App Store was first announced and we could all pick and chose what we wanted, but the number is now overwhelming. Here at Appletell, we'll detail the great iPhone apps we find, and steer you clear from those that aren't worth it even if they're free.
iPhone Game Reviews
As Apple turns the iPhone into one of the most popular gaming devices, the staff of Appletell--gamers and Apple fans alike--are here to help you get the most entertainment value out of your app store purchases.






Gotta wonder why Apple can’t just tell you in the actual warning, yet they can in the Terminal.
on June 17, 2008 at 09:13 PM - LINKWell, that’s nice and incomprehensible. A little more detail would help.
on June 19, 2008 at 07:52 AM - LINK