This is a website by Willem van Zyl

I'm a project manager, software developer, Apple evangelist and geek from South Africa. I'm passionate about web and mobile application development, usability, productivity, physics, astronomy, science fiction and fantasy.

If you would like to contact me, message me on Twitter or send me an email.

How to reset Mac OS X's Spotlight data cache and re-index your hard drive

09 Feb 2009

Apple's Spotlight technology automatically indexes all content on an OS X system to allow for instant search results based on documents (including their content), pictures, music, applications, emails, calendar entries, system preferences, bookmarks, web history, etc.

Occasionally Spotlight's metadata stores can become corrupted and cause searches to take much longer than necessary. To reset the data cache for your Mac's hard drive, open a Terminal window and enter this command:

sudo mdutil -E /

To force Spotlight to immediately start re-indexing your hard drive (this might take a few hours and is probably best left to run overnight), enter this command:

sudo mdutil -i on /

Further information on mdutil's usage can be found on its man page by entering this command:

man mdutil
Do you like this? Share it:

Copyright © Geekology 2011. All Rights Reserved.

Hosted by Code. Like. Clockwork.