Sped up my iMac with a mdutil command

The machines we love to hate

Moderator: Wiz Feinberg

Post Reply
User avatar
b0b
Posts: 29108
Joined: 4 Aug 1998 11:00 pm
Location: Cloverdale, CA, USA
Contact:

Sped up my iMac with a mdutil command

Post by b0b »

The Finder window on my iMac has been really slow. Today I may have discovered why. Finder uses a program called Spotlight to do searches. Spotlight constantly updates an indexed database of file metadata with a service called mds. With me so far?

In Activity Monitor, I saw that mds was using a lot of processor time. I used mdutil to turn off indexing and the Finder search function quit working. Not good - I use that all the time. I turned indexing back on and noticed that it was indexing my external USB backup drive. What da? That drive is huge (2 TB) and slow, and I almost never look at it. Luckily there's a mdutil command to disable indexing of individual volumes. Here it is:
<pre>
sudo mdutil -i off "/Volumes/WD Backups"</pre>
Type that into a terminal window with the name of the drive that you want to disable (mine is WD Backups). Suddenly my iMac is fast again! There's a manpage with a list of the mdutil commands. Check it out.

<pre> man mdutil</pre>

If anyone thinks this is a bad idea, let me know. I just discovered this subsystem today. I might have just enough rope to shoot myself in the foot!
-𝕓𝕆𝕓- (admin) - Robert P. Lee - Recordings - Breathe - D6th - Video
User avatar
Ian Rae
Posts: 5826
Joined: 10 Oct 2013 11:49 am
Location: Redditch, England
Contact:

Re: Sped up my iMac with a mdutil command

Post by Ian Rae »

b0b wrote:I might have just enough rope to shoot myself in the foot!
Now that bit I do understand.
Make sleeping dogs tell the truth!
Homebuilt keyless U12 7x5, Excel keyless U12 8x8, Williams keyless U12 7x8, Telonics rack and 15" cabs
Post Reply