Dot Underscore ._ files in Dropbox

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...

  1. Move my Dropbox files off the JetDrive
  2. Reformat the Jetdrive as HFS+ ("Mac OS Extended - Journaled" as it is called within OS X).
  3. Move the files back onto the JetDrive
  4. 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).

 

 

  • Miyuutsu

    Thanks, you saved my Dropbox :)

  • Danny

    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 ;)

  • Mike Louth

    Thanks a lot, this worked a treat for me!

  • Nick Dean

    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

    • 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.

  • Bob Vance

    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!

    • Yes, open terminal and type the command into the terminal window.