Spotlight index on a Mac: where it lives, why mds_stores gets busy, and how to rebuild it cleanly

By the Zofle team · 10 November 2026 · 5 min read

Spotlight index stored per volume, with measure, exclude and rebuild steps

Spotlight keeps a search index of your files, mail, messages and apps. It is useful, it is usually small next to your photos or Xcode, and it is never something to delete by hand. But two things send people looking for it: a process called mds_stores eating CPU, and an index that grew big on a drive full of archives.

Here is what it is, how to measure it, and the three safe moves.

The short version

  • Every indexed volume has its own hidden index folder, .Spotlight-V100, at its top level.
  • On your startup disk it sits on the Data volume: /System/Volumes/Data/.Spotlight-V100.
  • mds_stores is the process that writes that index. mdworker processes read files and hand it the text.
  • Busy after an update, a migration or a big copy is normal. Apple says indexing can take hours or even days.
  • To shrink it: keep folders out of the index (Spotlight privacy), or turn indexing off for external drives you never search.
  • To fix wrong or missing results: rebuild the index. Never delete .Spotlight-V100 in Finder or with rm.

Who does what

NameWhat it isWhen it is busy
mdsMetadata server, runs the indexRarely on its own
mds_storesWrites and compacts the index filesAfter updates, migrations, large copies, a rebuild
mdworker / mdworker_sharedOpen files and pull out text and metadataWhile new or changed files are being read
.Spotlight-V100The index folder at the top of each volumeGrows with how much indexed content the volume holds

Step 1: check status and size (read only)

bash
# is indexing on for each volume?
mdutil -sa

# size of the startup disk index (needs admin password)
sudo du -sh /System/Volumes/Data/.Spotlight-V100

# size of an external drive's index
sudo du -sh "/Volumes/YourDrive/.Spotlight-V100"
  • Indexing enabled. means Spotlight looks after that volume.
  • Indexing disabled. means it does not, and no index grows there.
  • If du says Operation not permitted, give Terminal Full Disk Access just for the check, then take it away again.

What the size means on a small SSD

The index scales with what you keep, so there is no one right number. The quick way to judge it is the share of your disk:

Index size you measuredShare of a 256 GB MacShare of a 512 GB MacWorth acting on?
1 GB0.4%0.2%No
3 GB1.2%0.6%No, unless results are wrong
8 GB3.1%1.6%Check what is being indexed
15 GB5.9%2.9%Yes: exclude archives, or rebuild

Share = index size divided by disk size, so 8 GB on a 256 GB disk is 8 / 256 = 3.1%. Below a few percent, your space is better spent elsewhere: see what Xcode and Simulators take or purgeable space and snapshots.

Step 2: is mds_stores stuck, or just working?

  • Open Activity Monitor, CPU tab, and search mds.
  • Click the Spotlight icon (or press Command-Space) and type something. If you see an indexing progress bar, it is working. Leave it plugged in and awake.
  • Run sudo fs_usage -w -f filesys mdworker_shared | head -50 to see which files are being read. A long list from one folder (a VM image, a backup folder, a node_modules tree) tells you what to exclude.
  • Still busy after a day or two with nothing new copied in? That is when a rebuild makes sense.

Step 3a: keep folders out of the index

  1. Open System Settings > Spotlight (on older versions, Siri & Spotlight).
  2. Click Search Privacy (or Spotlight Privacy).
  3. Click + and add the folder or drive: disk images, VM bundles, old backups, build output folders, a photo archive you never search by name.
  4. Click Done. Spotlight drops those entries from the index; it does not touch the files.

Step 3b: turn indexing off for an external drive

bash
# stop indexing a drive you never search
sudo mdutil -i off "/Volumes/YourDrive"

# remove the index that is already there
sudo mdutil -E "/Volumes/YourDrive"

# turn it back on later
sudo mdutil -i on "/Volumes/YourDrive"

Do this only for drives you never search. Time Machine drives look after their own indexing, so leave them alone.

Step 4: rebuild the startup disk index

Apple's way: add your startup disk (Macintosh HD) to Search Privacy, wait a moment, then remove it again. Spotlight erases and rebuilds the index. The Terminal equivalent:

bash
# erase and rebuild the index for the startup disk
sudo mdutil -E /

# watch it come back
mdutil -s /
  • Expect mds_stores and mdworker to be busy for hours afterwards. That is the rebuild, not a new problem.
  • Search results are incomplete until it finishes.
  • Keep the Mac on power and let it sleep the display only.
  • Do not run it again because it is slow; each run starts over.

Don't do these

  • sudo rm -rf /.Spotlight-V100 or the Data volume copy: it can leave Spotlight half broken, and the rebuild above does the same job safely.
  • sudo mdutil -a -i off on the startup disk to save space: Mail search, Finder search and many apps rely on the index.
  • Killing mds_stores in Activity Monitor: it restarts at once and carries on.

Zofle measures your Mac's storage by category, so you can see whether the index is worth your time or whether caches, Simulators and old downloads are the real problem.

Download Zofle for Mac

Sources and method

Zofle Pro news

People signing up now will get Zofle Pro, with more features, for free when we launch it.

One email when it's ready. No spam, ever.