用 mdutil 关闭某个卷的 Spotlight 索引
对从不搜索的硬盘节省 CPU 和磁盘写入。
运行 `sudo mdutil -i off /Volumes/卷名` 停止该卷的索引。
01命令
命令
$ sudo mdutil -i off /Volumes/工作盘02作用说明
Spotlight 默认会索引所有挂载的卷,对备份盘、虚拟机镜像或不常搜索的大容量归档来说纯属浪费。关闭索引可停止后台持续重建索引;加 `-E` 还能擦除已有索引以释放空间。先用 `mdutil -s /Volumes/卷名` 查看当前状态。
03风险
!注意: 关闭后该卷将不出现在 Spotlight 和访达搜索结果中——需要搜索时用 `-i on` 重新开启;除非接受失去应用搜索功能,否则不要对系统盘关闭索引。
04撤销
撤销
$ sudo mdutil -i on /Volumes/工作盘05来源
- mdutil – Manage Spotlight indexes依据: Documents -i on/off, -E erase, and per-volume status
最后验证: 2026-09-18 · 分类: 系统与设置