You are not logged in.

#1 2020-03-12 13:00:07

pashinskikh
Member
From: Ukraine
Registered: 2020-03-12
Posts: 2
Website

[SOLVED] Can't boot with LVM on LUKS: device '/dev/mapper/*' not found

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

#2 2020-03-13 06:38:51

pashinskikh
Member
From: Ukraine
Registered: 2020-03-12
Posts: 2
Website

Re: [SOLVED] Can't boot with LVM on LUKS: device '/dev/mapper/*' not found

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").

wink

Offline

Board footer

Powered by FluxBB