Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

xineun

macrumors newbie
Original poster
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!
 
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!

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.
 
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!

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
 
Yes, I did too many things... I tried to restart the systemuiserver, but it does not work.

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
 
Yes, I did too many things... I tried to restart the systemuiserver, but it does not work.

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.