Synology NAS @eaDir file removal

@eaDir files provide extended directory attributes, much like the Windows thumbs.db files or the Mac DS_Store files. They take up unnecessary space and are a general frustration. Here’s how to get rid of them.

Connect the your NAS via SSH (here’s how)

Find the @eaDir files

# sudo runs with root privileges requiring your password
sudo find . -name "@eaDir" -type d | more )

Remove the @eaDir files

# sudo runs with root privileges requiring your password
sudo find . -name "@eaDir" -type d -print0 | xargs -0 rm -rf

Additional Reading

Here’s a link to an interesting thread on the topic, which sheds more light on the problem and offers additional troubleshooting methods. 

2 Replies to “Synology NAS @eaDir file removal”

  1. Thank you very much for those 2 command lines!
    I have no Terminal knowledge and I have been struggling to get rid of those @eaDir (tens of thousands of them)
    That took me a few minutes thanks to you.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.