External SSD Keeps Losing its Index

I have a 4TB SSD directly connected to my Mac. It's rarely disconnected. I keep everything powered up with surge protection/battery backups so I know it's not losing power. For some reason, Finder keeps losing the index to this drive. Sometimes it lasts for weeks, sometimes just for days, but I regularly have to rebuild the index just for this drive. The internal SSD doesn't have the problem. Both drives are formatted APFS.


It's making me crazy because the external is my content drive and I need to be able to search it. I know how to rebuild the index, I go into Settings>Siri & Spotlight>Spotlight Privacy and add the folders I'd like indexed, then delete them. It always works, I'd just like to prevent the index from getting lost in the first place.


Anyone know what could be causing this?

MacBook Pro 15″, macOS 13.6

Posted on Jan 9, 2024 9:42 AM

Reply

Similar questions

14 replies

Jun 20, 2024 5:51 AM in response to Skip Kelly

Skip Kelly wrote:

As an example, let's say I have a folder named "Project" full of files named "audio.mp3" and variations of that like "audio_42.mp3". If I do a search of the folder for anything named "audio" I get zero results even though I'm looking right at the files.

I go into Settings>Siri & Spotlight>Spotlight Privacy, add then remove the "Project" folder and shortly thereafter my search is functional again.

The problem is only ocurring on my external SSD.

There are some unusual things there. First of all, the default search is a keyword search, not a file name search. You have to wait half a second and wait for the search options menu to appear before you can do a file name search. Can you confirm you are actually doing a file name search?


Next, the default search is a full search of the entire computer. You have to have a Finder window open on the folder you want to search. Then, you have to search the entire computer. There's no way to avoid this. The search starts immediately. You have to manually click on the Folder name in the search options toolbar. Can you confirm you are actually changing the search folder? And, if so, what happens if you don't change the search folder?


Does the problem occur with only one specific folder? Does the problem occur with only one specific kind of file? What happens if you create an "audio_42.txt" file in that folder? Is it immune to these problems? Do you have any apps anywhere on this external disk?


How is this external disk formatted? Do you have ownership enabled on the disk?


A common myth about Spotlight involves the indexing. People see a problem, rebuild the index, and then the problem returns. They assume there must be some problem with the index. But Spotlight actually doesn't work that way. The problem is not the index, but the indexing software. Much of the indexing software is actually 3rd party apps. So if there is some 3rd party app with an indexing problem, that will show up as a Spotlight problem. Any app on any visible hard drive will be used for indexing. If you have multiple apps that handle the same file format, it is undetermined which one will be used.


My speculation in your case is that you have some old 3rd party audio app on this external disk. Your audio index is fine. But when you connect the disk, that old app takes over indexing and promptly reindexes the disk, breaking the index. When you force rebuild the index, some Apple app takes over because the 3rd party app crashed during its index. This continues until the next time you insert the disk. Of course, this is just speculation. But my point is that it is 3rd party software that may be doing the indexing. Maybe review Console.app and look for crash reports from between the time the index was working and when it stopped working. You might find the culprit there. Simply rebuilding indexes forever isn't ever going to fix it.

Jun 20, 2024 1:25 PM in response to Skip Kelly

Skip Kelly wrote:

I use it as my Dropbox folder and keep all my content there. Documents, pictures, music, etc. The root of the drive is literally just the Dropbox folder.

Ah, there it is. That's definitely the problem.


I'm not familiar with 3rd party sync tools. The last I heard, DropBox and the others had switched to Apple's new API. A side effect of this was that people could only have their sync folders in their home directories on the startup volume. People who were using external disks were very upset. But that's all I know.


Maybe see if you can configure DropBox to exclude any of those hidden files start start with a "." at the root of the drive. Hopefully that will prevent DropBox from corrupting them. But there's no guarantee that will fix it. If this is an old version of DropBox, then it might not be playing nicely using the modern file coordination routines that Spotlight expects to see.

Jan 9, 2024 10:06 AM in response to Skip Kelly

Give this a try: boot into Safe Mode according to How to use safe mode on your Mac and reboot normally test.


NOTE 1: Safe Mode boot can take up to 3 - 5 minutes as it's doing the following; 

• Verifies your startup disk and attempts to repair directory issues, if needed

• Loads only required kernel extensions (prevents 3rd party kernel/extensions from loading)

• Prevents Startup Items and Login Items from opening automatically

• Disables user-installed fonts 

• Deletes font caches, kernel cache, and other system cache files


NOTE 2: if you have a wireless keyboard with rechargeable batteries connect it with its charging cable before booting into Safe Mode. This makes it act as a wired keyboard as will insure a successful boot into Safe Mode.


If the above doesn't help the following:  Reset NVRAM or PRAM on your Mac - Apple Support (for Intel Macs) and Mac startup key combinations - Apple Support (for both types).  


Apr 12, 2024 7:22 AM in response to Old Toad

I tried booting in Safe Mode, but still have the issue. Originally, I tried fixing it on my old 2017 Intel Macbook Pro. Since then, I have upgraded to a new M3 Pro MacBook Pro and I'm still losing my external drive's index. I was hoping the new system would magically fix the problem. I used the Migration Assistant to set up the new system, so the problem may have transferred over. No issues on the internal drive's index, it's just the external, but that's where I keep all the files that I need to search through.


It's a great drive, I'm using a 4TB Samsung SSD (990 PRO PCIe 4.0 M.2 2280) with a Satechi Thunderbolt 4 enclosure. I just wish I could keep the index intact.


Jun 19, 2024 7:41 AM in response to Old Toad

I'll try running First Aid on the drive, but the drive itself is brand new. (Unless any errors in the file system were copied over with the migration.) I'm not running any "cleaning", "optimizing", "speed-up", anti-virus, or VPN apps. I do regularly use Dropbox, the Adobe Creative suite (mainly Audition), and MS Office. For the most part, everything else is an Apple app. I try to keep a very basic, clean system because I use it for work and want all the performance I can get out of it. I just can't figure out what's causing the index to keep disappearing!

Jun 19, 2024 2:03 PM in response to Skip Kelly

Skip Kelly wrote:

Finder keeps losing the index to this drive. Sometimes it lasts for weeks, sometimes just for days, but I regularly have to rebuild the index just for this drive.

Can you clarify what you mean by "Losing the index"? What is the actual problem? Suppose you didn't rebuild the index. What problem would the drive then display? Please be specific.

Jun 19, 2024 2:33 PM in response to etresoft

As an example, let's say I have a folder named "Project" full of files named "audio.mp3" and variations of that like "audio_42.mp3". If I do a search of the folder for anything named "audio" I get zero results even though I'm looking right at the files.


I go into Settings>Siri & Spotlight>Spotlight Privacy, add then remove the "Project" folder and shortly thereafter my search is functional again.


The problem is only ocurring on my external SSD.

Jun 20, 2024 1:12 PM in response to etresoft

Thank you for your help on this! I'm not doing any kind of specific search, I'm just typing the search string I'm looking for into the box and looking at the results. I don't know what the default behavior is, but if I search for "audio" it will bring up files with "audio" in the filename and also in the content of the file - which is what I prefer.


I have my default search settings set to first search whichever folder I am currently in, as opposed to searching the entire computer. Changing to a different folder or searching the whole drive makes no difference. When the issue is happening I get no results from any folder on the drive.


It's not affecting just one file type or just one folder, it's the entire drive - but only that particular external SSD. When the problem occurs, the search simply returns zero results for any query.


The drive is formatted APFS. I am the owner of the drive and all the folders I'm usually searching in. Mine is the only account on the computer, I don't share it with anyone. There are no apps on this drive. I use it as my Dropbox folder and keep all my content there. Documents, pictures, music, etc. The root of the drive is literally just the Dropbox folder.


I checked the Console.app logs and there were no crash reports at all.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

External SSD Keeps Losing its Index

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.