A PCRE internal error occured. This might be caused by a faulty plugin

====== Differences ====== This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
packages:ecryptfs [2015/08/29 02:22]
admin
packages:ecryptfs [2015/11/19 18:51] (current)
admin [Preserve Your Encryption Passphrase]
Line 47: Line 47:
  
 Would you ever be faced with the necessity to recover your encrypted partition from a rescue system (like [[http://​www.sysresccd.org|SystemRescueCD]]),​ the only possibility you'll have to gain access to it from another system is to have your **Encryption Passphrase** available. It is thus **STRONGLY RECOMMENDED** that you note this passphrase somewhere safe, where you'll be able to access it in case your current system is locked. This means **do not store it inside your encrypted directory** as you won't be able to access it when needed. Would you ever be faced with the necessity to recover your encrypted partition from a rescue system (like [[http://​www.sysresccd.org|SystemRescueCD]]),​ the only possibility you'll have to gain access to it from another system is to have your **Encryption Passphrase** available. It is thus **STRONGLY RECOMMENDED** that you note this passphrase somewhere safe, where you'll be able to access it in case your current system is locked. This means **do not store it inside your encrypted directory** as you won't be able to access it when needed.
 +
 +<​code>​
 +> ecryptfs-unwrap-passphrase ​
 +Passphrase: ​
 +854xxxxxxxxxxxxxxxxxxxxxxxxxxxca
 +</​code>​
 +
 +=== Recovering from a rescue system ===
 +
 +Make sure the partition containing your encrypted directory is mounted before issuing the following command to search your mounted file systems for encrypted private directories. The command will mount the encrypted directory in your /tmp directory:
 +
 +<​code>​
 +> sudo ecryptfs-recover-private ​
 +[sudo] password for <​user>: ​
 +INFO: Searching for encrypted private directories (this might take a while)...
 +INFO: Found [/​home/​.ecryptfs/<​user>/​.Private].
 +Try to recover this directory? [Y/n]: Y
 +INFO: Found your wrapped-passphrase
 +Do you know your LOGIN passphrase? [Y/n] Y
 +INFO: Enter your LOGIN passphrase...
 +Passphrase:
 +INFO: Success! ​ Private data mounted read-only at [/​tmp/​encryptfs.rndmtxt].
 +</​code>​
 +
 +You might need to be root to access the files.
 +
 +===== Mount TrueCrypt Volumes (using cryptsetup) =====
 +
 +Mount a volume
 +<​code>​
 +> sudo cryptsetup open --type tcrypt /​var/​run/​media/​username/​volume_name encrypted_volume
 +> sudo mount /​dev/​mapper/​encrypted_volume /mnt
 +</​code>​
 +
 +Unmount volume:
 +<​code>​
 +> sudo umount /mnt
 +> sudo cyrptsetup close encrypted_volume
 +</​code>​