Thrum

How do you rebuild the Spotlight index on a Mac?

Last reviewed: 19 November 2026.

Apple's method is to add the disk or folder to the Search Privacy list in System Settings > Spotlight, wait a few seconds, then remove it again: Spotlight then reindexes that location. From Terminal, sudo mdutil -E / erases the startup disk's index so it is built again. Expect mds_stores and mdworker_shared to use CPU and disk while it rebuilds.

How do you rebuild it in System Settings?

  1. Open Spotlight settings. Choose Apple menu > System Settings and click Spotlight.
  2. Open Search Privacy. Scroll down and click Search Privacy.
  3. Add the location. Drag the disk or folder into the list, or click the add button (+) and choose it. To rebuild everything, add Macintosh HD.
  4. Wait, then remove it. Wait a few seconds, select the item in the list and click the remove button (-).
  5. Finish. Click Done and quit System Settings. Spotlight reindexes that location.

How do you rebuild it in Terminal?

sudo mdutil -E /
mdutil -s /

-E erases the index stores for the volume, and the mdutil man page says they will be rebuilt if appropriate. It needs an administrator password. The second command confirms indexing is still enabled afterwards. Use the drive's path under /Volumes to rebuild an external drive's index.

When does rebuilding help?

If you see an unknown or permissions error when adding the location, Apple says your account may not own some items in it; change the permissions for that disk or folder and try again.

What happens while it rebuilds?

Search results are incomplete until indexing finishes. mds_stores and several mdworker_shared processes use CPU and disk, the Mac may run warmer, and a laptop's battery drains faster. A full index of the startup disk can take hours on a Mac with many files. You can keep working; check progress with the steps in how to check Spotlight indexing status.

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

Will rebuilding the index delete any files?

No. It deletes and rebuilds only Spotlight's own database of file contents and metadata.

Do I need to restart after rebuilding?

No. Indexing starts by itself in the background.

Sources