Skip to content

Instantly share code, notes, and snippets.

@johnjohndoe
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save johnjohndoe/c31404774f65be8e97ef to your computer and use it in GitHub Desktop.
Save johnjohndoe/c31404774f65be8e97ef to your computer and use it in GitHub Desktop.
How to mount an encrypted home partition?

How to mount an encrypted home partition?

First add the passphrase

$ sudo ecryptfs-add-passphrase --fnek

Which gets me the following information:

Inserted auth tok with sig [aaaaaaaaaaaaaaaa] into the user session keyring
Inserted auth tok with sig [bbbbbbbbbbbbbbbb] into the user session keyring

Mounting the associated .Private directory:

$ sudo mount -t ecryptfs /media/user/66fa2d20-bb6a-231b-9a98-deac52c9282f/.ecryptfs/user/.Private /mnt/backup

A lot of questions pop up. Answer with their defaults except for

Enable filename encryption (y/n) [n]: y

Here paste the signature which has been shown before:

Filename Encryption Key (FNEK) Signature [aaaaaaaaaaaaaaaa]: bbbbbbbbbbbbbbbb

Unmount directory

$ sudo umount /mnt/backup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment