The ._ files your Mac leaves on USB drives, and how to stop them showing up on the TV
Copy files from a Mac to a USB stick and a Windows PC or TV shows a ._ file beside each one. What they are, whether they matter, and how to clean them up.
You copied twenty photos to a USB stick for the TV. The TV shows forty, and half of them are named ._IMG_1234.jpg and will not open. Your Mac put them there. They are tiny and harmless, and you can remove them in one command.
What they are
Mac files can carry extra information that other formats cannot store, like Finder tags, labels, which app opens the file, and a note that the file was downloaded from the internet. On a drive formatted as ExFAT or FAT32, there is nowhere to put that, so macOS writes it into a separate hidden file with the same name and ._ in front. The system is called AppleDouble. A Mac hides these files; Windows, TVs and cameras show them.
| Hidden item | What it holds | Typical size |
|---|---|---|
._filename | Tags and attributes for one file | 4 KB each |
.DS_Store | Finder window layout for a folder | 6 to 20 KB |
.Spotlight-V100 | Search index for the drive | Small to several hundred MB |
.fseventsd | Log of file changes | Usually a few MB |
.Trashes | Items you trashed from this drive | Anything up to the whole drive |
.Trashes is the only one that can be large, and it empties when you empty the Trash with the drive plugged in. External drive taking up space covers it.
Removing them
macOS includes a tool made for exactly this. It merges the ._ files back or deletes them:
# Replace USBSTICK with your drive's name
dot_clean -m /Volumes/USBSTICKTo see how many there are first:
find /Volumes/USBSTICK -name '._*' | wc -lEject the drive afterwards and do not open it in Finder again before plugging it into the TV, since browsing can create new .DS_Store files.
Stopping .DS_Store files on network and USB drives
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool trueLog out and back in for it to take effect. It stops .DS_Store files, not ._ files, which dot_clean handles. More on .DS_Store in DS_Store files taking up space.
Common questions
What are ._ files on my USB drive?
They are AppleDouble files. macOS writes them on ExFAT and FAT32 drives to store tags and attributes those formats cannot hold. They are harmless and about 4 KB each.
Is it safe to delete ._ files?
Yes, on a drive you are giving to a TV or Windows PC. You lose only Finder tags and similar details. The dot_clean command removes them safely.
How do I stop my Mac creating hidden files on USB drives?
The DSDontWriteUSBStores setting stops .DS_Store files. The ._ files cannot be turned off, so run dot_clean on the drive before ejecting it.