Boot recovery of Ubuntu with LUKS encrypted LVM

Posted by ronald on november 15, 2012 in Overigen |

(Tested on Ubuntu 10.04)

 

First boot of LiveCD and choose “try without installing”

Open a terminal from Menu Accessoires

$ sudo -i

# apt-get install lvm2

# cryptsetup luksOpen /dev/sda2 crypt-sys

# pvscan

# vgscan

# vgchange -ay

# cd /mnt

# mkdir root

# mount /dev/ubuntu/rootfs root

# mount /dev/sda1 root/boot

# chroot /mnt/root

# mount -t proc proc /proc

# mount -t sysfs sys /sys

# mount -t devtmpfs devtmpfs /dev

# mount -t devpts devptr /dev/pts

# update-initramfs -u -k <kernelversion>

or

# update-initramfs -u -k all

# grub-mkdevice

# update-grub2

# sync;sync;exit

# reboot

 

Now it should boot!

 

Tags:

Copyright © 2012-2019 Dutch Ronaldo All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.