Как защитить USB от папок .fseventsd, .Trashes, .Spotlight-V100 и файлов .DS_Store?
28545
static
Если вы даете кому-то свой USB-накопитель для размещения файлов на нем, это очень раздражает после очистки, все это бесполезно для артефактов, кроме платформ OSX, которые загрязняют диск. Есть ли какое-либо решение, чтобы предотвратить такое поведение. Может быть, написать эти файлы по своему усмотрению и установить для них права только на чтение, например «6/700»?
PS Я не спрашиваю, что делать на OSX другими, так как я не знаю, кто в следующий раз поставит мне новый файл (я не могу объяснить эту проблему и любые конфигурации всем другим людям), а скорее что делать с точки зрения USB-накопителя.
возможный дубликат [Как отключить создание Mac Snow Leopard в папках .Spotlight-V100 и .Trash в драйверах USB Flash?] (http://superuser.com/questions/89556/how-disable-mac-snow-leopard-creating-spotlight -v100-и-трэш-папка-в-USB)
kenorb 9 лет назад
0
2 ответа на вопрос
16
SaxDaddy
If you're going to share an writable, external disk with other OS X systems, you can run the following command from YOUR machine to prevent .DS_Store files from appearing
This existence of this hidden file will prevent OS X Spotlight from indexing the drive so you only need to do it once unless you reformat the drive. I don't know if this works cross-platform, e.g., the dreaded thumbs.db Windows files.
Hope this helps.
Таким образом, чтобы предотвратить запись скрытых файлов на USB, вы должны создать скрытый файл? Вздох
Basic 9 лет назад
10
To stop OS/X from doing Spotlight indexing, you need a file called .metadata_never_index in the root directory of the removable drive. To stop OS/X from making a .Trashes directory, you need to make your own file that isn't a directory and call it .Trashes To keep it from doing logging of filesystem events on the drive, you need to make a directory called .fseventsd and inside that folder put a single file named no_log. ... I don't know of any way to prevent OS/X from creating .DS_Store files, which track some preferences in each directory...
But read the blog for full information and details.