Where is my spotlight?

Discussion in 'Mac OS X Lion (10.7)' started by xineun, Aug 5, 2011.

  1. macrumors newbie

    Joined:
    Aug 4, 2011
    #1
    When I was using snow leopard, I disabled spotlight by using method below:

    sudo mdutil -a -i off
    sudo chmod 600 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search
    killall SystemUIServer
    sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

    After upgraded to lion, I did following steps:

    sudo mdutil -a -i on
    sudo chmod 777 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search
    sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

    I can search stuff in finder now, but the spotlight icon does not show in the menu bar, and the keyboard shortcut for spotlight does not work. How can I solve this problem?

    Thanks!
     
  2. macrumors 68040

    DewGuy1999

    Joined:
    Jan 25, 2009
    #2
    I've never done this so it might not work, but from this discussion it looks like you might need to run the
    Code:
    killall SystemUIServer
    command to restart the menu.
     
  3. macrumors 68030

    Joined:
    Feb 26, 2011
    Location:
    Cincinnati, OH
    #3
    The only command you should need to turn off spotlight on all volumes is

    Code:
    sudo mdutil -a -i off
    Like DewGuy1999 said restart the SystemUIServer
     
  4. thread starter macrumors newbie

    Joined:
    Aug 4, 2011
    #4
    It does not work. Even restarting the laptop does not work. :(

     
  5. thread starter macrumors newbie

    Joined:
    Aug 4, 2011
    #5
    Yes, I did too many things... I tried to restart the systemuiserver, but it does not work.

     
  6. macrumors 68030

    Joined:
    Feb 26, 2011
    Location:
    Cincinnati, OH
    #6
    Try to recover the files you changed with TM. Don't know what else to try, they are simple commands and should have reverted when you entered them.
     
  7. thread starter macrumors newbie

    Joined:
    Aug 4, 2011
    #7
    Thanks, it works. :)
     

Share This Page