JUST UPGRADED TO MONTEREY 12.0.1 - DUPLICATE FILE COPIES ON USB STICK KEEP SHOWING UP

I am having a similar issue as reported in this previous post in which .(invisible file name and shown as "File" type) are being duplicated.


I am running Win10 on a virtual machine (Parallels). I recently upgraded to upgraded to Monterey OS and now have the same problem of duplicate files showing up on the Windows side but not in Finder. This did not occur on previous OS versions.


How do I correct this so it doesn't keep recurring?? I am tired on having to delete these files constantly.




Posted on Nov 17, 2021 5:32 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 17, 2021 6:14 PM

Presumably NTFS or FAT.


macOS is going to create some hidden files for Finder data, and potentially for other activity depending on (for instance) the apps in use.


If you want to see the hidden files in macOS Finder, Command-Shift-Period is the hidden-file toggle. (The following is for a volume named USB. Change the label as needed. Since this is the shell, escape any spaces within the volume name with a backslash \. /Volumes/A\ B\ C for a volume named A B C, for instance.)


sudo mdutil -i off -d /Volumes/USB
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true


The dot_clean tool can be your friend, too:

dot_clean /Volumes/USB


See man dot_clean for details of what it clobbers.


The BlueHarvest app might interest, too.

12 replies
Question marked as Top-ranking reply

Nov 17, 2021 6:14 PM in response to MCS2010

Presumably NTFS or FAT.


macOS is going to create some hidden files for Finder data, and potentially for other activity depending on (for instance) the apps in use.


If you want to see the hidden files in macOS Finder, Command-Shift-Period is the hidden-file toggle. (The following is for a volume named USB. Change the label as needed. Since this is the shell, escape any spaces within the volume name with a backslash \. /Volumes/A\ B\ C for a volume named A B C, for instance.)


sudo mdutil -i off -d /Volumes/USB
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true


The dot_clean tool can be your friend, too:

dot_clean /Volumes/USB


See man dot_clean for details of what it clobbers.


The BlueHarvest app might interest, too.

Nov 19, 2021 5:55 PM in response to MCS2010

This is what was referenced earlier, can’t be entirely disabled, and marginally manageable from Windows. You can reduce the creation of some files as was described previously, but macOS apps including Finder are still going to write those metadata-related files where Windows can find them.


While you’ve not seen these hidden files on FAT or such before, dot files are far from new.


Windows 10 has a means to disable that display with the attrib command, too. Sort of. Though it seems attrib applies to existing files, and not to newly-created files. Which means it needs to be re-run. The link goes to a hack which re-runs the command.


https://albertrtk.github.io/2020/10/04/Hide-files-and-directories-that-name-starts-with-a-dot-(on-Windows-10).html

https://windowsloop.com/attrib-command-to-hide-folder-windows-10/


Nov 20, 2021 8:19 AM in response to MCS2010

HFS+ is the native file system, and inherently supports the storage of the metadata being recorded here.


So you won’t see resource forks and other data on an HFS+ volume, though you will find .DS_Store settings file in any directories visited with Finder.


Microsoft FAT does not support resource forks and related metadata storage, and has always done what you are encountering here when used with macOS; the creation of these (hidden on macOS) dot files.


If you’d like to see the hidden dot files on macOS, use the Finder chord Command-Shift-Period to toggle the display.


Want to see a whole lot more hidden files on your Mac? Go to your home directory in Finder, and use the Command-Shift-Period chord to toggle hidden-file display there. On a typical Mac, you’ll find hidden files. Often lots of them.


Run some web searches, and you will find many previous discussions going back a decade or more with macOS and OS X.


Dot files as hidden files for metadata and for settings go back ~forty years on Unix, and on Linux, macOS, illumos and other Unix-influenced or Unix-descended systems.


Welcome to knowing a little bit more about the operating system and the file systems you’re using.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

JUST UPGRADED TO MONTEREY 12.0.1 - DUPLICATE FILE COPIES ON USB STICK KEEP SHOWING UP

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.