How to Create an Encrypted Directory (EncFs) | Ubuntu

Environment
  • Ubuntu 14.04 x64


Content
The laptop is my workstation and backup store, and so want and need to protect privacy data. Previously, a disk encryption used. However, it was not able to resize the partition, then went to a file-system level encryption (EncFs).
$sudo apt-get install encfs

To create an encrypted directory:
#When specifying daemon mode, you must use absolute paths (beginning with '/')
$encfs /media/datastores/.encrypted_data /media/datastores/.visible_data

To mount an encrypted directory:
$encfs /media/datastores/.encrypted_data /media/datastores/.visible_data

To umount an encrypted directory:
$fusermount -u /media/datastores/.visible_data


References

Update