You are not logged in.

#1 2025-01-28 17:04:24

Sweeper
Member
Registered: 2011-08-04
Posts: 15

[SOLVED] grub updated after installing memtest86+. Can't load Grub

Hello, everyone!

Here is my problem:

I am booting with efi

First, i installed memtest86+

Then updated:  sudo grub-mkconfig -o /boot/grub/grub.cfg

After reboot, i am not able to load grub, but am thrown into bios.

From there i am able to enter Grub rescue.

ls command gives:

(hd0) (hd0,gpt4) (hd0,gpt3) (hd0,gtp2) (hd0,gtp1)

Can't find out, where to boot in grub rescue.

cat /etc/fstab:

/dev/nvme0n1p3 /   ext4
/dev/nvme0n1p1 /efi vfat

The other two (p4 and p2) are home and swap

Can't get insmod linux - 'grub_calloc' not found.

Any suggestions?

Last edited by Sweeper (2025-01-28 20:09:07)

Offline

#2 2025-01-28 17:10:29

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,453

Re: [SOLVED] grub updated after installing memtest86+. Can't load Grub

grub wasn't updated, grub's config was updated. How old is this system, are you running into https://archlinux.org/news/grub-bootloa … ibilities/ maybe?

Offline

#3 2025-01-28 17:19:43

Sweeper
Member
Registered: 2011-08-04
Posts: 15

Re: [SOLVED] grub updated after installing memtest86+. Can't load Grub

System was updated recently, 18/01/25, i rebooted several times. The problem started after updating grub config

Offline

#4 2025-01-28 17:24:03

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,453

Re: [SOLVED] grub updated after installing memtest86+. Can't load Grub

When the system was updated makes no difference.

Offline

#5 2025-01-28 17:25:52

Sweeper
Member
Registered: 2011-08-04
Posts: 15

Re: [SOLVED] grub updated after installing memtest86+. Can't load Grub

Got it. Some 4 years.

Offline

#6 2025-01-28 17:27:15

Sweeper
Member
Registered: 2011-08-04
Posts: 15

Re: [SOLVED] grub updated after installing memtest86+. Can't load Grub

So... Can i fix my problem from grub rescue?

Offline

#7 2025-01-28 18:00:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,094

Re: [SOLVED] grub updated after installing memtest86+. Can't load Grub

Something like

set root=(hd0,gpt3)
linux /vmlinuz-linux root=/dev/nvme0n1p3 rw
initrd /initramfs-linux.img
boot

should™️ work?

otherwise, boot a live disk, chroot into the system, properly mount everything and explicitly reinvoke

grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB

to actually update the GRUB payload (and if you manage to boot with the rescue console, do that as well otherwise you will have to do the rescue method again)

Last edited by V1del (2025-01-28 18:05:25)

Offline

#8 2025-01-28 18:30:19

Sweeper
Member
Registered: 2011-08-04
Posts: 15

Re: [SOLVED] grub updated after installing memtest86+. Can't load Grub

i had tried the first solution. Can't get linux module.

Currently im in process of getting arch flash-drive.

What do i have to mount, when chrooted? /boot and /efi?

Didn't get the last line, sorry. What does mean 'actually update'?

Offline

#9 2025-01-28 18:32:38

Sweeper
Member
Registered: 2011-08-04
Posts: 15

Re: [SOLVED] grub updated after installing memtest86+. Can't load Grub

Ah. After executing the commands and booting from grub, you mean?

Offline

#10 2025-01-28 18:39:31

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,094

Re: [SOLVED] grub updated after installing memtest86+. Can't load Grub

Yes. Otherwise you will just land in rescue again, you need to have ran the grub-install command in some shape or form. after some further googling

set root=(hd0,gpt3)
insmod normal
normal
linux /vmlinuz-linux root=/dev/nvme0n1p3 rw
initrd /initramfs-linux.img
boot

maybe?

As for mounting, if the info in your OP is correct just the root partition + /efi (you could also just run "mount -a" after chrooting into the root) but /efi needs to be mounted so you can install grub and you need to run the grub-install command from your actual, chrooted system so the versions align properly.

Offline

#11 2025-01-28 18:53:27

Sweeper
Member
Registered: 2011-08-04
Posts: 15

Re: [SOLVED] grub updated after installing memtest86+. Can't load Grub

Ok. So far i booted from arch flash-drive. I did mount -a

"ls /"  - shows no /efi mount point, only /boot, which is empty

arch-chroot /mnt   doesn't work, because there is no /mnt mount point

if chroot /mnt is given, i get Faild to run command /usr/bin/zsh: no shuch file or directory

I'm sorry, I chrooted last time several years ago.

Last edited by Sweeper (2025-01-28 18:55:31)

Offline

#12 2025-01-28 19:53:54

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,817
Website

Re: [SOLVED] grub updated after installing memtest86+. Can't load Grub

V1del wrote:

maybe?

Not from a 'grub rescue>' prompt — that prompt means the modules can't be found. Your commands would work from the 'grub>' prompt though, I think.

Sweeper wrote:

So far i booted from arch flash-drive. I did mount -a

You should mount your partitions manually first then use arch-chroot.

For clarity:

mount /dev/nvme0n1p3 /mnt
mount /dev/nvme0n1p1 /mnt/efi
arch-chroot /mnt

The `mount -a` suggestion is just an alternative to be used after mounting the root partition & chrooting. It would mount everything listed in /etc/fstab. which wouldn't do anything at all unless you had already used (arch-)chroot.


Jin, Jîyan, Azadî

Offline

#13 2025-01-28 19:58:32

Sweeper
Member
Registered: 2011-08-04
Posts: 15

Re: [SOLVED] grub updated after installing memtest86+. Can't load Grub

There is progress.

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

Reboot. Removed flash-drive.
Success. Grub loaded.
Repeated commands: grub-install, grub-mkconfig. 
Reboot. Great! Everything works!

Thank you guys!
I got a bit rusty. Didn't have to install Arch for 4 years.
Arch is very relaxing these days ))

Last edited by Sweeper (2025-01-28 20:02:29)

Offline

#14 2025-01-28 20:05:54

Sweeper
Member
Registered: 2011-08-04
Posts: 15

Re: [SOLVED] grub updated after installing memtest86+. Can't load Grub

BTW. I've completely forgotten, that there is memtest in Arch image boot menu   smile)

Offline

Board footer

Powered by FluxBB