# Mount the disk partition containing the Encrypted Home Directory
# !!! replace /dev/sda1 with your partition !!!
sudo mount /dev/sda1 /mnt
# Establish a proper chroot environment
sudo mount -o bind /dev /mnt/dev
sudo mount -o bind /dev/shm /mnt/dev/shm
sudo mount -o bind /proc /mnt/proc
sudo mount -o bind /sys /mnt/sys
sudo chroot /mnt
# Become the user whose data needs recovery and manually add the necessary mount passphrase to the kernel session keyring
# !!! replace username with your username !!!
su - username
# Mount the encrypted directory and then access the data
sudo mount /dev/sdb5 /mnt
mount: you must specify the filesystem type
mount -t ext4 /dev/sdb5 /mnt
sudo fsck.ext4 -v /dev/sdb5
cryptotheslow wrote:I know this is an old thread, but I thought I would add a useful tidbit of information for those who may look at it in the future.
For a while now ecryptfs provides a utility "ecryptfs-recover-private" that automates the recovery process without having to go through the palaver of chroot etc.
There's a simple walkthrough here:
Users browsing this forum: No registered users and 7 guests