Surely I can shut down the Mac. But this is not an option. I like the idea of having Spotlight know my disk. But I tried to make Spotlight ignore my disk for the moment. This did not work : "Impossible because of an unknown error. I also tried letting time act. I went to work and let Spotlight index the disk during the whole day. The evening, I came back, and the problem was still the same.
I actually think the problem is that the mds is either not telling the system that it finished with the drive or not quitting after it's done and by doing so, holds the drive until the process is killed somehow like a shutdown. NicolasBarbulesco The 'Force eject drive' is an option the system offers after a while. If you try to eject, it should say 'Trying to eject your drive' or similar and after a minute or so of being unsuccessful , show another popup that have an option to force eject.
Another simple option is to eject it through Disk Utilities. Tim Undheim Tim Undheim 31 1 1 bronze badge. Did you read the comments in Tetsujin's answer? Just try it. A simple eject through Disk Utilities always works for me when an external drive of any kind won't eject because it's "in use. I did try to eject the drive with Disk Utility. But this did not work.
Sorry to hear about that. Disk Utility ejects unmountable "in use" disks just fine on my unit which runs on You might look into DiskWarrior. For whatever reason, using Disk Utility unmount command worked for me on a problem disk. But can this work in the Spotlight case of my question? David K. Storrs David K. Storrs 1. I tried that. That did not work. See my comment here: apple. Featured on Meta. Congratulations to our 29 oldest beta sites - They're now no longer beta! Unicorn Meta Zoo 7: Interview with Nicolas. Adding hints for including code in questions about scripting.
Linked Related 3. Hot Network Questions. Question feed. What am I doing wrong or what is the issue? I need mount disk1s2. It is an external HDD with an Apple file system. I am trying to retrieve my personal data. It crashed due to the Yosemite upgrade. I have the same problem!!!
I would have died if I lost everything on my external hard drive. You saved my HD many times because of this tip alone.
How to Force Eject on a Mac Terminal
Thank you thank you thank you. It seems to unmount a mount my USB3. The HD under the indented section on the left panel would be in grey. Nothing worked until I tried the most crude method mentioned on the forum as my last resort: shut down the computer manually close all apps, press down the power button until it shuts off with the external HD still plugged in, then started it back up and it worked!
Hope this is helpful. Thanks a bunch Xira!! Your method is the only thing that worked. A friendly interweb hi-five to ya!
- How to Unmount a Drive from Command Line on Mac.
- Why to safely eject media drives from your Mac.
- How to Force Eject a Volume or Drive in OS X.
- external hard drive won't eject!
Name required. Mail will not be published required. All Rights Reserved. Reproduction without explicit permission is prohibited. Lee Maxwell says:. April 26, at am. Nigel Pye says:. April 1, at am. February 21, at pm. Lalitha Sundararajan says:. June 1, at pm. Daniel says:. March 25, at pm. Ces says:. November 6, at pm. Kelly says:. September 8, at pm. DMurray says:. October 30, at pm. May 27, at pm. Ben says:. August 22, at am. Chris says:. July 22, at pm. AJ says:. March 19, at am. KP says:. June 23, at am.
CL says:. April 27, at pm. JB says:. April 17, at am. March 31, at pm. Devon says:. February 8, at am.
Use Terminal to Eject a Stuck CD/DVD
Sas says:. January 16, at pm. March 10, at am. Sameh says:. October 21, at am. Blaise says:. September 22, at am. Awais says:.
July 7, at am. You could try erasing the drive and starting over with it. And it doesn't have an OS on it? And the trash is empty? Totally odd. If I was having that many issues with a drive, I would move all the data to another one and erase it and start over. I plug in different drives all the time since I repair computers even Win.
Would do as suggested. If it is your computer, an erase and clean install is the last resort after backup. Glad you were able to resolve it.
From my experience, Apple computers are the most stable OS than any other made by man. My wife has a Samsung laptop, rarely has issues. Question Copying Hard drive Question How do i install osx on a mac pro early without hard drive? Post thread. Power Supplies. Latest posts T. Latest: TomatoThomas A moment ago. Latest: tennis2 1 minute ago. Latest: DSzymborski 4 minutes ago. Latest: Andrew 5 minutes ago.
Mount & Unmount Drives from the Command Line in Mac OS X
Latest: LordVile 5 minutes ago. Moderators online. Top Bottom.