Spotlight problems
A progress bar that never fills usually means indexing is failing on one file and restarting.
Some rebuilds legitimately take many hours. Check whether work is happening:
mdutil -s /
sudo fs_usage -w -f filesys mdworker 2>/dev/null | head
If fs_usage shows mdworker cycling the same file or path repeatedly, it is stuck on that item, not progressing.
The repeated path in fs_usage is the culprit — often a corrupt PDF, a broken package, or a file on a flaky drive. Excluding it lets indexing finish:
Add its folder to Spotlight Privacy, or move the file out, then let indexing complete, then investigate the file separately.
sudo mdutil -i off / # stop
sudo mdutil -E / # erase the index
sudo mdutil -i on / # restart fresh
Erasing removes a corrupted store that a plain restart would keep tripping over.
If rebuilds keep failing, delete the index store directly and let macOS recreate it:
sudo mdutil -i off /
sudo rm -rf /.Spotlight-V100
sudo mdutil -i on /
(The store is hidden at the volume root. This forces a completely fresh index.)
Most "stuck forever" cases are one bad file or a churning folder, not a broken Spotlight — which is why targeted exclusion beats endless rebuilding.
Usually one corrupt or constantly-changing file. fs_usage on mdworker reveals the repeated path; exclude it and indexing finishes.
Stop indexing, delete /.Spotlight-V100 at the volume root, and re-enable — macOS builds a fresh store.
Everywhere keeps track of every file on your Mac — including the folders Spotlight hides and drives you have unplugged. Free for a day, then $19 once.
Download for Mac