Unable to Eject External HDD

Discussion in 'macOS' started by flashmore, Aug 4, 2012.

  1. flashmore macrumors newbie

    Joined:
    Aug 4, 2012
    #1
    When I'm attempting to eject my external HDD, I receive a message saying

    "The disk “SAMSUNG_1” wasn’t ejected because one or more programs may be using it."

    I've run a command in terminal to find out what's keeping it open, but I don't know what the results mean....

    Code:
    COMMAND PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
    mds      67 root   11r   DIR   14,7     2142    5 /Volumes/SAMSUNG_1
    Can anybody help me please?
     
  2. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #2
    Looks like the drive is being indexed by Spotlight. If you don't want that drive indexed open the Spotlight pane in System Prefs and add the drive to the Privacy tab. That will stop the indexing and you can eject.
     
  3. flashmore thread starter macrumors newbie

    Joined:
    Aug 4, 2012
    #3
    I just tried that but I'm still getting the same response when I try to eject.
     
  4. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #4
    Try going into Activity Monitor and killing (force quit) MDS and MDSWORKER
     
  5. flashmore thread starter macrumors newbie

    Joined:
    Aug 4, 2012
    #5
    That MDSWORKER thing didn't show up, but I managed to kill MDS. When I tried to eject though I got the same error and when I run the sudo lsof command, MDS showed up again but it had a different PID & FD value.
     
  6. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #6
    You should be able to see mdworker if you click on show all processes in Activity Monitor. Usually there are two running, one for your user account and one for spotlight.
     
  7. flashmore thread starter macrumors newbie

    Joined:
    Aug 4, 2012
    #7
    As soon as I've force quit MDS, it pops right back up in the activity monitor with a different PID value. MDWORKER pops back up after a short time too.

    I've also gone into system preferences and prevented spotlight from searching the external drive but that hasn't done anything to help. :confused:
     
  8. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #8
    Both MDS and MDWORKER will always relaunch when quit.

    If you are not copying anything to the drive, just unplug the connection and it won't hurt anything.

    You might remount after that and use Disk Util to check the disk for errors.
     

Share This Page