You are not logged in.
Pages: 1
Hello guys,
I need some help on a recent Arch install. This is my first time doing LVM on LUKS and I can't seem to get GRUB to run cryptsetup to decrypt my sda2 partition. It times out waiting for my LVM maps, which aren't visible since the main /dev/sda2 partition hasn't been opened. I followed the offical wiki page for LVM on LUKS & used the systemd / sd-encrypt hooks along with plugging in `rd.luks.name=device-UUID=SFcrypt root=/dev/StarForge/root` in my grub.cfg file. Any advice would be super helpful!
Z
Last edited by ZetaRevan (2022-10-27 00:56:08)
Offline
Offline
HOOKS=(base systemd autodetect keyboard modconf block sd-encrypt lvm2 filesystems fsck)
Last edited by ZetaRevan (2022-10-25 22:38:35)
Offline
What's in grub.cfg?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
did you substitute device-UUID to the actual luks UUID?
Offline
What's in grub.cfg?
Standard grub config file, has root=/dev/mapper/Starforge-root on the menu entries.
did you substitute device-UUID to the actual luks UUID?
Yes. I've tried having that line in the 40-custom section & also right above the menu entries. Still get the same result.
Ugh...I was starting to think I had the crypt packages, but now I have to confirm. I just realized that I run cryptsetup to open the partiion when booted from the USB, but did I actually make sure the package was installed on my drive? More digging.
Note, I have a current build on another laptop with LUKS on LVM that works fine.
Last edited by ZetaRevan (2022-10-26 07:31:14)
Offline
This doesn't seem to appear (uncommented) in your grub.cfg:
rd.luks.name=device-UUID=SFcrypt
How are your partitions organised?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
This doesn't seem to appear (uncommented) in your grub.cfg:
Yeah that's because I couldn't get enough on the screen, but I have that same line uncommented inside the 40_custom section. It doesn't decrypt being put in either location.
How are your partitions organised?
/dev/sda1 mounts to /boot (unencrypted)
/dev/sda2 is encrypted, so it should map to /dev/mapper/SFcrypt after being opened for the LVM setup
PV = /dev/mapper/SFcrypt
VG = StarForge
LVs = root, home (set up as xfs on both)
No swap partition, I plan to use zswap.
Last edited by ZetaRevan (2022-10-27 00:12:33)
Offline
If those are the menu entries you're trying to boot, the rd.luks isn't there. You can check this by choosing to edit the command line when you boot and seeing if it is there. If it isn't, you can add it and boot, though the addition won't be permanent.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
If those are the menu entries you're trying to boot, the rd.luks isn't there. You can check this by choosing to edit the command line when you boot and seeing if it is there. If it isn't, you can add it and boot, though the addition won't be permanent.
huh..I don't remember having to add it inline on my LUKS on LVM build, and I don't have it on hand to check, but that did the trick. I removed the separate lines & just added the rd.luks inline before the root= & it worked. Thanks for the guidance!
Offline
Pages: 1