Geek Posted December 10, 2011 Posted December 10, 2011 <div class="KonaBody"><p><img src="http://osxdaily.com/wp-content/uploads/2011/12/disable-spotlight-lion.jpg" alt="Disable Spotlight in OS X Lion" title="disable-spotlight-lion" width="448" height="142" class="aligncenter size-full wp-image-24718" /></p> <p>Completely disabling and reenabling Spotlight in Mac OS X Lion can be done with the help of the Terminal. The following command unloads the <a href="http://osxdaily.com/2010/08/05/mds-mac/">Spotlight mds agent</a> from launchd, preventing the daemon from running or indexing any drives entirely.</p> <p>Open up the Terminal (found in /Applications/Utilities/) and enter the following commands based on the need to either disable or reenable Spotlight indexing. This will effect indexing on <em>all</em> drives connected to the Mac.</p> <h2 style="font-size:1.2em">Disable Spotlight</h2> <p>The primary method is using launchctl, this will require the administrative password: <code style="font-size:92%;">sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist</code></p> <p>Another approach is to use the older <a href="http://osxdaily.com/2009/09/20/disable-spotlight-in-mac-os-x-10-6-snow-leopard/">indexing method</a> of “sudo mdutil -a -i off” which turns off indexing only, but more on that in a minute.</p> <h2 style="font-size:1.2em">Reenable Spotlight</h2> <p>The guaranteed way to reenable Spotlight is to reload it into launchd using launchctl: <code style="font-size:92%;">sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist</code></p> <p>Again, the alternate approach is the indexing related “sudo mdutil -a -i on” command, but that method can throw the “Spotlight server is disabled” error and not allow you to turn it back on. If you run into that problem, use the sudo launchctl load command instead to enable both indexing and Spotlight.</p> <p>With Spotlight reloaded launchd, the mds agent will immediately start running again to reindex the filesystem. Depending on the amount of changes and new files since the last time MDS ran, this can take a while. You can verify that MDS is running through Activity Monitor or by pulling down the Spotlight menu to see an “Indexing Drive Name” progress bar.</p> <p><img src="http://osxdaily.com/wp-content/uploads/2011/12/enable-spotlight-lion.jpg" alt="Enable Spotlight in OS X Lion" title="enable-spotlight-lion" width="619" height="219" class="aligncenter size-full wp-image-24717" /></p> </div> <p><a href="http://feedads.g.doubleclick.net/~a/T-hGkKrTBr5Gymlbuf_CNF3EDyQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/T-hGkKrTBr5Gymlbuf_CNF3EDyQ/0/di" border="0" ismap="true"></img></a><br/> <a href="http://feedads.g.doubleclick.net/~a/T-hGkKrTBr5Gymlbuf_CNF3EDyQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/T-hGkKrTBr5Gymlbuf_CNF3EDyQ/1/di" border="0" ismap="true"></img></a></p><div class="feedflare"> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=4hl1qmX6N4k:kK8C7IWbjSg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=4hl1qmX6N4k:kK8C7IWbjSg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=4hl1qmX6N4k:kK8C7IWbjSg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=4hl1qmX6N4k:kK8C7IWbjSg:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=4hl1qmX6N4k:kK8C7IWbjSg:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=4hl1qmX6N4k:kK8C7IWbjSg:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=4hl1qmX6N4k:kK8C7IWbjSg:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=qj6IDK7rITs" border="0"></img></a> </div><img src="http://feeds.feedburner.com/~r/osxdaily/~4/4hl1qmX6N4k" height="1" width="1"/> View the full article
Recommended Posts