Using Terminal to stop indexing for Spotlight

Hello all:

As others have noted, indexing can kick in at very inconvenient times and hog valuable processing resources. I've tried using the following Terminal command:
sudo mdutil -i off
But it doesn't seem to have any effect on the indexing process.

Am I doing something wrong?

Thanks!
Bruce

G4, Mac OS X (10.4.5)

Posted on Jun 2, 2009 8:31 PM

Reply
3 replies

Jun 3, 2009 8:53 PM in response to bkengland

bkengland wrote:
Thanks for that information. Is there a way to issue the command such that it applies to all drives? (e.g., with a wildcard entry)


you can do

sudo mdutil -i off /volumes/*

this will turn off spotlight on all currently mounted drives. however it will not affect new drives you mount later.

As far as troubleshooting Spotlight, can you suggest a good reference source for me to use? For example, what events can trigger the indexing process, and what occurs during indexing, stage by stage?

see these pages for some info
http://www.thexlab.com/faqs/stopspotlightindex.html
http://developer.apple.com/documentation/Carbon/Conceptual/MetadataIntro/Metadat aIntro.html

what exactly is happening in your case? sometimes reindexing a drive is all that's needed. add it for about 10 seconds to the privacy pane in spotlight systme preferences and then remove it from there. this will reindex the drive.
Bye for now!
Bruce


Message was edited by: V.K.

Message was edited by: V.K.

Jun 2, 2009 9:12 PM in response to bkengland

you have to supply that terminal command with a path to the volume where you want to turn off indexing. to turn it off on your startup drive use

sudo mdutil -i off /

for other drives it would be

sudo mdutil -i off /volumes/"drive name"

But I would suggest you try to figure out your problems with spotlight. it should normally consume very few resources and should not "kick in at very inconvenient times".

Jun 3, 2009 3:16 PM in response to V.K.

Thanks for that information. Is there a way to issue the command such that it applies to all drives? (e.g., with a wildcard entry)
As far as troubleshooting Spotlight, can you suggest a good reference source for me to use? For example, what events can trigger the indexing process, and what occurs during indexing, stage by stage?

Bye for now!
Bruce

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Using Terminal to stop indexing for Spotlight

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.