How to Stop your Synology NAS from Junking up your directories with @eaDir directories

If you start mounting Synology volumes over NFS, you will quickly learn that the Synology NAS drops directories cryptically named “@eaDir,” in every single subdirectory on your data volumes. 

They are hidden from Windows clients, but they are there.

The “@eaDir” directories are created for convenience by a system daemon, and they apparently contain image thumbnails or some such nonsense.  There is no easy or convenient way to turn them off or otherwise stop them from being created.

Getting rid of them takes some effort, and here is the easiest way – simply disable the system daemon.

Disable the Synology deamon the Creates the @eaDir directories

To stop the thumb service from creating the @eaDir directories, SSH into your NAS and stop the daemon.  This will keep new directories from being created until the next boot.

/usr/syno/bin/synomkthumb -stop

Next, to remove the service from starting up when rebooting, delete the script:

rm /usr/syno/etc.defaults/rc.d/

Removing the existing directories

SSH into your NAS and you can locate them by typing:

find /volume1/ -type d -name "@eaDir"

Finally, when you are feeling good, you can automatically search and delete them:

find . -type d -name "eaDir" -print0 | xargs -0 rm -rf