MacOS – Can’t find network files over SMB protocol using the Spotlight in Lion

macosNetworksmbspotlight

I tried to find some files in a network volume mounted in OS X Lion over SMB using Spotlight. Didn't work.

But, when I tried the same search from OS X Snow Leopard it worked perfectly.

What do I need to perform this kind of search? Something to be enabled with the "defaults" command in the CLI?

Best Answer

You have to tell Spotlight to index the volume so you can find the files on it.

Open Terminal and issues the command:

sudo mdutil -i on /Volumes/<name of the network_volume you want SL to index>

This command should work in every version of macOS from Snow Lion up to El Capitan