Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How do I stop Mac OS X from putting hidden .Trashes and .Spotlight-V100 folders/files on USB drives?

share|improve this question

3 Answers 3

You can prevent spotlight from indexing certain folders by going to the "privacy" tab in the "Spotlight" preference pane in the System Preferences app. You can use this to add specfic USB drives to the list of things not to index. That should get rid of the .Spotlight-V100 files. This is not a generic solition for "all drives", but has to be done specifically for each drive.

As for not creating .Trashes files. I don't think that's possible. That's how OS X deals with deleted items.

share|improve this answer

I don't know of anyway to stop them being put on manually, but Blue Harvest is a tool that will do it for you.

share|improve this answer

One way is to create files called .Trashes and .Spotlight-V100

To be sure, do this from a Windows PC and make the files read-only. Just be careful that they don't get deleted.

When you try to delete files now, OS X will tell you they must be deleted immediately instead of moving them to the trash.

share|improve this answer
1  
This works, but not in a general sense. I keep having these conversations along the lines "what are all these hidden files you put on my drive" - not ideal... –  John McC Oct 2 '09 at 4:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.