Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > How to re-index Spotlight

How to re-index Spotlight
Thread Tools
mpancha
Grizzled Veteran
Join Date: May 2005
Location: Toronto, ON
Status: Offline
Reply With Quote
Nov 1, 2005, 12:52 PM
 
I searched for this on MacNN and came up with a lot of useless discussion threads, so I figure I'll post this for anyone else who needs to re-index spotlight to save them the trouble of google'ing through a lot of useless articles:

To reindex Spotlight:

1) Go to System Preferences -> Spotlight
2) Click on the Privacy Tab
3) add your hard drive(s) to the privacy list
4) to verify that Spotlight stopped indexing your hard drive, you can do a search for anything and it should come up empty.
5) Remove your hard drive(s) from the Privacy List
6) Close System Preferences
7) At this point Spotlight should be reindexing your drive, depending on the hard drive size, it may take awhile (I have a 30 Gig HD and it took Spotlight an hour to reindex)

If it worked, you will get this when you try to invoke spotlight (command space):



Hope that helps someone in the future.
( Last edited by mpancha; Jan 16, 2006 at 12:10 PM. Reason: re-enabled screenshot)
MacBook Pro | 2.16 ghz core2duo | 2gb ram | superdrive | airport extreme
iBook G4 | 1.2ghz | 768mb ram | combodrive | airport extreme
iPhone 3GS | 32 GB | Jailbreak, or no Jailbreak
     
CatOne
Mac Elite
Join Date: Nov 2001
Status: Offline
Reply With Quote
Nov 1, 2005, 01:22 PM
 
Or...

sudo mdutil -E /

from the terminal.

A lot easier, eh?
     
mpancha  (op)
Grizzled Veteran
Join Date: May 2005
Location: Toronto, ON
Status: Offline
Reply With Quote
Nov 1, 2005, 01:25 PM
 
heh.. yea, that would have been alot easier... I spent a few minutes google'ing and searching macnn and apple's kbase, and got a lot of articles, nothing that just said "do this".... but that command was exactly what I was trying to find earlier. Thanks!
MacBook Pro | 2.16 ghz core2duo | 2gb ram | superdrive | airport extreme
iBook G4 | 1.2ghz | 768mb ram | combodrive | airport extreme
iPhone 3GS | 32 GB | Jailbreak, or no Jailbreak
     
toneloco28
Junior Member
Join Date: Oct 2004
Status: Offline
Reply With Quote
Nov 1, 2005, 01:31 PM
 
Or you could just add it to the privacy tab, and remove it immediately without exiting system preferences. Works everytime for me, plus a lot of people aren't comfortable with inputting commands in the terminal.
     
Judge_Fire
Mac Elite
Join Date: Jan 2001
Location: Helsinki, Finland
Status: Offline
Reply With Quote
Nov 1, 2005, 01:36 PM
 
After installing 10.4.3, rebuilding permissions and erasing/rebuilding the Spotlight index, it still fails to find most of my stuff. It's been this since I got Tiger.

'Touch'ing the affected folders or their contents via the command line doesn't help, but renaming does.

Maybe I'll create a script that adds a space at the end of every single (visible) file name in those folders and then renames them back. Sigh.

J
     
JustAnOl'Broad
Mac Enthusiast
Join Date: Feb 2005
Location: The Nut Ranch
Status: Offline
Reply With Quote
Nov 7, 2005, 05:30 AM
 
Originally Posted by toneloco28
people aren't comfortable with inputting commands in the terminal.
I would be one of these people; really afraid I'll mess something up.

Thanks JF for the info.
P~
     
Love Calm Quiet
Mac Elite
Join Date: Mar 2001
Location: CO
Status: Offline
Reply With Quote
Nov 8, 2005, 10:17 AM
 
Mpancha:
Are you aware the graphic you tried to place forwards browser to
http:// tamilfx.ezh/ suspended.page/
?
( As does anything going to www.matheepan.com )
(FYI)
TOMBSTONE: "He's trashed his last preferences"
     
Ji Eun
Mac Enthusiast
Join Date: Feb 2004
Location: Nagoya
Status: Offline
Reply With Quote
Nov 8, 2005, 11:24 AM
 
thx, nice tip. i was getting some erroneous items in my results here.

12" iBook 1.2ghz / 1.2gb
     
Big Mac
Clinically Insane
Join Date: Oct 2000
Location: Los Angeles
Status: Offline
Reply With Quote
Nov 8, 2005, 11:47 AM
 
Here's a great Macworld article on the subject. Scroll half way down and read the Force Spotlight to Reindex section.

"The natural progress of things is for liberty to yield and government to gain ground." TJ
     
mpancha  (op)
Grizzled Veteran
Join Date: May 2005
Location: Toronto, ON
Status: Offline
Reply With Quote
Nov 8, 2005, 03:17 PM
 
Originally Posted by Love Calm Quiet
Mpancha:
Are you aware the graphic you tried to place forwards browser to
http:// tamilfx.ezh/ suspended.page/
?
( As does anything going to www.matheepan.com )
(FYI)

yea, I just found out that my old host went under and was kind enough not to inform me. Looking for a new host now.
MacBook Pro | 2.16 ghz core2duo | 2gb ram | superdrive | airport extreme
iBook G4 | 1.2ghz | 768mb ram | combodrive | airport extreme
iPhone 3GS | 32 GB | Jailbreak, or no Jailbreak
     
Judge_Fire
Mac Elite
Join Date: Jan 2001
Location: Helsinki, Finland
Status: Offline
Reply With Quote
Nov 8, 2005, 04:46 PM
 
Hmm, it seems mdimporter is crashing because of a font file or something and refuses to start indexing a big branch of files and folders. I'll keep digging.

J
     
Love Calm Quiet
Mac Elite
Join Date: Mar 2001
Location: CO
Status: Offline
Reply With Quote
Nov 8, 2005, 05:20 PM
 
Mpancha:
Some pretty good threads in the web developer forum on hosts!
TOMBSTONE: "He's trashed his last preferences"
     
Love Calm Quiet
Mac Elite
Join Date: Mar 2001
Location: CO
Status: Offline
Reply With Quote
Nov 9, 2005, 12:46 AM
 
Mpancha:
Some pretty good threads in the web developer forum on hosts!
TOMBSTONE: "He's trashed his last preferences"
     
Judge_Fire
Mac Elite
Join Date: Jan 2001
Location: Helsinki, Finland
Status: Offline
Reply With Quote
Nov 9, 2005, 04:37 PM
 
Ok, it was a font. The mdimport process crashed when encountering a font with probs and couldn't recover. Anything after that never got indexed, in my case a lot of stuff.

I placed the folderful of fonts in another place and ran mdimport again, successfully. I'm quite sure the UI based trick would work, too.

Lesson learned: corrupt fonts continue to cause problems for the OS, now in even more obscure places.

J
     
flaminghick
Fresh-Faced Recruit
Join Date: Nov 2005
Status: Offline
Reply With Quote
Nov 24, 2005, 03:22 PM
 
I have tried everything I have read...

Adding volumes to the privacy tab: Nothing will stick...nothing will index.

All the terminal commands from several threads...it wan't take any commands, indicating there's no directory to index or something like that...

I have also been told to throw out the .Spotlight-V100 file in my root directory...

Maybe I don't know what a root directory is...I thought I did...but I can't find it. And I obviously can't search for it...

Please, someone explain to me like a child where to find this file so I can throw it away...or anything else I can do to get spotlight up and running...

Thanks in advance...
     
mpancha  (op)
Grizzled Veteran
Join Date: May 2005
Location: Toronto, ON
Status: Offline
Reply With Quote
Nov 24, 2005, 04:23 PM
 
type in these commands in terminal:

1) su <enter>
2) put in your root password
3) cd /<enter>
4) ls

you should see .spotlight-v100 there.

here's a screenshot if it will help.

MacBook Pro | 2.16 ghz core2duo | 2gb ram | superdrive | airport extreme
iBook G4 | 1.2ghz | 768mb ram | combodrive | airport extreme
iPhone 3GS | 32 GB | Jailbreak, or no Jailbreak
     
mpancha  (op)
Grizzled Veteran
Join Date: May 2005
Location: Toronto, ON
Status: Offline
Reply With Quote
Nov 24, 2005, 05:37 PM
 
... abuse reported ...
MacBook Pro | 2.16 ghz core2duo | 2gb ram | superdrive | airport extreme
iBook G4 | 1.2ghz | 768mb ram | combodrive | airport extreme
iPhone 3GS | 32 GB | Jailbreak, or no Jailbreak
     
Love Calm Quiet
Mac Elite
Join Date: Mar 2001
Location: CO
Status: Offline
Reply With Quote
Nov 26, 2005, 09:04 AM
 
Must have been some juicy abuse. There's now NO post between your last two, mpancha.
TOMBSTONE: "He's trashed his last preferences"
     
Gavin
Mac Elite
Join Date: Oct 2000
Location: Seattle
Status: Offline
Reply With Quote
Nov 26, 2005, 10:50 AM
 
no need to su to root for a simple directory listing. and potentially dangerous.
Code:
ls -a /
will do the trick
You can take the dude out of So Cal, but you can't take the dude outta the dude, dude!
     
Gavin
Mac Elite
Join Date: Oct 2000
Location: Seattle
Status: Offline
Reply With Quote
Nov 26, 2005, 10:55 AM
 
Just for the record, what was the abuse?

It was torture wasn't it?
You can take the dude out of So Cal, but you can't take the dude outta the dude, dude!
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 12:56 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,