Recovering encrypted filesystems

25 February 2014
tech
  1. Boot from Live CD / USB

    1. Decrypt the filesystem

    cryptsetup luksOpen /dev/sda5 hostname

    1. Mount filesystems

    mount /dev/dm-2 /mnt mount /dev/dm-3 /mnt/home mount /dev/sda1 /mnt/boot mount –bind /dev /mnt/dev mount –bind /sys /mnt/sys mount –bind /proc /mnt/proc

    1. Enter chroot chroot /mnt

/etc/crypttab should have: sda5_crypt UUID=sda5_uuid