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

sleepyyellow

macrumors regular
Original poster
hey,

i didnt like spotlight at all, so i searched how to disable it, but then i didnt know that the search was working with spotlight haha. i actually i only wanted the icon away from the menu bar but i googled a guide that made me delete the com.apple files from spotlight. also my appcleaner that i bought doesnt work anymore cuz i think it worked with spotlight to locate applications in installed.
i read a post that had the title re-indexing spotlight with external drives but i didnt quiet get the command.

does anybody know how to help me? i been googling for a while now but no solution works, or i either dont really understand.

those are the files i deleted
• /System/Library/LaunchAgents/com.apple.Spotlight.plist
• /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
 

Neil321

macrumors 68040
To reindex spotlight,open spotlight from system preferences > privacy tag > click the + button > add the volume you want reindexing > wait for a minute or two > select the volume in the privacy area > click the - to remove it
 

richard.mac

macrumors 603
Feb 2, 2007
6,292
4
51.50024, -0.12662
try these Unix command/s

Code:
To only turn off indexing on a volume: 
sudo mdutil -i off /Volume/drivename/ 

To Turn off indexing and remove indices on a volume: 
sudo mdutil -E -i off /Volumes/drivename/ 

To only turn on indexing on a volume: 
sudo mdutil -i on /Volumes/drivename/ 

To turn on indexing and rebuild indices on a volume: 
sudo mdutil -E -i on /Volumes/drivename/ 

[B]To only force rebuilding of indices on a volume: 
sudo mdutil -E /Volumes/drivenam[/B]e
 

gusious

macrumors 65816
Dec 2, 2007
1,277
2
Greece
I may be wrong but maybe you have to install the whole OSX. Isn't spotlight a huge and crucial part of OSX?
 

richard.mac

macrumors 603
Feb 2, 2007
6,292
4
51.50024, -0.12662
leave "Volumes" as it is. "drivename" means the name of your hard drive. so for your main hard drive it would be "Volumes/Macintosh HD" or just simply "/" and for an external drive it would be 'Volumes/nameofexternaldrive".
 

gusious

macrumors 65816
Dec 2, 2007
1,277
2
Greece
leave "Volumes" as it is. "drivename" means the name of your hard drive. so for your main hard drive it would be "Volumes/Macintosh HD" or just simply "/" and for an external drive it would be 'Volumes/nameofexternaldrive".

Even if it is Macintosh HD, the HD part shouldn't be linked somehow with the Macintosh part? With a " _ " or something like that?
 

richard.mac

macrumors 603
Feb 2, 2007
6,292
4
51.50024, -0.12662
^ oh yeah! sorry it would be "/Volumes/Macintosh\ HD/".

i always forgot to type those backslashes as i usually just hit tab before a space i.e. type "/Volumes/M" then press tab.
 

gusious

macrumors 65816
Dec 2, 2007
1,277
2
Greece
Thanks a lot ^!!!!!

I was looking for this for a very long time cause i didn't know how to go to directories or files with a gap on their name!!!!!!

Next lesson:how to open apps through Terminal....
 

gusious

macrumors 65816
Dec 2, 2007
1,277
2
Greece
No need to answer! Found it! With the extension!

We only learned basic unix commands... Not things like this...:(:rolleyes:
 

sleepyyellow

macrumors regular
Original poster
try these Unix command/s

Code:
To only turn off indexing on a volume: 
sudo mdutil -i off /Volume/drivename/ 

To Turn off indexing and remove indices on a volume: 
sudo mdutil -E -i off /Volumes/drivename/ 

To only turn on indexing on a volume: 
sudo mdutil -i on /Volumes/drivename/ 

To turn on indexing and rebuild indices on a volume: 
sudo mdutil -E -i on /Volumes/drivename/ 

[B]To only force rebuilding of indices on a volume: 
sudo mdutil -E /Volumes/drivenam[/B]e

nope those sadly didnt work either. :(
 

sleepyyellow

macrumors regular
Original poster
this is the error that shows up.
 

Attachments

  • Picture 1.gif
    Picture 1.gif
    337.7 KB · Views: 596

gusious

macrumors 65816
Dec 2, 2007
1,277
2
Greece
well last night i just reinstalled it, and i made a time machine backup and it worked out fine all my documents and programs are back to normal.
and spotlight is working also...

thanks guys for all the help.

Next time be careful and not mess around with OSX stuff. Even if you don't want them, leave them as they are. Or you can ask here first to get some opinions and then do whats you gotta do!;)
 

sleepyyellow

macrumors regular
Original poster
ya i will.

now i finally found the command on how to get rid of spotlight ONLY ON THE MENUBAR.

if anybody wants it...

Code:
Disable Spotlight from the menu bar If you want to get rid of Spotlight from the menu bar, simply open terminal and run: 

sudo chmod 0 /System/Library/CoreServices/Spotlight.app

To re-enable it you just have to run: 

sudo chmod 755 /System/Library/CoreServices/Spotlight.app
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.