Force Spotlight to reindex drive

Discussion in 'macOS' started by kuebby, Mar 27, 2008.

  1. kuebby macrumors 68000

    kuebby

    Joined:
    Jan 18, 2007
    Location:
    SFV
    #1
    Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Mobile/4A102 Safari/419.3)

    Ok, so lately it seems that spotlight is missing things, iCal events, address book entries, etc. So I'd like to force it to just reindex my internal hard drive, how can I accomplish this?
     
  2. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #2
    The simplest way I know of to accomplish this is to open up System Preferences, add your drive to the list of things not to index, close System Preferences, reopen it, remove your drive, and close System Preferences again.
     
  3. brand macrumors 601

    brand

    Joined:
    Oct 3, 2006
    Location:
    127.0.0.1
  4. jman995x macrumors regular

    Joined:
    Sep 8, 2007
    #4
    Question from a Noob....I have an external HDD with 1,000's of mp3's on it.
    I was listening to some songs yesterday (on the HDD), so I know they are there.
    Today, I went to Spotlight and looked for some of the songs I listened to yesterday and Spotlight doesn't find SOME of them.
    When I navigate to the folder and song myself....ta da, there are the songs....but Spotlight doesn't see them when it's searching.

    So, what am I missing, and what do I need to do in order to get Spotlight back on track?

    Do I need to reindex that external drive, and if so, what is the terminal code for doing that?

    Thanks,

    Justin
     
  5. dilbert4life macrumors regular

    dilbert4life

    Joined:
    Jun 23, 2008
    Location:
    Bolivia, according to my flag :P
    #5
    Yes, you do need to reindex the external drive. The code for doing that is

    Code:
    sudo mdutil -E [DRAG_VOLUME_HERE_FROM_FINDER]
    It will ask you for your users password. Enter it and then it should star doing its thing. If you get an error, enter this instead

    Code:
    sudo mdutil -i off [DRAG_VOLUME_HERE_FROM_FINDER] ; sudo mdutil -i on [DRAG_VOLUME_HERE_FROM_FINDER]
    That will turn the indexing off for your drive, and then back on, at which point Spotlight will reindex it.

    Let me know if that works out for ya.:apple:
     
  6. macmaster24 macrumors member

    Joined:
    Feb 7, 2011
    Location:
    philly, PA
    #6

    Will this work, or will it like delete my hard drive or something?
     
  7. GGJstudios macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #7
  8. canadianpj macrumors 6502

    Joined:
    Jun 27, 2008
    #8

Share This Page