Me di cuenta de que spotlight estaba usando mucha CPU y no tenía tiempo para depurarlo, así que desactivé spotlight con este comando:
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
Ahora quiero volver a habilitar spotlight y depurar por qué no para de indexar mi disco, pero no consigo averiguar cómo volver a habilitarlo.
$ sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
/System/Library/LaunchDaemons/com.apple.metadata.mds.plist: service already loaded
Pero cuando busco algo me sale "Sin resultados".
Esta es mi configuración:
¿Cómo puedo volver a activar la indexación?
[EDITAR]
He probado una de las respuestas sugeridas con este resultado:
% sudo mdutil -a -i off
Password:
/:
2020-09-03 15:35:44.980 mdutil[33360:1381738] mdutil disabling Spotlight: / -> kMDConfigSearchLevelFSSearchOnly
Indexing disabled.
/System/Volumes/Data:
2020-09-03 15:35:45.026 mdutil[33360:1381738] mdutil disabling Spotlight: /System/Volumes/Data -> kMDConfigSearchLevelFSSearchOnly
Indexing disabled.
/Volumes/MBP15 Time Machine:
2020-09-03 15:35:45.060 mdutil[33360:1381738] mdutil disabling Spotlight: /Volumes/MBP15 Time Machine -> kMDConfigSearchLevelFSSearchOnly
Indexing enabled. (Indexing level may not be changed on volumes which have a Time Machine backup)
/Volumes/MBP15 Time Machine/Backups.backupdb:
2020-09-03 15:35:49.728 mdutil[33360:1381738] mdutil disabling Spotlight: /Volumes/MBP15 Time Machine/Backups.backupdb -> kMDConfigSearchLevelFSSearchOnly
Indexing enabled.
% sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
/System/Library/LaunchDaemons/com.apple.metadata.mds.plist: Operation not permitted while System Integrity Protection is engaged
% sudo mdutil -a -i on
/:
Indexing enabled.
/System/Volumes/Data:
Indexing enabled.
/Volumes/MBP15 Time Machine:
Indexing enabled.
/Volumes/MBP15 Time Machine/Backups.backupdb:
Indexing enabled.