Hi Barney,
after I updated the Spotlight index on the external hard drive using the terminal program, the error came back after a while and I watched as a search gradually disappeared again. I have presented these terminal-steps in such detail because they primarily represent the correct way to solve the problem.
However, if extensive folder sharing has been set up on the external SSD, it can happen that the Spotlight index on this external SSD is lost, which is what happened to me. The problem was only resolved after I adjusted the folder sharing.
This is how I updated the Spotlight index on the external SSD hard drives for my MacMiniPro M2 using the Terminal command:
To update the Spotlight index on an external SSD hard drive on a Mac via the Terminal command,
I used the mdutil command.
This is how I proceeded:
1. Open terminal:
Opened the Terminal program on my Mac.
2. Path to external SSD hard drive searched:
"/Volumes/My_SSD"
3. Spotlight indexing disabled:
Before I updated the Spotlight index, I temporarily disabled indexing to speed up the update.
I used the following command for this:
"sudo mdutil -i off /Volumes/My_SSD"
4. Spotlight index updated:
After disabling indexing, I updated the Spotlight index.
I used the following command to do this:
"sudo mdutil -E /Volumes/My_SSD"
5. Enable Spotlight indexing:
After updating the index, I re-enabled indexing:
I used the following command to do this:
"sudo mdutil -i on /Volumes/My_SSD"
After I followed these steps, the Spotlight index on my external SSD hard drive was updated.
Some required administrator rights, so I had to enter my password to continue.