Solve the “volume can’t be ejected because it is in use” problem

Published March 16th, 2009 by lagreca

Occasionally I run into the error message that a volume can’t be ejected because it is in use.  Even though I don’t actively have anything being used on the share.  Today I got fed up with the error and decided to find a solution.

  • Application:  lsof – list open files
  • Usage:  lsof | grep sharename
  • Example lsof | grep files

This will return a list of open files on that share.  You can then close the application that is holding the file open by either using the “Activity Monitor” or issuing a kill -9 PID.

Credit:  http://www.macosxhints.com/article.php?story=20080615071312194


0 Responses to “Solve the “volume can’t be ejected because it is in use” problem”

Feed for this Entry Trackback Address
  1. No Comments

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word