You are not logged in.
Hi! I can't boot Arch with LVM on LUKS setup on QEMU.
I've got the next error on boot:
ERROR: device '/dev/mapper/archwdc-root' not found. Skipping fsck.
mount: /new_root: no filesystem type specified.
...
I already spend a day reading all posts with similar issues, but all advises on those posts was not relevant (as I followed a wiki).
I followed install guide, and:
1. Added "cryptdevice=UUID=XXXXXXXXX:cryptlvm" as GRUB_CMDLINE_LINUX parameter to /etc/default/grub, where "XXXXXXXXX" is UUID of primary partition /dev/sda2.
2. Added required hooks to /etc/mkinitcpio.conf: "HOOKS=(base udev autodetect keyboard keymap consolefont modconf block encrypt lvm2 filesystems fsck)".
My /etc/fstab, /etc/mkinitcpio.conf, /etc/default/grub can be viewed on Imgur (can't copy from QEMU, sorry): https://imgur.com/a/dzWLdG1
What I did wrong? What I missed?
Last edited by pashinskikh (2020-03-13 06:39:06)
Offline
I've fixed this by just reinstalling Arch. For those, who have a similar issue, here's what to look at:
1. /etc/mkinitcpio.conf - hooks should look like:
HOOKS=(base udev autodetect keyboard keymap consolefont modconf block encrypt lvm2 filesystems fsck)
Sequence of hooks matter!
2. /etc/default/grub - UUID should be of the primary partition. Also, e.g. /dev/sda2 may be used as well ("cryptdevice=/dev/sda2:cryptlvm").
Offline