Mac OS X Snow Leopard Spotlight indexing forever
2010.11.15 - posted in macOSThis is not really a voip related post, but I’d like to share it anyway.
Last friday, I picked up my brand new MacBook Pro (with Max OS X Snow Leopard 10.6) from the local Apple reseller. Excited with my purchase, I started using the MacBook right away (of course). I configured Mail, surfed the web and started using iChat. The MacBook was getting slower and slower and the spinning coloured wheel started to appear more and more.
The Spotlight menu revealed that the volumes on my MacBook were about to be indexed with an accompanying ‘estimating indexing time’ message. This went on and on, with no improvement whatsoever (there was never any real estimate in hours or minutes given).
A look at the ‘top’ output revealed that the mdworker processes were consuming a lot of resources, the idle percentage would typically be around 40 to 60%.
I googled and found a lot of tips, hints and what not. Reinstalling Mac OS did not solve the problem (as was indicated by postings from other people experiencing the same problem).
Stopping the indexing, deleting the Spotlight indexes and restarting Spotlight also did not solve the problem (I did find a nice shareware program to control Spotlight though, have a look at Spotless by Fix a Mac. However, just using Spotless did not fix my problem either (although I read postings from users that had success using it).
In the end, it turned out that Spotlight was probably choking on some files. I used ‘Disk Utility’ to repair the file permissions, after which Spotlight immediately started indexing.
Personally, I was a bit disappointed in Apple. Why would I need to fix file permissions on a freshly installed MacBook? I reinstalled the MacBook, installed the Applications from the accompanying DVD, installed iLife ’11 and updated it all. I really fail to see why I would need to fix any file permissions.
By the way, Spotlight indexed 100GB of data in 30 minutes and it works rather nice :-)
For those who’d like to know how Spotlight can be stopped and started from the command line (please note that you need to authenticate yourself again to gain admin privileges):
To turn Spotlight OFF for all current volumes:
sudo mdsutil -a -i off
To turn Spotlight indexing ON for all current volumes:
sudo mdsutil -a -i on
To delete the current Spotlight indexes for the master drive and start rebuilding the index for that drive:
rm -rf /.Spotlight*
sudo mdsutil -E /
As mentioned, you could use Spotless if you don’t feel comfortable at the command line interface.