不知道是怎么回事,但是我的Spotlight搜索停止了,我在寻找解决方案,但没有成功:
我在终端上尝试了这个命令,得到了错误:
~ % sudo mdutil -i off /
Spotlight server is disabled.
~ %sudo mdutil -i on /
Spotlight server is disabled.没有成功
发布于 2021-10-02 08:45:14
我发现我的Big Sur 11.6APFS数据量不知何故被禁用了(纯粹是猜测:可能是使用OpenCore旧补丁0.2.4的产物)。
症状是Spotlight搜索返回的是普通的操作系统命中,所以看起来根卷被正常索引。但是,没有显示用户文档或安装的应用程序。因为我挂载了一堆服务器卷,所以我不断地检查/上的mdutil状态,擦除索引,重新构建LaunchServicesDB,重新安装macOS,等等。什么都不管用。
由于我在这个Mac上只有一个本地卷,所以除了/之外,我没有考虑查看其他卷上的状态。我费了好大劲才意识到Spotlight为合成卷的底层挂载点建立了索引。确凿的证据...
sudo mdutil -sa
/:
Indexing enabled.
/System/Volumes/Data:
Indexing disabled.由于/ System /Volumes/Data只是合成磁盘的一半,因此不能使用Spotlight系统首选项窗格来停用/重新激活索引。对可见的Finder卷(即合成磁盘)执行此操作对/System/Volumes/Data没有任何影响。不过,您仍然可以使用mdutil ...
sudo mdutil -i on /System/Volumes/Data
/System/Volumes/Data:
Indexing enabled.这对我很有效。如此简单,但却是Big Sur APFS的一个非常凌乱的人工制品。另外,我还使用了sudo mdutil -E /System/Volumes/Data来擦除卷上的索引,但我不认为这是必要的。希望这对其他人有帮助;这让我焦虑了几天。
不知道我的音量怎么会变成这种状态。希望我永远不需要弄清楚这件事。
发布于 2021-07-03 01:29:47
我在网上搜索,找到了这个解决方案:
Goto Applications -> Utilities
Open Terminal
run this command:
~ % sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
you will see this output
/:
Indexing enabled.再次打开Spotlight并搜索,现在应该可以工作了。
https://stackoverflow.com/questions/68229219
复制相似问题