"The volume can't be ejected because it's in use

Hi. When I try to eject an external drive that is connected to my MBP via USB, I sometimes get the message that appears in the subject header of this discussion thread. When I get this message, is there a way that I can determine what app / software / process is using the drive? Thx

MacBook Pro, Mac OS X (10.6.6)

Posted on Jul 16, 2011 7:07 AM

Reply
2 replies

Jul 16, 2011 7:47 AM in response to pomme4moi

The command line command "lsof" lists the open files and which processes are using them. Unfortunately, the output is not easy to read.


Start


Applications/Utilities/Terminal


and enter:


ls /Volums


to see all your Volumes.

Then pick the path to the Volume you want to eject and enter:


lsof /Volumes/theNameOfYourDisk


and you will see something like


dreschle% lsof /Volumes/iDisk

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME

mdworker 638 dreschle 6r REG 14,23 21508 16446 /Volumes/dreschler/.DS_Store


which tells you that process "mdworker" is using the file .DS_Store on my iDisk.



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

"The volume can't be ejected because it's in use

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