Go Back   The macosxhints Forums > OS X Help Requests > System



Reply
 
Thread Tools Rating: Thread Rating: 8 votes, 5.00 average. Display Modes
Old 06-19-2009, 06:47 AM   #1
Aninatalie
Prospect
 
Join Date: Jun 2009
Posts: 2
Unhappy Creation of the hidden folder.Spotlight-V100 on flash-drive

Good afternoon!

Prompt, please, as it is possible to forbid Mac OS X (Leopard) hidden folder creation .Spotlight-V100 on flash-drive at its connection?

Help me, please.

I am sorry for the English.
Aninatalie is offline   Reply With Quote
Old 06-19-2009, 01:06 PM   #2
Hal Itosis
Hall of Famer
 
Join Date: Apr 2002
Posts: 3,315
There might be some way to stop the creation of that folder (never tried myself).
What folks typically want is to prevent a searchable index from being maintained
on various drives. That can be achieved by making a special file at the root level:

touch /Volumes/name\ of\ disk/.metadata_never_index

So if your drive were named "My 8 Gig Flash", then you would mount it and run:

touch /Volumes/My\ 8\ Gig\ Flash/.metadata_never_index

--

Then, to erase any current index which it might have already acquired:

sudo mdutil -E /Volumes/My\ 8\ Gig\ Flash

Last edited by Hal Itosis; 06-19-2009 at 01:17 PM.
Hal Itosis is offline   Reply With Quote
Old 06-19-2009, 01:45 PM   #3
tw
Hall of Famer
 
Join Date: Apr 2007
Posts: 4,262
it's also possible to prevent indexing of the drive by opening System Preferences, going to the Spotlight pane, choosing the privacy tab, and adding the flashdrive to the privacy area. that should delete the current spotlight index on the drive at the same time.
__________________
Philosophy is a battle against the bewitchment of our intelligence by means of language. -LW-
tw is offline   Reply With Quote
Old 06-19-2009, 03:42 PM   #4
Cheech'i
Major Leaguer
 
Join Date: Mar 2006
Posts: 432
If you have several drives, or if it's someone else's drive and you're trying to prevent it on multiple 'random' drives, you should look into Blueharvest which works well for me.
__________________
Maybe the light at the end of the tunnel is you.
Cheech'i is offline   Reply With Quote
Old 06-19-2009, 03:59 PM   #5
Hal Itosis
Hall of Famer
 
Join Date: Apr 2002
Posts: 3,315
tw and Cheech'i,

But if/when Aninatalie takes that flash drive and plugs it into a friend's Mac (or one at work, etc.), then *that* Mac will try to index. The presence of the ".metadata_never_index" file will preclude Spotlight indexing on that volume, no matter which Mac mounts it.

[fwiw]
Hal Itosis is offline   Reply With Quote
Old 06-19-2009, 04:04 PM   #6
macosnoob
MVP
 
Join Date: Jan 2007
Posts: 1,902
Quote:
Originally Posted by tw
choosing the privacy tab, and adding the flashdrive to the privacy area. that should delete the current spotlight index on the drive at the same time.

That's what I thought, too. But the old index remains on the flash drive in my experience. It simply doesn't get updated again.

You can minimize the contents of the index by

(1) reformatting the flash drive,
(2) immediately adding it to the Privacy list before any files are placed on the flash drive.

.Spotlight-V100 still will be created, but it will remain empty.

I'd note that if you reformat the flash drive again, even with the same name, it falls from the Privacy list and needs to be added once more. Along these lines, Hal, a question for you: Do you know if there's a way to use your method with some sort of unique system-generated ID rather than the name of the flash drive? I might have several flash drives called "My 8 Gig Flash". Or would it even matter? Would that unique system-generated ID change every time you reformat?

---

Hal's last message posted while I was composing. I see his point.

Last edited by macosnoob; 06-19-2009 at 04:06 PM.
macosnoob is offline   Reply With Quote
Old 06-19-2009, 04:18 PM   #7
Hal Itosis
Hall of Famer
 
Join Date: Apr 2002
Posts: 3,315
Quote:
Originally Posted by macosnoob
Do you know if there's a way to use your method with some sort of unique system-generated ID rather than the name of the flash drive? I might have several flash drives called "My 8 Gig Flash". Or would it even matter?

Would not matter. The name of the file is simply ".metadata_never_index" and it is totally empty (no data inside).

No matter which method is used, if the disk gets erased or reformatted... then the files telling Spotlight to back off also get erased.
Hal Itosis is offline   Reply With Quote
Old 06-20-2009, 02:11 AM   #8
Malenfant
Prospect
 
Join Date: Jan 2003
Posts: 28
Life would be sooo much easier if Microsoft's simply wouldn't show files starting with a "." like any decent OS (Though i have a Philips Standalone DVD Player with an USB port that commits same sin...)

Also described methods works only for the indexing related files, OS X would still litter the thumbdrives with the .Trashes folder and .DS_Store and ._.Trashes files...

Thanks, Cheech'i! Looks like Blueharvest might be useful to me! Much obliged!

Last edited by Malenfant; 06-20-2009 at 02:33 AM. Reason: thanks added!
Malenfant is offline   Reply With Quote
Old 06-22-2009, 01:17 AM   #9
Aninatalie
Prospect
 
Join Date: Jun 2009
Posts: 2
Hal Itosis - Many thanks!!! It seems has helped.

tw, Cheech'i - too thanks!
Aninatalie is offline   Reply With Quote
Reply

Tags
.spotlight-v100

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 04:48 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.