#navi_header|技術| USBストレージに対するSpotlightインデックス作成を無効にする手法(MacOSX Lion, 10.7.2 で確認): + 買ってきたばかりのまっさらのUSBストレージをMacに接続する。 ++ Spotlightのインデックス作成が始まるが、まだまっさらなのですぐ終わる。 ++ まっさらでなければ、しばらくはインデックス作成が動いているが、とりあえず無視する。 + Terminal を開く。 + "sudo mdutil -i off /Volumes/(Volume Name)" を実行する。 + "/Volumes/(Volume Name)" に移動し、"touch .metadata_never_index" を実行。 + ".Spotlight-V100/", "._.Trashes" は削除してOK + ".Trashes/", ".fseventsd/" は残しておく。 最終的に、Terminal上で"mdutil -a -s"したときに "/Volumes/(USB ドライブの Volume名)" について Indexing が disabled されていればOK。 $ sudo mdutil -s /Volumes/REFS/ Password: /Volumes/REFS: Indexing and searching disabled. あんまり詳しく検証していないのだけど、".fseventsd/"や".Trashes/"まで削除してしまうと、USBドライブを再接続したときに自動的にSpotlightが再indexingを開始してしまう場合があった。というわけで、安定解としては以下の流れ。 + とにかく "mdutil -i off" でまずSpotlightIndexingを無効化する。 + ".metadata_never_index", ".fseventsd/", ".Trashes/" の3セット以外のドットファイル・フォルダを削除する。 参考: - osx - How disable mac snow leopard creating .Spotlight-V100 and .Trash folders in USB Flash Drivers? - Super User -- http://superuser.com/questions/89556/how-disable-mac-snow-leopard-creating-spotlight-v100-and-trash-folders-in-usb - Spotlight indexing off on USB drive...: Apple Support Communities -- https://discussions.apple.com/thread/2608199?start=0&tstart=0 - Spotlight Indexing External USB Drive?: Apple Support Communities -- https://discussions.apple.com/thread/1850611?start=0&tstart=0 - Disable spotlight for USB thumbdrives?: Apple Support Communities -- https://discussions.apple.com/thread/1461768 - Mac Spotlightで検索インデックスの作成を停止する裏技 / Inforati -- http://inforati.jp/apple/mac-tips-techniques/system-hints/how-to-disable-mac-spotlight-indexing.html - Snow LeopardになってSpotlight停止機能はより簡単に | Macの手書き説明書 -- http://veadardiary.blog29.fc2.com/blog-entry-2514.html #navi_footer|技術|