You are not logged in.

#1 2022-12-23 02:34:17

goro9922
Member
Registered: 2019-04-12
Posts: 29

[SOLVED] Unable to boot into ArchLinux

After running the lts kernel for many months, I finally decided to upgrade to the mainline kernel. After rebooting, I did not see the mainline kernel in the GRUB menu, so I ran

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

.

Now I can no longer boot into ArchLinux. I am stuck at the BIOS. There is no GRUB prompt even. I don't know what other information I can provide other than this is an AMD Ryzen 7 3700X CPU.

Last edited by goro9922 (2022-12-23 17:05:17)

Offline

#2 2022-12-23 02:44:25

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: [SOLVED] Unable to boot into ArchLinux

I'm guessing you missed this: https://archlinux.org/news/grub-bootloa … ibilities/

If so, you'll have to boot an install disk, mount everything, arch-chroot in, and reinstall grub.

Online

#3 2022-12-23 05:23:08

goro9922
Member
Registered: 2019-04-12
Posts: 29

Re: [SOLVED] Unable to boot into ArchLinux

I tried your suggestion to reinstall grub.

mkdir -p /mnt/boot
mount /dev/nvme0n1p2 /mnt
mount /dev/nvme0n1p1 /mnt/boot
arch-chroot /mnt
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg

After a reboot I get this:

error: file `/boot/grub-x86_64-efi/normal.mod` not found.
Entering recue mode…
grub rescue>

When I boot from the USB again and search for normal.mod: I find it in the following directories:

./usr/lib/grub/x86_64-efi/normal.mod
./usr/lib/grub/i386—pc/normal.mod
./usr/lib/grub/i386—efi/normal.mod
./boot/grub/x86_64-efi/normal.mod
./boot.bak/grub/x86_64-efi/normal.mod

Then I rebooted and tried reinstalling the kernel, but the result is the same.

pacstrap /mnt linux
arch-chroot /mnt
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
Generate grub.cfg
grub-mkconfig -o /boot/grub/grub.cfg
error: file `/boot/grub-x86_64-efi/normal.mod` not found.
Entering rescue mode…
grub rescue>

Offline

#4 2022-12-23 06:04:23

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED] Unable to boot into ArchLinux

goro9922 wrote:
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB

Why have you provided an incorrect location for the EFI system partition? You know where it is mounted because you mounted it yourself in the previous commands hmm

Offline

#5 2022-12-23 17:04:41

goro9922
Member
Registered: 2019-04-12
Posts: 29

Re: [SOLVED] Unable to boot into ArchLinux

Thanks head_on_a_stick, that fixed it! I had a feeling that that path was incorrect.

I'm also removing /boot/efi since it's not needed; I have a dedicated EFI system partition at /boot.

Offline

Board footer

Powered by FluxBB