You are not logged in.
Hey Guys,
i followed the wiki instructions on setting up LVM on LUKS and tried to configure it to work with systemd-boot.
The following error appears when rebooting:
ERROR: device '/dev/mapper/MyVolGroup-root' not found. Skipping fsck.
ERROR: Unable to find root device '/dev/mapper/MyVolGroup-root'.
I configured the bootloader-entry like this:
/boot/loader/entries/arch-encrypted.conf
title Arch Linux Encrypted
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options cryptdevice=UUID=<UUID1>:MyVolGroup:allow-discards root=/dev/mapper/MyVolGroup-root resume=/dev/mapper/MyVolGroup-swap quiet rw
My disc is structured like this:
sda
| - sda1 (UUID0) /boot
| - sda2 (UUID1) crypto_LUKS
| - lvm
| - MyVolGroup-swap (UUID2)
| - MyVolGroup-root (UUID3) /
Can you tell me, what is wrong with this?
Last edited by moonlies (2016-09-25 10:00:02)
Offline
You haven't followed the wiki page, in particular https://wiki.archlinux.org/index.php/Dm … t_loader_2
Offline
The version on the wiki page i tried at first and it did not work, so i tried the version in my post above.
The error messages were exactly the same. I also switched between the uuid of the actual device and the lvm, still no difference.
Things i tried as well:
title Arch Linux Encrypted
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options cryptdevice=UUID=<UUID1>:lvm:allow-discards root=/dev/mapper/MyVolGroup-root resume=/dev/mapper/MyVolGroup-swap quiet rw
title Arch Linux Encrypted
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options cryptdevice=UUID=<UUIDofLVM>:lvm:allow-discards root=/dev/mapper/MyVolGroup-root resume=/dev/mapper/MyVolGroup-swap quiet rw
Offline
Do you have encrypt (plymouth-encrypt if you're using plymouth) and lvm2 in your HOOKS line? Did you rebuild the ramdisk?
sudo mkinitcpio -p linux
I'm not using systemd-boot, but GRUB. My GRUB line looks like this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash cryptdevice=/dev/sda4:main resume=/dev/mapper/main-swap lang=xx locale=xx_XX.UTF-8 nomodeset"
As you can see, cryptdevice is only pointing at the vg, not the lg.
Offline
Well i just looked into /etc/mkinitcpio.conf and saw, i forgot to add the encrypt hook...
Works fine now.
Offline