Skip to content

Instantly share code, notes, and snippets.

@danieljfarrell
Created February 29, 2016 15:39
Show Gist options
  • Save danieljfarrell/d1092dbdb5a46c864145 to your computer and use it in GitHub Desktop.
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
// 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