Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

oxband

macrumors 6502
Original poster
Sep 10, 2009
333
4
I had a RAID 5. I copied the contents of that drive to a regular external hard drive. So, instead of being a RAID, it was a single drive.

Since then, when I search in the finder, the results are weird and wrong. It's giving me odd files directions and things that just aren't accurate. I want to reindex the drive so when I search in the finder window, it actually points me in the right direction.

I tried this solution - https://support.apple.com/en-us/HT201716 - but it didn't work.

Any suggestions? I'm running Big Sur 11.6
 
My solution from Terminal

Code:
sudo mdutil -d -i off /Volumes/ExternalDrive

sudo rm -rf /Volumes/ExternalDrive/.Spotlight-V100

sudo mdutil -i on /Volumes/ExternalDrive; sudo mdutil -E /Volumes/ExternalDrive

About mdutil https://ss64.com/osx/mdutil.html
 
My solution from Terminal

Code:
sudo mdutil -d -i off /Volumes/ExternalDrive

sudo rm -rf /Volumes/ExternalDrive/.Spotlight-V100

sudo mdutil -i on /Volumes/ExternalDrive; sudo mdutil -E /Volumes/ExternalDrive

About mdutil https://ss64.com/osx/mdutil.html
If I do this.....do I need to change anything in this script to have my drive name? Or just use as written? Thanks so much.
 
Replace ExternalDrive with the name of your drive. If it contains spaces, put it in quotes:
Code:
sudo mdutil -d -i off "/Volumes/My Drive"
 
When I try the second step, it doesnt work. I'll copy and paste. You can see the name of the drive is "In the Pines RAID 5." Thoughts? Thanks again.

noamscomputercatalina@MacBook-Pro-5 ~ % sudo rm -rf /Volumes/"In the Pines Raid 5"/.Spotlight-V100



rm: /Volumes/In the Pines Raid 5/.Spotlight-V100: Operation not permitted

noamscomputercatalina@MacBook-Pro-5 ~ %
 
Skip that second step and re-enable the indexing with
Code:
sudo mdutil -i on “/Volumes/In the Pines Raid 5/”
sudo mdutil -E “/Volumes/In the Pines Raid 5/”
 
I am trying to do that but it tells me there's an invalid path. Attached is a screenshot. Thoughts?
Screen Shot 2022-06-01 at 1.00.40 PM.png
 
It looks like the terminal doesn't like the quote characters you used.

Type in the commands with regular double quotes and don't copy and paste. Otherwise if you do copy and paste, you have to edit the command to delete out the left quote and right quote characters and insert the doublequote character.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.