Created
February 29, 2016 15:39
-
-
Save danieljfarrell/d1092dbdb5a46c864145 to your computer and use it in GitHub Desktop.
Command line instructions to prevent Finder.app from writing .Spotlight-V100 .Trashes ._.Trashes .disk .fseventsd to a mounted network disk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://apple.stackexchange.com/questions/6707/how-to-stop-os-x-from-writing-spotlight-and-trash-files-to-memory-cards-and-usb | |
mdutil -i off /Volumes/yourUSBstick | |
cd /Volumes/yourUSBstick | |
rm -rf .{,_.}{fseventsd,Spotlight-V*,Trashes} | |
mkdir .fseventsd | |
touch .fseventsd/no_log .metadata_never_index .Trashes | |
cd - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment