Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

External hard drive indexing

Hi - I am using an external 5TB drive to store archived art files that every now and again I need to retrieve. I navigate to the folder I want to search and start searching and it takes forever for something to show up. I believe this is because the drive seems to lose its index and the Macbook Pro has to start re-indexing. Is this correct? Surely there must be a way of keeping that indexing somewhere for use when the external drive is attached. Am I missing something? thanks. DJH

MacBook Pro 16″, macOS 11.2

Posted on Mar 8, 2021 11:14 AM

Reply
Question marked as Top-ranking reply

Posted on Mar 8, 2021 9:14 PM

Start by making sure the drive is not excluded from being indexed by opening System Preferences > Spotlight > Privacy.


The subsequent list you should see on this page is a list of all locations that Spotlight is prohibited from searching. If your drive is listed, select it and remove it from the list.


If your drive was listed and you removed it from this list then your problem will be resolved the next time Spotlight re-indexes your files.


You can force Spotlight to re-index your files and if your drive was not on the previous list then this would be the next step in attempting to resolve the issue. Open Terminal.app and issue the following command to clear out Any existing index and have Spotlight do a completely fresh re-index of your entire system.

    
    sudo mdutil -Ea
    mdutil -ai off
    mdutil -ai on


Alternatively if you want to just re-index the drive in question you can have Spotlight re-index any specific location by modifying the command slightly like so


sudo mdutil -E /Volumes/YourDriveName


If the issue is still not resolved open Disk Utility and run First Aid on the drive to ensure there are no errors. Also be sure that if you disconnect the drive you are unmounting it properly before physically disconnecting it and you are not disconnecting it while the index is in progress.



Similar questions

15 replies
Sort By: 
Question marked as Top-ranking reply

Mar 8, 2021 9:14 PM in response to djaytch

Start by making sure the drive is not excluded from being indexed by opening System Preferences > Spotlight > Privacy.


The subsequent list you should see on this page is a list of all locations that Spotlight is prohibited from searching. If your drive is listed, select it and remove it from the list.


If your drive was listed and you removed it from this list then your problem will be resolved the next time Spotlight re-indexes your files.


You can force Spotlight to re-index your files and if your drive was not on the previous list then this would be the next step in attempting to resolve the issue. Open Terminal.app and issue the following command to clear out Any existing index and have Spotlight do a completely fresh re-index of your entire system.

    
    sudo mdutil -Ea
    mdutil -ai off
    mdutil -ai on


Alternatively if you want to just re-index the drive in question you can have Spotlight re-index any specific location by modifying the command slightly like so


sudo mdutil -E /Volumes/YourDriveName


If the issue is still not resolved open Disk Utility and run First Aid on the drive to ensure there are no errors. Also be sure that if you disconnect the drive you are unmounting it properly before physically disconnecting it and you are not disconnecting it while the index is in progress.



Reply

Mar 9, 2021 9:27 AM in response to DCondrey

Thank you for your reply. I now recall that the drive was being indexed by the Macbook pro when I left it on in the morning. When I came back I found the "Always eject your drive before...." message and realized the drive had crashed causing it to be incapable of future mounting. I was indexing for quite a few hours and was quite hot when I touched it. It appears the act of indexing a 5TB drive is too much for it somehow. This is the 3rd drive that has failed in a similar fashion and I am only just realizing that it is very probably the indexing which is causing them to crash. Thanks

Reply

Mar 11, 2021 4:43 PM in response to Old Toad

Hey - I tried the SMC reset and it still does not appear in Disk Utility - tried different ports - thinking of switching to Brandy! Fortunately I copied the data to another drive which seems to be operating normally (fingers crossed) but I really want to keep an extra copy so I guess I get my money back on the drive from Costco and get another. I'm wondering why this is happening - this is the third drive this has happened to - I feel like it is something to do with my Macbook or perhaps the cable adaptor? What would cause a disk to be unreadable/unmountable/invisible? - thanks DJH

Reply

Mar 11, 2021 6:02 PM in response to djaytch

If the drive is not visible in Finder or Disk Utility the problem is likely to do with the way in which it is connected to the computer. The cable you are using or the port you are connected to may not be delivering enough power to the drive for it to fully initialize.


Trying using a different cable and different ports to see if the issue persists. If it doesn’t then you can determine which port or cable is not functioning properly.


Alternatively, if the drive does not show in Finder but in Disk Utility it is listed but grayed out then you simply have the drive formatted incorrectly and can resolve the issue by reformatting the drive. To recover the data before reformatting you can attempt to connect to it using a Windows OS to offload the data.


Reply

Mar 11, 2021 7:11 PM in response to DCondrey

Hi - I tried different cables, different connectors and ports and nothing changes. I tried it on a PC and it didn't show up there either. I think Spotlight somehow corrupted the boot information while it was indexing. Is that even possible? thanks. DJH

Reply

Mar 14, 2021 12:20 PM in response to Old Toad

Thanks to everyone for your ideas and support. After trying all the suggestions I decided to call Seagate who are sending me another drive. It doesn't answer the question as to why it failed so dramatically, but based on everything I have read it seems that I should format the drive to Mac OS Extended (Journaled) instead of leaving it at exFAT. Apparently more harm can be done to a drive that self-ejects when using ExFAT than if it is Mac OS Extended. Hopefully the new drive won't have the same issue. Thanks again! DJH

Reply

External hard drive indexing

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