Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

What's the safest way...force eject an external hard drive?

I have 10.6.8 on MacBook Pro. When I try to eject my 1TB external hard drive, I get the error message “one or more programs may be using it.” When I tried to eject it from Utilities, it said that “it could not be unmounted.” What’s the safest way to unmount it? Can I just shut down my laptop and then turn off the external hard drive after the computer is shut down?

MacBook Pro, Mac OS X (10.6.8)

Posted on Jan 1, 2012 7:33 PM

Reply
Question marked as Best reply

Posted on Jan 2, 2012 4:16 AM

lyartetc wrote:


When I try to eject my 1TB external hard drive, I get the error message “one or more programs may be using it.” When I tried to eject it from Utilities

You mean Disk Utility.

Can I just shut down my laptop and then turn off the external hard drive after the computer is shut down?

Yes, but if this happens more than once or twice, it's not very practical, is it? You need to find out which app still wants the drive. The way to do this is in Terminal with lsof. Say your 1TB drive's name is ExternalDisk. When you get this message, you should go into Terminal and do


$ lsof | grep ExternalDisk


($ is the prompt; this is case-sensitive, so make sure you capitalise the drive's name correctly).


After a little while, you should get one or more lines listing what files are still open on the 1TB drive. The first word in each line is the app using the open file.

16 replies
Question marked as Best reply

Jan 2, 2012 4:16 AM in response to lyartetc

lyartetc wrote:


When I try to eject my 1TB external hard drive, I get the error message “one or more programs may be using it.” When I tried to eject it from Utilities

You mean Disk Utility.

Can I just shut down my laptop and then turn off the external hard drive after the computer is shut down?

Yes, but if this happens more than once or twice, it's not very practical, is it? You need to find out which app still wants the drive. The way to do this is in Terminal with lsof. Say your 1TB drive's name is ExternalDisk. When you get this message, you should go into Terminal and do


$ lsof | grep ExternalDisk


($ is the prompt; this is case-sensitive, so make sure you capitalise the drive's name correctly).


After a little while, you should get one or more lines listing what files are still open on the 1TB drive. The first word in each line is the app using the open file.

Jan 1, 2012 7:52 PM in response to lyartetc

Shutting down should always work, because all programs are terminated and they stop using the disk. But you often don't have to go that far.


Logging out should also always work, for the same reasons, although the only programs that get terminated are the ones in the user account that is logged out.


If you don't want to log out, quit any apps you are no longer using.


Mac Mail is notorious for hanging onto files that have been attached to emails. If you attached a file from an external disk, Mail might not have let it go. Quitting Mail solves this problem.


The Finder sometimes doesn't let go of files either, like after you do a QuickLook on a file. Normally you can't quit the Finder except using Activity Monitor, so I add the Quit command using a utility like TinkerTool because quitting the Finder definitely helps with some problems.


Another solution is to upgrade to Lion, because I hear that the message is more specific about telling you exactly which program it is that's still using the disk.

Jan 27, 2014 1:28 PM in response to weatherman3

weatherman3 wrote:


This is been going on for 30 years. Why can't the OS do this for us by now? It doesn't seem too hard to program this.


Does this happen on Windows?


Does this happen on Linux?

What would you program? The software would need to read the mind of the user to detect when the human is about to disconnect the drive, and then suspend all read/write operations to protect the file system. But not a moment before the human's mind is read, because you don't want a superfast drive to not move data when you ask it to. The problem of course is that the current state of mind-reading software is pretty primitive.


Windows has the concept of "safe removal." You are supposed to wait until "the device is safe to remove." I don't know about Linux.

Feb 21, 2016 1:32 AM in response to lyartetc

Hi, It may be a bit late but for the benefit of others who have the same problem which appears to happen all too often, here is the solution I found that works.


I went into Utilities/Disc Utilities/Repair Disc for the external drive. It repaired the disc permissions and I was able to eject the external drive in the usual way once that was done. The repair report showed that the reboot permission on the drive had been repaired so that may have been the cause of the problem in the first place.


I was using a 2TB Western Digital Passport Ultra that I had reformatted for Mac on my MacPro running 10.7.5 The drive was reformatted because it was shipped by the seller with the original Windows MS-dos32 format.


Hope this helps.

What's the safest way...force eject an external hard drive?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.