Long ago, I did an article on disabling those pesky files that show up for Windows computers but not Macs on network volumes when you browse folders. These are metadata files and have a number of uses. But if you have a lot of files in a folder on a USB drive or if you move the USB drive to a Windows computer, you might not want .dsstore or metadata files on USB drives either. To disable, use the following command, which writes a DSDontWriteUSBStores boolean key into com.apple.desktopservices:
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true