I'm trying to create a spolight index of a directory on a shared drive (a corporate Windows active directory drive) using mdutil following the simple guide here. Here's an example of my syntax:

mdutil "/Volumes/volName/Directory/Directory Containing Spaces/Another Directory" -i on

The error message I get confuses me:

Error: invalid operation.

No index.

I know there's no index, I'm running this command in order to create one.

How am I getting a "no index" error on a command that should create an index? Is there some step I'm missing?

  • 1
    How do you mount the network drive? With afp or smb?
    – klanomath
    Jul 6, 2015 at 18:24
  • ------- It's smb Jul 6, 2015 at 19:25

1 Answer 1


Indexing can be enabled or disabled only on the root of the drive, so, "/Volumes/volName". You can read more about the command by typing man mdutil into the terminal. An excerpt:

-i on | off: Sets the indexing status for the provided volumes to on or off. Note that indexing may be delayed due to low disk space or other conditions.

Also, indexing won't work on a drive mounted with SMB. You will have to use AFP in order to do so.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .