You are not logged in.

#1 2020-04-07 15:11:40

rlopezc
Member
Registered: 2020-04-07
Posts: 8

[SOLVED] Problem booting arch with Grub2

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 sad

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

#2 2020-04-07 15:25:57

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: [SOLVED] Problem booting arch with Grub2

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)

Offline

#3 2020-04-07 16:11:56

rlopezc
Member
Registered: 2020-04-07
Posts: 8

Re: [SOLVED] Problem booting arch with Grub2

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

#4 2020-04-07 16:59:39

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: [SOLVED] Problem booting arch with Grub2

Just what are you loading when you hit F12?

Offline

#5 2020-04-07 17:01:35

rlopezc
Member
Registered: 2020-04-07
Posts: 8

Re: [SOLVED] Problem booting arch with Grub2

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

#6 2020-04-07 17:02:44

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: [SOLVED] Problem booting arch with Grub2

Loading it via the CSM? Via an nvram entry that uses the stub loader? Via a different boot menu/loader?

Offline

#7 2020-04-07 17:05:15

rlopezc
Member
Registered: 2020-04-07
Posts: 8

Re: [SOLVED] Problem booting arch with Grub2

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

#8 2020-04-08 04:34:51

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: [SOLVED] Problem booting arch with Grub2

None of which answers the question. You set it up, you should know what it is. How did you install this system?

Offline

#9 2020-04-08 17:00:29

rlopezc
Member
Registered: 2020-04-07
Posts: 8

Re: [SOLVED] Problem booting arch with Grub2

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

#10 2020-04-08 17:42:10

kalix
Member
Registered: 2020-03-06
Posts: 19

Re: [SOLVED] Problem booting arch with Grub2

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

#11 2020-04-08 17:57:44

rlopezc
Member
Registered: 2020-04-07
Posts: 8

Re: [SOLVED] Problem booting arch with Grub2

@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

#12 2020-04-08 18:05:16

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Problem booting arch with Grub2

rlopezc wrote:

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.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB