How to Exclude Hard Drives and Folders from Spotlight Index in Mac OS X

Dec 30, 2011 - 10 Comments

Exclude drives and folders from Spotlight index

Spotlight is a wonderful feature of Mac OS X, but sometimes you don’t want it indexing everything. Whether it’s an external backup drive, a scratch disk, or just a private folder with files you don’t want easily found, excluding drives and directories from Spotlight is easy:

  • Launch System Preferences from the  Apple menu and click on “Spotlight”
  • Click on the “Privacy” tab
  • Drag & drop folders or drives to exclude from the Spotlight index, or click the “+” plus icon in the corner to manually select hard drives or directories

Anything folder or drive in that list is effectively hidden from the Spotlight index, making the contents not appear in file searches.

Exclude items from Spotlight index

This is a much better approach than disabling Spotlight if all you want to do is hide certain files from prying eyes.

If at any point you want these items to be reindexed and reincluded within Spotlights search results, all you need to do is highlight them in the privacy tab and delete them with the Delete key or by hitting the “-” minus button in the lower left. Removing items will trigger the mds and mdworker processes to run.

On a side note, because excluding items and then reincluding them also causes that directory or drive to be completely reindexed, this can be a helpful troubleshooting tip if you’re running into location specific problems with Spotlight.

Related articles:

Posted by: Paul Horowitz in Mac OS X, Tips & Tricks

10 Comments

» Comments RSS Feed

  1. Mashito says:

    I have a few folders excluded, heh

  2. Jesse says:

    FYI, ModMyI.com stole your post

  3. Sue Dunham says:

    Thanks. I hated having duplicate items from my back-up.

  4. bap says:

    problem is with indexing of cd’s, which makes it difficult to copy items until the full disk has been indexed

  5. [...] you want to truly hide the folder and it’s contents, take an extra step and exclude the folder from Spotlight indexing. This makes sure that none of the files inside of it can be found through the Spotlight [...]

  6. [...] if an item is left under the “Privacy” list, it will exclude from Spotlight indexing [...]

  7. [...] solution is simple enough, the same method used to exclude something from Spotlight can also be used to stop Spotlight from indexing a Time Machine drive or other external [...]

  8. [...] you can add anything to Spotlights Privacy list to prevent indexing of that folder or file, the obvious problem with that approach is the file or [...]

  9. Martin Schabbauer says:

    Great – now I understand how to exclude folders from getting indexed. Thanks.

  10. prasad says:

    thanks…
    good job….

Leave a Reply

 

Shop for Apple & Mac Deals on Amazon.com

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates

OSXDaily on Facebook

OSXDaily on Google+

Shop at Amazon

Ad

Shared on Facebook