Possible Duplicate:
Securely automount encrypted drive at user login

I finally managed to figure out how to mount an ecryptfs encrypted directory (my old home directory)

I would like to have it mounted automatically when I login, the same way my home directory gets mounted.

marked as duplicate by Eliah Kagan, fossfreedom Feb 2 '13 at 10:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Add the device to /etc/fstab

It should resemble something like:

/dev/mapper/crypto_test /mnt/crypto_test ext4 defaults 0 2

  • How does the passphrase go in there? – rausch Apr 24 '11 at 19:36
  • 1
    -1 this isn't automatic. – Tom Brossman Feb 13 '12 at 12:42

Not the answer you're looking for? Browse other questions tagged or ask your own question.