You are not logged in.

#1 2022-12-15 13:32:45

baptiste
Member
Registered: 2022-09-29
Posts: 8

[Solved] Encrypted laptop goes directly to UEFI after grub update

Hello,
I changed my grub config in order to play a sound when entering the grub menu.
I only changed the the line

GRUB_INIT_TUNE="600 988 1 1319 8"

and run

grub-mkconfig -o /boot/grub/grub.cfg

After rebooting, my laptop goes directly to the UEFI menu.

I tried to repair it myself by chrooting into my partiion, but I'm not sure what partitions to use to reinstall/repair grub, because of the encryption.

fdisk -l gives me:

/dev/nvme0n1p1 [...] 512M EFI System
/dev/nvme0n1p2 [...] 19G   Linux file system
/dev/nvme0n1p3 [...] 933G Linux file system

/dev/sda1 *Boot type empty
/dev/sda2          type EFI (FAT-12/16/32)

I openend and mounted the .dev/nvme0n1p2 and chrooted into it.

But now I'm not sure how to continue to load the boot partition, is it /dev/nvme0n1p1, /dev/sda1 or something else?
I tried to follow the tutorial from the wiki, but with the encryption I'm not sure in what partition grub lives.

Thank you for your help.

Last edited by baptiste (2023-02-13 09:30:43)

Offline

#2 2022-12-15 13:59:02

jonno2002
Member
Registered: 2016-11-21
Posts: 868

Re: [Solved] Encrypted laptop goes directly to UEFI after grub update

how did you install/setup this system ?

Offline

#3 2022-12-15 14:08:33

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,383

Re: [Solved] Encrypted laptop goes directly to UEFI after grub update

But now I'm not sure how to continue to load the boot partition, is it /dev/nvme0n1p1, /dev/sda1 or something else?

How do you expect us to know about your system?
Chances are that sda is the install iso, but

lsblk -f

Also post your grub.cfg

Offline

#4 2023-02-13 09:30:14

baptiste
Member
Registered: 2022-09-29
Posts: 8

Re: [Solved] Encrypted laptop goes directly to UEFI after grub update

Sorry, my question was ill posed.

I was confused by the sda disk and the nvme0 disk. Turns out the sda drive was from the usb stick with the arch iso...
I could resolve the problem by running grub install without arguments, but I think --boot-directory /boot would have done the trick.

Thanks all for taking the time.

Offline

Board footer

Powered by FluxBB