Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

mdutil Command doesnt work

Hi. Im trying to disable spotlight indexing for my back up volume wich is located on an external firewire drive. I type the command for disabling spotlight in terminal and get the message that indexing is disabled but that is nox true. Every new file shows up in spotlight search. What do i wrong?

mdutil -i off /Volumes/External\ Back\ Up

Mac OS X (10.5.2)

Posted on Sep 7, 2008 11:30 AM

Reply
9 replies

Sep 8, 2008 2:03 AM in response to doug pennington

None of that helps. I tryed it with sudo and it tells me even too "indexing disabled" but it is not!
Thanks so far.

@ Apple: Why you cant implement an tiny little button to spotlights privacy systempreferences that allows the user to mark an volume to "never indexing". I have to delete my Back Up volume completly before i start cloning the whole system. Always after that i have to put this volume in spotlights privacy because i dont wont my search results twice. That nerves!

Sep 8, 2008 2:33 AM in response to orangekay

I dont know who you meant with "quote a path from beginning". I provided the whole path that terminal shows me.

The -E Option doesn't help, i tryed it. The app you linked to costs money. I dont even think to pay a cent because of this bug. Also i cant find a clue in the discription that it will well and truly solve my problem. I think it stops indexing like the shell command should do and the only difference is that it has a gui. Am i wrong?

Sep 10, 2008 6:03 PM in response to Tohu

Do you mean the command fails completely or that it doesn't "stick"?

If you disable indexing and then delete the index, do you still get results for that volume?

I suspect that erasing the volume is always going to set things back to square one, though. Depending on how you're cloning, though, you might be able to build in the disable-indexing-and-delete-index so that it is done automatically if the commands do work temporarily.

The only reasonable configuration I've found (on Tiger) is disabling Spotlight completely, though, which obviously isn't the solution you're looking for.

I'm sure there are free/open source alternatives to Spotless if you look, though. And I suspect all it is doing, as you say, is putting a fancy gui on things.

Are you really using 10.5.2? If so, maybe updating would help? (Since I don't have access to Leopard and have never used it, this is merely a suggestion - I've no idea whether Apple's updates have affected this or not.)

- cfr

Sep 11, 2008 2:49 AM in response to Clea Rees

Hi Clea Rees.

The command to disable spotlight indexing seems to work in terminal but as i said the spotlight search will find the files on that volume further on. Also it finds files that i add to this volume after executing the command so that what terminal tells me ("indexing disabled") cant be true. I tryed to delete the index with the mdutil -E command but that doesnt help.

Youre right with the suspicion that earasing a volume will reset spotlights privacy settings. I had then the same idea like you. Thought i can erase the volume, restore the privacy setting and copy the spotlights hidden directory from that volume somewhere else so i can copy it back next time i delete the volume. But that do not help and i think this is because of spotlight saves the privacy information additionally on the startup volume and i dont know wich file it is.

Sorry for my forgetfulness, i have the latest updates installed. I will update my profile.

Sep 11, 2008 2:52 PM in response to Tohu

Tohu wrote:
The command to disable spotlight indexing seems to work in terminal but as i said the spotlight search will find the files on that volume further on. Also it finds files that i add to this volume after executing the command so that what terminal tells me ("indexing disabled") cant be true. I tryed to delete the index with the mdutil -E command but that doesnt help.

If you look for something *right after* deleting the index, does it still find it?
Youre right with the suspicion that earasing a volume will reset spotlights privacy settings. I had then the same idea like you. Thought i can erase the volume, restore the privacy setting and copy the spotlights hidden directory from that volume somewhere else so i can copy it back next time i delete the volume. But that do not help and i think this is because of spotlight saves the privacy information additionally on the startup volume and i dont know wich file it is.


Hmm... I don't think that would work anyway. Just guessing but if Spotlight identifies volumes using their UUIDs, then nothing like that would work as you'll get a new UUID each time you erase. You'd have to incorporate the commands to set the privacy up into your backup routine somehow. For example, I used to do this with a script derived from (an earlier version of) Carbon Copy Cloner.

Like you, I found indexing tended to get re-enabled though I did find the delete and disabling scripts worked temporarily. As I say, it is easy to kill Spotlight completely but I'm assuming you want it to run for your main drive.

But my work around requires the basic disable/delete commands to work so that doesn't help you much...

- cfr

mdutil Command doesnt work

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