spotlight, mds & mdutil
sometimes spotlight turns foolish when you connect an external harddrive. you notice that your harddrive is under continous usage, the cpu usage is nearly 100% all the time, and a process with the name mds is using up your cpu.
the remedy to this situation is to turn spotlight indexing off for the specific volume. this can be done with the command
there are several options to mdutil:
so to find out what status your drives are, you can run
if you turn the indexing off for a volume, you might want to remove the store also to free up drive space:
be careful about removing stores, it will take some time till they are rebuild from scratch. but sometimes spotlight behaves buggy, and then your only choice is to remove the store and begin over.
the remedy to this situation is to turn spotlight indexing off for the specific volume. this can be done with the command
mdutil.there are several options to mdutil:
mdutil [-pEs] [-i on | off] volume ... volume ist the path to the volume, i.e. /Volumes/MacHD/-i sets the indexing status-E erases the store (database)-s shows the indexing statusso to find out what status your drives are, you can run
sudo mdutil -s /Volumes/*if you turn the indexing off for a volume, you might want to remove the store also to free up drive space:
sudo mdutil -E -i off /Volumes/ExternalDrive/be careful about removing stores, it will take some time till they are rebuild from scratch. but sometimes spotlight behaves buggy, and then your only choice is to remove the store and begin over.



