Skip navigation

sudo mdutil -E but still "spotlight disabled"

3763 Views 17 Replies Latest reply: Jun 21, 2013 7:23 AM by Michael Levin RSS
1 2 Previous Next
Michael Levin Level 2 Level 2 (175 points)
Currently Being Moderated
Jun 19, 2013 4:51 AM

My Spotlight stopped being able to find certain files, so I wanted to re-index the drive. I tried putting the drive on/off the Privacy list of Spotlight control panel, and when it didn't help, I tried the terminal command:

 

[mlevinoffice:~] mlevin% sudo mdutil -E /

Password:

/:

    Indexing disabled.

[mlevinoffice:~] mlevin%

 

     why does it still say "Indexing disabled" after the sudo mdutil -E??

  • WZZZ Level 6 Level 6 (11,875 points)
    Currently Being Moderated
    Jun 19, 2013 5:42 AM (in response to Michael Levin)

    Did it finish? Try

     

    sudo mdutil -a -i on

     

    or

     

    sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

  • WZZZ Level 6 Level 6 (11,875 points)
    Currently Being Moderated
    Jun 19, 2013 9:36 AM (in response to Michael Levin)

    I think you just have to wait it out. Depending on how much data you have, it can take a good long while.

  • WZZZ Level 6 Level 6 (11,875 points)
    Currently Being Moderated
    Jun 19, 2013 10:46 AM (in response to Michael Levin)

    Try a Safe Boot-Shift at the startup chime. Expect a much longer time to finish booting, give it a few minutes in Safe Boot and then restart normally.

  • Mark Jalbert Level 5 Level 5 (4,385 points)
    Currently Being Moderated
    Jun 19, 2013 10:55 AM (in response to Michael Levin)

    The "a" option on mdutil tells spotlight to index everything. Playing with the Spotlight preference pane may have created the file- /.Spotlight-V100/Store-V1/Exclusions.plist. Spotlight may be confused. Does the console log show any messages?

  • WZZZ Level 6 Level 6 (11,875 points)
    Currently Being Moderated
    Jun 19, 2013 1:18 PM (in response to Mark Jalbert)

    I was going to suggest

     

    sudo rm -rf /.Spotlight-V100/*

     

    and then a restart to start the indexing all over again.

     

    Michael, you can try this, HOWEVER, very important, you must absolutely only copy/paste this in to Terminal and be 150% certain that it appears in Terminal just the way it appears here. One incorrect space and there goes your entire drive with everything in it, system and users.

     

    This will delete the Spotlight index. Once you have completed this command do a restart and Spotlight should now fully reindex the drive.

     

    There are spaces between sudo and rm, between rm and -rf and between -rf and /.Spotlight. Those three spaces and that's it, there are no spaces in the rest of the command. If you accidentally put a space between / and .Spotlight you will lose everything. Proceed at your own risk.

     

    Message was edited by: WZZZ

  • Mark Jalbert Level 5 Level 5 (4,385 points)
    Currently Being Moderated
    Jun 19, 2013 1:59 PM (in response to WZZZ)

    Have you tried to remove all the files spotlight uses while the process is still active? I think this is a bad idea.

  • WZZZ Level 6 Level 6 (11,875 points)
    Currently Being Moderated
    Jun 19, 2013 2:24 PM (in response to Mark Jalbert)

    I think you're right. What about first running

     

    sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

     

    The formatting here is creating a line break. There should be no space between /LaunchDaemons and /com.apple

     

    Then restart and load instead of unload. Or is load even necessary after the restart?

  • WZZZ Level 6 Level 6 (11,875 points)
    Currently Being Moderated
    Jun 21, 2013 5:22 AM (in response to Michael Levin)

    mds is Metadata Server. It's one of the underlying processes for Spotlight. Not sure I'll be able to do that much with it, but why don't you post one the crash logs for mds. It can be found in Console /Library/Logs/DiagnosticReports.

     

    Did Spotlight finish indexing? Are these logs from before, during or after that?

     

    You marked this as solved, but then you are posting logs showing significant problems. Can you please explain where things stand now.

  • Pondini Level 8 Level 8 (38,710 points)
    Currently Being Moderated
    Jun 21, 2013 6:52 AM (in response to Michael Levin)

    Michael Levin wrote:

     

    Now I see there's a problem - Time Machine won't work:

    Spotlight going nuts (pardon the technical term ) can interfere with TM backups.  They'll run at a crawl. 

     

    Turn TM off until you get it fixed.

     

    WZZZ's suggestion to delete the index, so OSX has to re-create it "from scratch," ought to fix it.  It has for several folks, and I don't recall any posting back saying it didn't.

1 2 Previous Next

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.