I have an external hard drive. I often eject it. I noticed that around 80% of the time I need to force eject the hard drive instead of manually ejecting it. I ran this command to see what was using my disk, preventing me from ejecting it:

sudo lsof -xf +d /Volumes/myHardDrive/

The only process that usually comes up is mds. Now, I've searched this up on multiple websites and it seems this process is solely related to indexing your disk so that you can use it with Spotlight.

The only issue is that I've disabled Spotlight for my hard drive (in System Preferences > Spotlight > Privacy. mds shouldn't be causing any problems, but it does.

  • 1
    Is your external hard drive, by any chance, used for time machine backup? Indexing for time machine backups cannot be disabled. – wto Dec 20 '17 at 1:59
  • It is an external drive, but it’s not a Time Machine drive – Skeleton Bow Dec 20 '17 at 2:01

You must log in to answer this question.

Browse other questions tagged .