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

mds_stores prevents unmounting of external disk drive

Since upgrading to OS X El Capitan, attempting to unmount an external disk drive fails sometimes if the drive is being used by mds or related processes. For example:


% sudo diskutil umount /Volumes/Kolyvagin/

Volume Kolyvagin on disk3s2 failed to unmount: dissented by PID=185 (/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metada ta.framework/Versions/A/Support/mds_stores)


Using the Disk Utility application also fails to unmount the drive. What is the proper procedure for unmounting the drive gracefully in these circumstances?

Posted on Oct 1, 2015 3:04 PM

Reply
Question marked as Best reply

Posted on Oct 21, 2015 3:13 PM

  1. Open up Activity Monitor
  2. Locate the mds_stores process
  3. Click once to highlight the mds_stores process
  4. Click on the X icon just above "Process Name"
  5. Click on Force Quit
  6. Enter your Admin credentials and click Okay
  7. Now retry your unmount.


Don't worry, launchd will restart it, but this time it should behave a bit better.


You may need to do this every so often in El Capitan it seems. This is a bug.

3 replies
Question marked as Best reply

Oct 21, 2015 3:13 PM in response to inwitinwit

  1. Open up Activity Monitor
  2. Locate the mds_stores process
  3. Click once to highlight the mds_stores process
  4. Click on the X icon just above "Process Name"
  5. Click on Force Quit
  6. Enter your Admin credentials and click Okay
  7. Now retry your unmount.


Don't worry, launchd will restart it, but this time it should behave a bit better.


You may need to do this every so often in El Capitan it seems. This is a bug.

Oct 21, 2015 3:31 PM in response to TonyPlack

Thank you very much for your answer. While I haven't had a chance to try it out yet, it is good to know that it is safe to kill mds_stores.


My own temporary work-around was to disable indexing on external drives using the mdutil command. For example:


% sudo mdutil -i off /Volumes/Taniyama

/Volumes/Taniyama:

2015-10-21 15:19:46.884 mdutil[21386:563134] mdutil disabling Spotlight: /Volumes/Taniyama -> kMDConfigSearchLevelFSSearchOnly

Indexing disabled.


Of course, this means that Spotlight may not work very well at finding files on that drive.

mds_stores prevents unmounting of external disk drive

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