Unable to add external volumes to Spotlight's privacy

Still on 11.6.1 (waiting for first full decimal increment update of Monterey).


When trying to add (some but not all) external (backup/clone) volumes to Spotlight's Privacy tab to prevent it indexing them I get an error - when I drag, use '+' etc:


Privacy List Error The item couldn’t be added or removed because of an unknown error.


Have experimented with mdutil to no avail… get indexing errors etc.


The external (APFS-formatted) drives affected all pass Disk First Aid.


Is there any easy way to fix this, please?


TIA!

iMac 27″, macOS 10.14

Posted on Dec 6, 2021 11:06 AM

Reply

Similar questions

7 replies

Dec 8, 2021 12:01 PM in response to Barney-15E

Thank you very much, Barney.


I used the Terminal to remove the contents (one file and one empty subdirectory) of the .Spotlight-v100 directory on one of the two external volumes (no - not a Time Machine volume… I noticed how much more closely integrated TM is with Spotlight since Catalina). Although I was not root, no errors resulted from this operation.


Unfortunately this is still what I get:




Dec 8, 2021 3:36 PM in response to Barney-15E

Thanks again, @Barney-15E


This is odd, isn't it!


I tried all these operations (as root) and still get the error… cannot add the volume to Privacy…


sudo mdutil -i off /Volumes/name

root# mdutil -i off /Volumes/name

/System/Volumes/Data/Volumes/name:

Error: unable to perform operation.  (-400)

Error: unknown indexing state.


sudo mdutil -E /Volumes/name

mdutil -E /Volumes/name

/System/Volumes/Data/Volumes/name:

Error: unknown indexing state.


sudo mdutil -X /Volumes/name

mdutil -X /Volumes/name

461 files/directories removed


mdutil -i on /Volumes/name

/System/Volumes/Data/Volumes/name:

Error: unable to perform operation.  (-400)

Error: unknown indexing state.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Unable to add external volumes to Spotlight's privacy

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