Last active
December 20, 2015 17:59
-
-
Save nexxos/6172424 to your computer and use it in GitHub Desktop.
Since my latest Mac OS upgrade Spotlight is acting up on a regular basis, indexing the hard drive over and over, rendering my Mac nearly unusable. Only workaround I could find on the web was turning spotlight off. Works as a quick'n'dirty fix if I don't have time for a prolonged coffee break.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reminder: After turning Spotlight back on, | |
# it will start re-indexing, | |
# which may take quite some time and | |
# thus might best be done overnight. | |
# Switch off Mac spotlight | |
sudo mdutil -a -i off | |
# Turn Spotlight back on. | |
sudo mdutil -a -i on | |
# This comes without warranty. | |
# another potential solution/temporary remedy: | |
# http://guidovanoorschot.nl/how-to-fix-spotlight-when-it-keeps-indexing-n-mac-os-x-lion/ | |
sudo rm -rf /.Spotlight-V100/* | |
sudo mdutil -i on -E / | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment