Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

halloleo

macrumors newbie
Original poster
Dec 1, 2021
27
1
I have an external Time Machine drive "Follow" which I do not want to be used by Spotlight. So I made sure it is in Spotlight's exclusion list:

Screen Shot 2022-02-03 at 13.35.09_HS.jpg


However I can still (even after hours) here the external disk churning away. Looking at the open files with Sloth (a GUI to `lsof`) I get:

Screen Shot 2022-02-03 at 13.35.46_HS.jpg


This shows clearly Spotlight si doing something on the disk. How can I stop this?

PS: I'm on Catalina 10.15.7
 

halloleo

macrumors newbie
Original poster
Dec 1, 2021
27
1
Great tip, @bogdanw . Makes total sense.

However, when I try to disable viamdutil -i off -d /Volumes/Follow/ I get

Code:
/System/Volumes/Data/Volumes/Follow:
2022-02-04 22:54:01.939 mdutil[4067:480418] mdutil disabling Spotlight: /System/Volumes/Data/Volumes/Follow -> kMDConfigSearchLevelOff
Indexing enabled. (Indexing level may not be changed on volumes which have a Time Machine backup)

Follow does contain a Time Machine backup (from another machine), but how can I switch Spotlight off in this particular case?
 

bogdanw

macrumors 603
Mar 10, 2009
5,734
2,765
I don’t use Time Machine, so I don’t know how to deal with this case.
As always, maybe try with sudo :)

Code:
sudo mdutil -i off -d /Volumes/Follow/

Another idea, kMDConfigSearchLevelOff value is set in /Volumes/Follow/.Spotlight-V100/VolumeConfiguration.plist - Stores - PolicyLevel. You could try to add it manually and see if Spotlight obeys it.
 

halloleo

macrumors newbie
Original poster
Dec 1, 2021
27
1
Thanks for the tip. Will try it.

(For moment I was able to switch indexing off when the drive is connected to another computer (running Mojave) - Let's see whether this maybe propagates to when the drive is connected to the troubling computer (which runs Catalina).
 

Fishrrman

macrumors Penryn
Feb 20, 2009
28,519
12,648
My solution to "spotlight problems" is to TURN OFF spotlight.
I don't want it mucking around with my drives!
 
  • Like
Reactions: Snowlover

halloleo

macrumors newbie
Original poster
Dec 1, 2021
27
1
My solution to "spotlight problems" is to TURN OFF spotlight.
I don't want it mucking around with my drives!
Thank @Fishrrman . Question is though how can I turn spotlight completely off?

I tried the

sudo mdutil -i off -d /Volumes/Follow/ sudo rm -r /Volumes/Follow/.Spotlight-V100/Store-V2/

but after a while the drive starts working away again… and the Finder holds “random” files on the drive open. Really strange.
 

unphased

macrumors member
May 29, 2013
44
12
Yeah I had to turn off spotlight on my 12 inch macbook since it would keep it hot nonstop.

So now I can't even launch apps. I would really love it if I can tell spotlight to do nothing but index apps. It really does not need to do much of any work to index ~100 folders in the /Applications directory.
 

MacCheetah3

macrumors 68020
Nov 14, 2003
2,150
1,115
Central MN
Spotlight is used to index the files on your Mac, but it is not used by Time Machine to log file changes1. However, if you add a Time Machine backup disk to the privacy list, you will continue to see messages that Spotlight is indexing your backup disk. This indexing is necessary for Time Machine to function properly and can’t be disabled. Spotlight does exclude from searches any items you store on your backup disk that are not part of a Time Machine backup.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.