You are not logged in.

#1 2021-01-04 17:02:06

barbsbou
Member
Registered: 2010-02-01
Posts: 26

[SOLVED] [Install] Grub problem after UEFI + LVM on LUKS installation

Hi Everybody;

I was an arch user, so I am trying to install my computer on this lovely distribution.

I need to install Arch on an encrypted partition which is divided into 2 LVM volumes.
I follow the officiel guide and another help https://medium.com/@maxime.durand.54/ar … 81e390a400

After the installation I had the rescue Grub terminal, without ask my passphrase to decrypt my partition with error: disk 'lvmid/CDgH...' not found

With the installation USB key I can easily mounting my fresh system without problem...
It is difficult to copy/paste from the computer but

 
lsblk -f
ls -la /dev/disk/by-uuid
head /etc/default/grub
cat /etc/mkinitcpio.conf | grep "HOOKS="

give
error.jpg

Any idea what I did wrong or need other informations?
Thank for your help

Last edited by barbsbou (2021-01-05 09:18:34)

Offline

#2 2021-01-04 20:26:13

equalizer876
Member
Registered: 2018-09-11
Posts: 78

Re: [SOLVED] [Install] Grub problem after UEFI + LVM on LUKS installation

"rw" inside the CMDLINE? Try to remove resume...

After changes do
mkinitcpio -p linux
grub-mkconfig -o /boot/grub/grub.cfg
grub-install --target=x86_64-efi --efi-directory=<your EFI dir> --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg

Note that you do those commands inside arch-chroot!

Last edited by equalizer876 (2021-01-04 20:31:09)

Offline

#3 2021-01-05 07:07:11

mozurin
Member
Registered: 2020-12-13
Posts: 9

Re: [SOLVED] [Install] Grub problem after UEFI + LVM on LUKS installation

Have you read the warning that the released version of GRUB doesn't support LUKS2 format, written in official document?

Offline

#4 2021-01-05 09:00:55

fire100265
Member
Registered: 2020-10-05
Posts: 95

Re: [SOLVED] [Install] Grub problem after UEFI + LVM on LUKS installation

Try systemd-boot to see if you have problems. As @mozurin said, grub doesn't support luks2.

Offline

#5 2021-01-05 09:17:23

barbsbou
Member
Registered: 2010-02-01
Posts: 26

Re: [SOLVED] [Install] Grub problem after UEFI + LVM on LUKS installation

Hi;

Thank you equalize876 and mozurin for your replies!
No mozurin I did not notice the warning about the support of LUKS with Grub, since the examples in official document that you underline they use LUKS2

Thanks to the help of another archuser (thanks @benjarobin) it found where it was my problem EFI...but sincerely I am not sure to totaly understand :S

I reformated my sda5 which was mounted into /boot/efi into /boot and to mount my sda1 (Win efi) mount into /boot/efi!!!
Thus the ESP is the first partition...is it the reason??
Anyway thank you for your help and time!

Happy new year

Offline

#6 2021-01-05 09:26:27

fire100265
Member
Registered: 2020-10-05
Posts: 95

Re: [SOLVED] [Install] Grub problem after UEFI + LVM on LUKS installation

I doubt it was the reason unless you messed up grub installation. At least it works now.

Offline

#7 2021-01-05 14:17:57

barbsbou
Member
Registered: 2010-02-01
Posts: 26

Re: [SOLVED] [Install] Grub problem after UEFI + LVM on LUKS installation

I undanstand a little better.

Before the important GRUB EFI file was into an ecrypted partition and no more now.
As mozurin and you told me before GRUB is not compliant with LUKS2 for the moment.

So thank you for your time.

Offline

Board footer

Powered by FluxBB