Rescue an encrypted LUKS LVM volume
Posted by admin on March 6th, 2008
Email This Post
First you need to Boot into a Live CD environment and open up a terminal window. (applications–>accessories—>terminal)
Install required packages using the following command
sudo apt-get install lvm2 cryptsetup
probe required module using the following command
sudo modprobe dm-crypt
setup the crypto module to recognise the partition
sudo cryptsetup luksOpen /dev/hda5 crypt1
Enter your passphrase. You should get the following message:
key slot 0 unlocked.
Command successful.
If not, something has gone wrong.
Scan for volume groups
sudo vgscan --mknodes
sudo vgchange -ay
REMEMBER the name of the volume group, as you will need it later.
Create a mount point
sudo mkdir /volume
mount the encrypted volume to the mountpoint you just created.
sudo mount /dev/paulb-desktop/root /volume
The volume is mounted, now you can chroot or whatever else you need to do. If you would like to open the gnome file manager for writing to it issue the following command:
sudo nautilus /volume
If you want to be notified the next time we write something please subscribe to our RSS feed.Thanks for Visiting!


July 20th, 2008 at 10:20 am
Thanks!
I’ve just installed Ubuntu 8.04 on a encrypted partition with lvm a few days ago and wondered how to do this, if something goes wrong.
Never worked with lvm before…