First a little background about OSX. When your mac boots up, it runs several property-list files (*.plist) via launchd, a unified, open source service management framework for starting, stopping and managing daemons, applications, processes, and scripts. So if we don't want Spotlight to start up and we don't want the mds process to index your drive(s), all we need to do it prevent launchd from starting the plist files that start these processes.
Here's how you do that (tested on Mac OSX Leopard 10.5)...
SpotlightOpen up Terminal, and run the command:
sudo launchctl unload -w /System/Library/LaunchAgents/com.apple.Spotlight.plist
MDS, MDSWORKERIn Terminal, run the command:
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
Spotlight's Index FilesTo get rid of Spotlight's files run the following command in Terminal:
sudo rm -r /.Spotlight-V100
Getting Spotlight backIf you change your mind after diabling Spotlight, all you need to do to start it again is to run the following commands in Terminal:
sudo launchctl load -w /System/Library/LaunchAgents/com.apple.Spotlight.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
Piece of Cake!!!
**Disclaimer - Use at your own risk. And remember, don't believe everything you read on the Internet! :)