How to Rebuild Spotlight Index on Your Mac

How to Rebuild Spotlight Index on Your Mac

Having problems when using Spotlight to search for items? One of the possible reasons is that the indexing database that Spotlight uses to keep track of where your files are gets corrupted, misplaced, or left on an old hard drive somewhere. In that case you can try to fix Spotlight issues by simply rebuilding the index on Mac.

Here’s how to re-index your hard drive via Terminal command:

  • Launch Terminal from Launchpad or through Finder (/Applications /Utilities).
  • Type in the following command and then hit Enter/Return key: sudo mdutil -E /
  • If prompted, type in your admin account password, and hit Enter/Return.

Executing the aforementioned command will re-index the Spotlight database for everything on the Mac, including external drives and mounted disk images.

The re-indexing of the entire system may last from a few hours to finish, depending on the speed of your Mac and the number of files. During the process you will not be able to use Spotlight. Meanwhile, your Mac might become a little sluggish.

If you want to reindex for a specific drive, add /Volumes/(YourVolumeName) behind the command. For instance, to re-index an external drive named MyBackup, type the command in Terminal instead: sudo mdutil -E /Volumes/MyBackup/

Here’s how to re-index drives through System Preferences:

  1. Open up System Preferences from the Apple icon menu on the top.
  2. Click the Spotlight icon in System Preferences, and click the Privacy tab.
  3. Drag your Macintosh HD drive icon from the Desktop and drop it to blank space under the “Prevent Spotlight from searching these locations”. If you want to re-index a folder or volume, locate the item in Finder and drag its icon over there.
  4. Click OK in the pop-up dialog to add the selected drive into the Privacy list.
  5. After a few seconds, select the drive icon in the list, and click “-” icon to remove it.

Removing an item like that will cause Spotlight to reindex the selected folder or drive.

So that’s it for today’s tutorial. Have you got the tricks yet? Let us know in comments.

Comments


Leave a reply

Name*

E-mail*

Website