Skip navigation

HT2409: Spotlight: How to re-index folders or volumes

Learn about Spotlight: How to re-index folders or volumes

HT2409 Why does Spotlight not index my disk?

348 Views 7 Replies Latest reply: May 1, 2013 4:01 PM by Linc Davis RSS
spamallyouwant Calculating status...
Currently Being Moderated
May 1, 2013 9:14 AM

One of my disks does not get indexed properly by Spotlight.  It is a single partition, HFS+ encrypted, but that doesn't stop Spotlight from indexing my other disks so I don't see why it should affect it.  I have tried disabling indexing, deleting the index files and re-enabling indexing.  Spotlight then spends about 30 seconds re-indexing, but it ought to spend a lot longer, and afterwards it is still not able to locate any of the files on the disk.

Mac Pro, OS X Mountain Lion (10.8.3)
  • Linc Davis Level 10 Level 10 (107,485 points)

    Back up all data.

     

    Triple-click anywhere in the line below to select it:

     

    mdutil -as

     

    Copy the selected text to the Clipboard (command-C).

     

    Launch the Terminal application in any of the following ways:

     

    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

     

    ☞ In the Finder, select Go Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

     

    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.

     

    Paste into the Terminal window (command-V).

     

    The output of the command will show whether indexing (Spotlight) is enable for each mounted volume. Is it enabled for the volume in question?

  • Linc Davis Level 10 Level 10 (107,485 points)

    If you have more than one user account, these instructions must be carried out as an administrator.

     

    Launch the Console application in any of the following ways:

     

    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

     

    ☞ In the Finder, select Go Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

     

    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.

     

    Step 1

     

    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select

    View Show Log List

    from the menu bar.

     

    Enter "mdworker" (without the quotes) in the Filter text field. Select the most recent 50 or so messages that appear in the Console window. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).

     

    If there are long runs of repeated messages, post only one example of each. Don't post many repetitions of the same message.

     

    When posting a log extract, be selective. Don't post more than is requested.

    Please do not indiscriminately dump thousands of lines from the log into this discussion.

     

    Some personal information, such as the names of your files, may be included — anonymize before posting.

     

    Step 2

     

    Do the same with the search string "mds".

  • Linc Davis Level 10 Level 10 (107,485 points)

    Please enter the following command in the Terminal window in the same way as before (no typing) and post the output:

     

    find /V*/* -type f -name .dontIndex

  • Linc Davis Level 10 Level 10 (107,485 points)

    Back up the volume, erase, and restore.

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.