APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS











(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Home > foo-mac > Disabling Spotlight
Printer Friendly Version





Disabling Spotlight

Note - in more recent versions, I think Spotlight is great - and would NOT suggest disabling it.

I feel sorry for the Apple developers who worked on Spotlight. I'm sure they put a lot of effort into it, and likely think it's a great feature. I suppose it must be disappointing that so many of us don't use it and don't want it even running. It can really bog down your machine when you are doing things like copying down a lot of files or moving things around; if you aren't going to use it anyway, why waste those cpu cycles and the disk space for the index?

Indeed. So let's get rid of it, shall we?

The first step is to become root. You can do everything with "sudo", but we have a few steps here, so it's easiest to start with "sudo su -". Give your ordinary password, and you have a root prompt.

To disable Spotlight from starting up at boot, edit /etc/hostconfig and change the Spotlight line:


 SPOTLIGHT=-NO-
 
 











For each disk drive, turn off Spotlight indexing:

 mdutil -i off /
 mdutil -i off /myotherdrive
 
 

Note that you'll see errors if the disk is very busy when you do that. Wait till the disk activity stops and try again.

Then run:

 mdutil -E /
 mdutil -E /myotherdrive
 
 

If there's any "mdimport" running in Activity Monitor or ps, kill it.

This gets rid of the index, but doesn't remove the .Spotlight directory, so:

  cd /
  rm -rf .Spotlight*
  cd /myotherdrive
  rm -rf .Spotlight*
 
 

Reboot after all this and you shouldn't be bothered by Spotlight again.

Some web sites have suggested using the System Preferences > Spotlight > Privacy tab but apparently that can cause other problems.


Technorati tags:


If this page was useful to you, please click to help others find it:  

Your +1's can help friends, contacts, and others on the web find the best stuff when they search.

7 comments




More Articles by Tony Lawrence - Find me on Google+



Click here to add your comments





Sun Jan 28 20:40:59 2007:   anonymous


Thank you!

That helped me ALLOT!



Sun Feb 4 05:34:17 2007:   anonymous


Spotless also does the same thing. It has a small shareware fee:

http://www.fixamacsoftware.com/software/spot/index.php



Wed Aug 22 22:57:29 2007:   anonymous


don't get me wrong, its a good feature for most cases, but it's great to have to way to disable it.




Tue Nov 20 22:24:41 2007:   TonyLawrence

gravatar
On 10.5 Leopard, it's much. much better and I use it all the time:
http://aplawrence.com/MacOSX/leopard_spotlight.htm






Tue Jun 3 14:49:17 2008:   Shaun


Thank you. Had to use sudo as I can't recall the root PW.





Wed Mar 31 21:18:53 2010:   nachopro

gravatar
Hello, thanks for your article... but in 10.6 (Snow Leopard) the SPOTLIGHT=-NO- entry in /etc/hostconfig has no effect :(

I can't remove spotlight from menu bar and if I make a search, mds process consume all procesor (when index is disabled)

Is good idea disable mds ? Can affect another applications, like safari history or other ?

thanks



Wed Mar 31 21:22:07 2010:   TonyLawrence

gravatar
I can't imagine why you would want to disable it in 10.6 but I suppose you must have some reason. For me, it's now a great feature with no downside.

I have no idea how, sorry -

Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



ad

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.


My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!


book graphic unix and linux troubleshooting guide




 I sell and support
 Kerio Mail server
pavatar.jpg

This post tagged:

       - MacOSX




Unix/Linux Consultants

Skills Tests

Guest Post Here