You are not logged in.
Pages: 1
Hello everyone
I've been trying to boot my linux installation with Grub. I've read that know it supports LUKS2.
When I select arch from the Menu, it starts to load but then it gets stuck in Dell flash screen ![]()
Running `lsblk -f`
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
nvme0n1
├─nvme0n1p1 vfat FAT32 C2FE-EB94 388.6M 22% /boot
├─nvme0n1p2 crypto_LUKS 2 23fdc8c9-a449-4e05-80ad-e3f1d6388252
│ └─luks btrfs luks 03a622b0-cb8e-4296-b072-7bfb563e3c33 321.9G 20% /var/lib/docker/btrfs
├─nvme0n1p3
└─nvme0n1p4 ntfs 6444717444714A36
nvme0n1p1 is not encrypted
I used the option GRUB_ENABLE_CRYPTODISK=y but it didn't work
Last edited by rlopezc (2020-04-08 17:59:32)
Offline
since the ESP appears to be at /boot, the kernel and initramfs aren't encrypted. Grub then has nothing to do with the crypto, it needs to be done in the initramfs.
If it's still got a Dell screen, it sounds like grub isn't even loading?
Last edited by Scimmia (2020-04-07 15:56:39)
Online
It boots in Grub, I select Arch and then it gets stuck in the Dell screen
Do I need to configure somethng extra in the initramfs?
Btw, I can successfully boot arch if I access via F12 when dell is loading (before grub), I just want to get it work with Grub
Offline
Just what are you loading when you hit F12?
Online
Arch linux, all of my system. It's not a new installation trying to get grub to work. I already had arch and windows installed but I access them within the bios boot options. I wanted grub to simplify that
Offline
Loading it via the CSM? Via an nvram entry that uses the stub loader? Via a different boot menu/loader?
Online
Yes, selecting the boot. This boot menu appears when clicking F12 when the laptop is starting
What is CSM? I don't think via nvram/stub loader
Offline
None of which answers the question. You set it up, you should know what it is. How did you install this system?
Online
I followed the guide, I set the boot with https://wiki.archlinux.org/index.php/Systemd-boot
After that I installed Windows, then It boot up directly to Arch, I had to press F12 to see arch or windows (manual selection)
Then I remembered about grub and I install it, set it up to detect windows and when I pressed F12 I could see Arch, Grub, and Windows
When selecting windows from the grub, it works
When selecting arch from the grub, it gets stuck
Ahh I also configured:
---
/boot/loader/entries/arch.conf
---
title Arch Linux
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options rw luks.uuid=<uuid> luks.name=<uuid>=luks luks.options=discard root=/dev/mapper/luks rootflags=subvol=@root
Where I indicate the luks uuid. Maybe this is missing in Grub config? It detected arch but it doesn't know where to find it?
Last edited by rlopezc (2020-04-08 17:14:27)
Offline
So I'm wondering if you are confused about hitting F12 and are booting from live media vs the installation on the disc? Also do you have debug enabled for grub ? Also, are you confusing two boot loaders? Seems to me like you are trying to boot with Grub but you are following instructions to set boot with systemd-boot ..... just some thoughts. Perhaps showing us your grub.cfg would help but please consider which boot loader you actually want to use.
EDIT:
https://wiki.archlinux.org/index.php/Systemd-boot
https://wiki.archlinux.org/index.php/GRUB
Last edited by kalix (2020-04-08 17:49:43)
Offline
@kalix yes, you are right, I was confused about the boot loaders. I've read Arch wiki on bootloaders + systemd-boot and now I get it.
sd-encrypt needs some options like the luuks.uuid, which I correctly set in systemd-boot custom loader.
I will use systemd-boot instead of grub because now I have it working with arch + windows.
What do boot loader do you people use? what's the recommended one?
Is working so, solved
Offline
What do boot loader do you people use? what's the recommended one?
There isn't a recommended one, it's a matter of personal choice.
Offline
Pages: 1