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
 
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
 
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
 
I may be wrong but maybe you have to install the whole OSX. Isn't spotlight a huge and crucial part of OSX?
 
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".
 
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?
 
^ 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.
 
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....
 
Code:
cd /Applications; open nameofapplication.app
^ colon allows to run two commands in one line.

easy really… next lesson?
 
No need to answer! Found it! With the extension!

We only learned basic unix commands... Not things like this...🙁🙄
 
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. 🙁
 
this is the error that shows up.
 

Attachments

  • Picture 1.gif
    Picture 1.gif
    337.7 KB · Views: 633
ya does somebody know how i can backup my applications and files so i dont have to reinstall everything? does time machine do that?
 
^ yes. use Migration Assistant in the setup to migrate your Time Machine backup. you may have to install larger applications again like Office and Creative Suite.
 
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.
 
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!😉
 
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.