You are not logged in.

#1 2018-08-22 15:45:10

getcha
Member
Registered: 2016-10-28
Posts: 9

[SOLVED]Unable to boot with LVM on LUKS - full system encrypted

Hello

I followed this : https://wiki.archlinux.org/index.php/Dm … VM_on_LUKS

My config :
/boot is unencrypted, on /dev/sda1
/ and /home are encrypted on /dev/sda2 (each are lvm partitions and ext4 fs)

I use GRUB as bootloader, here is my modification to /etc/default/grub :

GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda2:cryptlvm"
grub-mkconfig -o /boot/grub/grub.cfg

mkinitcpio.conf :

HOOKS=(base udev autodetect keyboard keymap consolefont modconf block encrypt lvm2 filesystems fsck)
mkinitcpio -p linux

all is ok

When i boot i have the following error :

enter passphrase for /dev/sda2:
ERROR: device '/dev/vg_root/root' not found. Skipping fsck.
mount: /new_root: special device /dev/vg_root/root does not exist.
You are now being dropped into an emergency shell.

If iboot with usb key i can open my luks container :

cryptsetup open  /dev/sda2 cryptlvm
Enter passphrase for /dev/sda2 :

If i do a lvscan i can see all my logical volumes with data :

lvscan
ACTIVE '/dev/vg_root/root' [32.00 GiB] inherit
...

Everything seems ok from my usb key and with arch-chroot, but when i boot it doesn't work...

Thanks for your help !

Last edited by getcha (2018-08-23 15:36:51)

Offline

#2 2018-08-23 15:36:23

getcha
Member
Registered: 2016-10-28
Posts: 9

Re: [SOLVED]Unable to boot with LVM on LUKS - full system encrypted

After try and try, it works when replacing UUID by labels in fstab...

Offline

Board footer

Powered by FluxBB