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

ks-man

macrumors 6502a
Original poster
Sep 25, 2007
742
15
I was getting very poor performance on my iMac for some time but never gave it all that much thought. Recently though it was getting smoked by my MBA. I did some searching and found that the problem was related to my Bootcamp partition. I guess Spotlight tries to index bootcamp but because of the NTFS drive it causes a bottleneck. I use WinXP but I read about other people having issues with Vista and 7.

Here is what I did:
1) Create a blank Notepad txt document at the root level of your c: drive called .metadata_never_index.txt
2) Run CMD
3) ren c:\.metadata_never_index.txt .metadata_never_index
4) Restart Windows
5) Restart Mac OS

The idea is to create a file at the root level called .metadata_never_index
You need to use the rename function in CMD to remove the .txt. Having this file on your c: drive will tell Spotlight to ignore Bootcamp.

This drastically has sped up the performance of my Mac OS. Many applications would take between 4-20 bounces of the App before they opened. Now most open on the first and the worst offender (Chrome) is usually 3-4. Switching between Spaces is much quicker also. Startup on Windows is faster as well.

Hope this helps other people. I don't know if everybody is having this problem or just certain people. I think my problem may have started when I upgraded from Leopard to Snow Leopard so if you do or don't notice improvements with this fix be sure to mention what your original and current OS versions are.
 
What about Systems Preferences -> Spotlight -> Privacy and add the partition and folders you don't want indexed?
 
What about Systems Preferences -> Spotlight -> Privacy and add the partition and folders you don't want indexed?

I read somebody reporting that they still had issues doing it that way but had success after creating the file themselves. I would think it would do the same thing but who knows. I guess the main point should be ensuring the Spotlight isn't indexing the Bootcamp drive as I'm pretty confident that is where the bottleneck is.
 
I read somebody reporting that they still had issues doing it that way but had success after creating the file themselves. I would think it would do the same thing but who knows. I guess the main point should be ensuring the Spotlight isn't indexing the Bootcamp drive as I'm pretty confident that is where the bottleneck is.

I am too, and I had the same issue before. This is how I solved it.
 
What about Systems Preferences -> Spotlight -> Privacy and add the partition and folders you don't want indexed?

After reading over this webpage and one of the responses it seems like the above method may not actually work. Here is the response:

macuser:
That’s actually what I’d originally tried. However, the change doesn’t carry over upon restart.
The problem is that the NTFS partition isn’t writeable, so it can’t actually save the changes (those exclusions must be saved to the very drive you’re trying to exclude). When you add a folder to the exclusions on another drive, it’s added to /Volumes/volume_name/.Spotlight-V100/Store-V1/Exclusions.plist . If the volume isn’t writeable, it can’t make that change (or even add that path).
It’s almost certain to work if the volume is FAT/FAT32 (and is indeed much easier in that case), but won’t if it’s NTFS.

I think the method of actually creating the file in the Bootcamp partition is a better method. The webpage linked above shows another way to create the file with nice graphical support.

Hope it helps.
 
After reading over this webpage and one of the responses it seems like the above method may not actually work. Here is the response:



I think the method of actually creating the file in the Bootcamp partition is a better method. The webpage linked above shows another way to create the file with nice graphical support.

Hope it helps.

Then how do you explain it does work for me? It does save it upon restart. And it also makes no sense to say it doesn't save on an NTSF disk, because I would guess the settings are saved on the Mac partition.
 
Thanks, for the tip. I'll be using bootcamp when I get my iMac, so this will definitely come in handy.

You need to use the rename function in CMD to remove the .txt.

Not sure why you'd need CMD, you can just remove the file extension in Windows Explorer.

Also, why doesn't bootcamp do this anyway if it causes such a huge problem with OSX?
 
Okay, I think I now why it does work for me. I have made my NTFS partition writable using some software, hence that my suggestion at the beginning does work.
 
It's also worth noting that if you use a Time Machine backup, make sure that you set up Spotlight to exclude it from indexing.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.