Recently, all my files stored in Dropbox suddenly acquired a “dot underscore” file in addition to the original file, as shown in the screenshot above:
As a result, the total number of files in dropbox doubled from ~45,000 to ~90,000! To make matters worse, all the “._” files were then immediately synced to my other computers with Dropbox installed.
So why were all these files suddenly created after years of using Dropbox without any issues?
Well “._” files are created to store extended information that would normally be stored as an extended file attributes within modern filesystems such as HFS+ (Apple native), NTFS (windows) or Unix/UFS. In other words, these files are only created on filesystems that do not support extended file attributes – which in most cases means FAT, FAT32 or exFAT.
In my case, I had purchased a Transcend JetDrive 12GB SD card for my Macbook Air to extend the storage capacity to 256GB, and it had arrived pre-formatted with the exFAT filesystem. When I then moved my Dropbox folder from the internal drive (formatted as HFS+) and on to the JetDrive, OS X had created “._” files to store the extended attributes for each file. These were then synced up to Dropbox automatically.
The solution was therefore to…
- Move my Dropbox files off the JetDrive
- Reformat the Jetdrive as HFS+ (“Mac OS Extended – Journaled” as it is called within OS X).
- Move the files back onto the JetDrive
- Run the
dot_clean
command against the JetDrive :
dot_clean /Volumes/Transcend/Dropbox
The dot_clean
command merges all attributes stored within the “._” file back into the master file and then removes the “._” from the filesystem. The fact the file has been removed is noticed by Dropbox, which then means they are removed from all synced copies on other computers (and the web interface).
Thanks, you saved my Dropbox 🙂
LikeLike
Awesome, thanks a lot!
Small thing though: you missed an “n” in the command (…/TraNscend/Dropbox), just for people who copied the command and it didn’t work 😉
LikeLike
Thanks! I’ve updated the article
LikeLike
Thanks a lot, this worked a treat for me!
LikeLike
Hi – When running the command against the JetDrive I get ‘no such file or directory’. Any assistance would be much appreciated before i go completely mad
LikeLike
Things to check:
1. Files and Folders are case sensitive – so make sure you have the correct case.
2. Your JetDrive is mounted with a different name – try looking in /Volumes to see if you can find the drive.
LikeLike
Hi, I’m a bit of a noob when it comes to these things- I’ve done all the steps but am confused on how to do the last step. What do I do to run the dot_clean command against the drive? Do I open Terminal? Is there a specific app I need? Any detailed explanation would be super helpful 🙂 Thanks!
LikeLike
Yes, open terminal and type the command into the terminal window.
LikeLike