Using ecryptfs outside of Ubuntu's very controlled environment can be tedious. I wanted to have a fully automated script that could simply mount an ecryptfs partition given a single key (roughly along these lines): ecryptfs-mount PATH KEY Here are the …