![this device is currently in use this device is currently in use](https://technoresult.com/wp-content/uploads/2019/05/select-find-option-from-the-process-explorer-400x301.jpg)
It can also hang, but you should give it at least a few minutes before you decide that's what happened.Īlso, sometimes the base command sudo lsof /Volumes/myDrive won't find anything. One final note, lsof can take a minute or two. You should be able to eject the disk once the process/application has been killed.
#THIS DEVICE IS CURRENTLY IN USE SERIES#
Here's a series of escalating aggressiveness (using the example PID of 2158): kill 2158 Note that sometimes that doesn't work and a more aggressive form of kill must be used. From the above example, it would be: kill 2158 To do that, use the PID from the second column as the ID to kill. If you can't close the application manually, you can use the kill command to terminate it from the command line. For example, QuickLook doesn't show up as an application you can get to in the Dock. Closing the application directly is the best way to fix the issue. In this case, it's the QuickLook application that has a file open. Mds 89 root 23r DIR 52,3 432 2 /Volumes/Photosįinder 681 alans 14r DIR 52,3 432 2 /Volumes/Photos Mds 89 root 19r DIR 52,3 432 2 /Volumes/Photos The output will look something like this: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME It can take a couple minutes to run, but once it's complete, it gives you a list of open files on the disk. The fastest and easiest way would be this :- sudo lsof /Volumes/myDrive