Recovering Encrypted Home Partition
I had some major problems after the recent Ubuntu upgrade and had to boot from a live cd. I have a separate /home partition, but it was encrypted using the default install encryption in the 9.10 install cd. How can I get to my files so I can back them up?
From http://
-------
ubuntu@ubuntu$ sudo mount /dev/sda2 /mnt
ubuntu@ubuntu$ sudo mount /dev/sda4 /mnt/home
ubuntu@ubuntu$ sudo mount -o bind /dev /mnt/dev
ubuntu@ubuntu$ sudo mount -o bind /dev/shm /mnt/dev/shm
ubuntu@ubuntu$ sudo mount -o bind /proc /mnt/proc
ubuntu@ubuntu$ sudo mount -o bind /sys /mnt/sys
ubuntu@ubuntu$ sudo chroot /mnt
root@ubuntu$ su - kirkland
keyctl_searchL Required key not available
Perhaps try the interactive 'encryptfs-
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" fr details.
kirkland@ubuntu$ ecryptfs-
Passphrase:
Error: Your kernel does not support filename encryption
kirkland@ubuntu$ ecryptfs-
Enter your login passphrase:
Inserted auth tok with sig [xxx] into the user session keyring
keyctl_
Perhaps try the interactive 'ecryptfs-
INFO: Your private directory has been mounted.
INFO: To see this change in your current shell:
cd /home/kirkland
kirkland@ubuntu$ cd /home/kirkland
kirkland@ubuntu$ ls -a
-------
All files displayed start with "ECRYPTFS_
I also tried doing this without the "ecryptfs-
Also, I tried the following from: http://
-------
$ sudo aptitude install ecryptfs-utils
$ cd /mnt
$ sudo mkdir OldHome
$ sudo ln -s /media/
$ sudo ecryptfs-
Passphrase:
Inserted auth tok with sig [xxxxxxxxxxxxxxx] into the user session keyring
Inserted auth tok with sig [yyyyyyyyyyyyyyyy] into the user session keyring
$ sudo mount -t ecryptfs OldPrivate OldHome/
Passphrase:
Select cipher:
1) aes: blocksize = 16; min keysize = 16; max keysize = 32 (not loaded)
2) blowfish: blocksize = 16; min keysize = 16; max keysize = 56 (not loaded)
3) des3_ede: blocksize = 8; min keysize = 24; max keysize = 24 (not loaded)
4) twofish: blocksize = 16; min keysize = 16; max keysize = 32 (not loaded)
5) cast6: blocksize = 16; min keysize = 16; max keysize = 32 (not loaded)
6) cast5: blocksize = 8; min keysize = 5; max keysize = 16 (not loaded)
Selection [aes]:
Select key bytes:
1) 16
2) 32
3) 24
Selection [16]:
Enable plaintext passthrough (y/n) [n]:
Enable filename encryption (y/n) [n]: y
Filename Encryption Key (FNEK) Signature [xxxxxxxxxxxxxxx]: yyyyyyyyyyyyyyyy
Attempting to mount with the following options:
ecryptfs_
ecryptfs_
ecryptfs_
ecryptfs_cipher=aes
ecryptfs_
WARNING: Based on the contents of [/root/
it looks like you have never mounted with this key
before. This could mean that you have typed your
passphrase wrong.
Would you like to proceed with the mount (yes/no)? : yes
Would you like to append sig [zzzzzzzzzzzzzzzzz] to
[/root/
in order to avoid this warning in the future (yes/no)? : no
Not adding sig to user sig cache file; continuing with mount.
Error mounting eCryptfs: [-2] No such file or directory
Check your system logs; visit <http://
-------
Any suggestions would be very appreciated. I have been at this non-stop since yesterday...
Question information
- Language:
- English Edit question
- Status:
- Open
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Christopher for more information if necessary.