21 July 2008

Disabling Finder Indexing (Sort Of...)

Still on my quest to find out how to disable Finder/Spotlight indexing, I have found a solution of sorts. My ultimate goal is to prevent finder indexing any external drives by default, but this is a partial solution that will at least prevent any further indexing of a specific drive. Unfortunately, you will still have to go and delete the indexing that occurs when you first plug it in.

So, the solution?

Launch Terminal.app and use the command

sudo mdutil -i off /Volumes/

You have to do that for each drive in turn, but at least you should only have to do it once.

You can check the status of the drive by running the command

sudo mdutil -s /Volumes/

It should give the status as "Indexing disabled."

Note: You will probably have to eject and (when applicable) shut off the external drive and reconnect it to have the status accurately displayed.

No comments: