Thrum

How do you stop Spotlight indexing a folder or drive?

Last reviewed: 19 November 2026.

Open System Settings > Spotlight, click Search Privacy, click the add button (+) and choose the folder or drive. Spotlight stops searching and indexing that location until you remove it from the list. For a whole volume, sudo mdutil -i off followed by the volume path turns indexing off from Terminal.

How do you exclude a folder or drive?

  1. Open Spotlight settings. Choose Apple menu > System Settings and click Spotlight in the sidebar.
  2. Open Search Privacy. Scroll down and click Search Privacy. The list is titled to prevent Spotlight from searching these locations.
  3. Add the location. Click the add button (+) and choose the folder or disk, or drag it into the list.
  4. Close the window. Click Done. Spotlight stops indexing and searching that location.

Which folders are worth excluding?

Excluding them shortens indexing after big changes and reduces the disk activity of mds_stores and mdworker_shared.

How do you turn indexing off for a whole volume in Terminal?

mdutil -s /Volumes/Backup
sudo mdutil -i off /Volumes/Backup
sudo mdutil -i on /Volumes/Backup

The first command shows the current status and needs no password. The second turns indexing off for that volume and the third turns it back on; both need an administrator password. Replace /Volumes/Backup with your drive's path, which is its name under /Volumes.

What are the side effects?

System Settings warns that if you exclude a location, search will not work in some apps. Mail, for example, relies on the index to search messages, so do not exclude your home folder or Library.

A Time Machine backup disk is a special case: if you add it, Spotlight keeps searching the backups on it but not other items on the disk.

How can Thrum help?

Thrum's Disk tab shows read and write speed for the whole Mac and for each app.

Thrum is $4.99 once with a 14-day free trial and no account. It requires macOS 26 Tahoe on Apple silicon or Intel.

Questions

Can I exclude a single file type instead?

Search Privacy works on locations. To keep a file type out of results without stopping indexing, use the Hidden File Types option in Spotlight settings.

Do I lose any files by excluding a folder?

No. Only the search index changes. The files stay where they are.

Sources