You are not logged in.

#1 2023-03-17 23:52:05

Utini
Member
Registered: 2015-09-28
Posts: 452
Website

[SOLVED] Systemd-boot issues: Can't open luks, doesn't show windows

Hi everyone,

I am currently doing a fresh install on my new laptop.
I first installed Windows, then Arch.

Basically this is what I did:

/dev/nvme0n1p1 = windows efi 100mb
/dev/nvme0n1p2 = windows 
/dev/nvme0n1p3 = windows
/dev/nvme0n1p4 = windows repair
/dev/nvme0n1p5 = linux extended boot partition
cfdisk - create 512MB partition nvme0n1p5 as linux extended boot
mkfs.fat -F 32 /dev/nvme0n1p5

cryptsetup luksFormat --type luks2 /dev/nvme0n1p6
cryptsetup luksOpen /dev/nvme0n1p6 lvm
pvcreate /dev/mapper/lvm
vgcreate MyVolGroup /dev/mapper/lvm
lvcreate -l 100%FREE MyVolGroup -n root
lvreduce -L -512M /MyVolGroup/root
mkfs.ext4 /dev/MyVolGroup/root
mount /dev/mapper/MyVolGroup-root /mnt
mount /dev/nvme0n1p1 /mnt/efi
mount /dev/nvme0n1p5 /mnt/boot
pacstrap -K /mnt base linux linux-firmware
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
mkinitcpio hooks "base udev autodetect modconf kms keyboard keymap consolefont block encrypt lvm2 filesystems fsck"
mkinitcpio modules "ext4"
pacman -S lvm2
mkinitcpio -p linux
bootctl --esp-path=/efi --boot-path=/boot install

nano /boot/loader/loader.conf -> default arch.conf

nano /boot/loader/entries/arch.conf:
title Arch
linux /vmlinuz-linux
initrd /initramfs-linux.img
options cryptdevice=UUID_FROM_nvme0n1p6:lvm root=/dev/MyVolGroup/root

bootctl update

exit
umount -R /mnt
reboot

After reboot, I won't get shown the windows boot loader and instead instantly boot into Arch.
Once Arch boots, it can't open /dev/MyVolGroup/root because it can't find the device.

It is my first time working with bootctl. Did I miss something?

Last edited by Utini (2023-03-18 10:37:51)


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#2 2023-03-18 09:36:42

Utini
Member
Registered: 2015-09-28
Posts: 452
Website

Re: [SOLVED] Systemd-boot issues: Can't open luks, doesn't show windows

Okay, I managed to get the Windows boot entry into systemd-boot. Although I am not sure which of my changes fixed it.

Booting the LVM/LUKS still doesnt work hmm


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#3 2023-03-18 09:50:09

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 591

Re: [SOLVED] Systemd-boot issues: Can't open luks, doesn't show windows

Utini wrote:
options cryptdevice=UUID_FROM_nvme0n1p6:lvm root=/dev/MyVolGroup/root

It should be cryptdevice=UUID=UUID_FROM_nvme0n1p6:lvm

Would be simpler to check if you didn't obfuscate the UUID and posted your:

$ lsblk -f

Offline

#4 2023-03-18 10:30:39

Utini
Member
Registered: 2015-09-28
Posts: 452
Website

Re: [SOLVED] Systemd-boot issues: Can't open luks, doesn't show windows

Oh thanks.. I mised the UUID= completely.
It now correctly asks me for a password required to acces lvm volume.
But after entering the passphrase it still can't find /dev/MyVolumeGroup-root

Output of lsblk -f when in arch-chroot /mnt

loop0
sda
- sda1
nvme0n1
- nvme0n1p1 /efi
- nvme0n1p2
- nvme0n1p3
- nvme0np1p4
- nvme0n1p5 /boot
- nvme0n1p6
-- lvm
--- MyVolumeGroup-root /

Update.. fixed the issue due to a typo. Thanks a lot!

Last edited by Utini (2023-03-18 10:37:36)


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

Board footer

Powered by FluxBB