Unable to restore grub

Currently I only get “Welcome to grub” when I start my machine
Meaning GRUB is not listing installed OS

All of this started after a pacman -Syyu update:


Error: Initramfs unpacking failed
Unable to mount rootfs on unknown block

Now please help me get back my GRUB menu
pacman -Syyu shows multiple warning messages for eg.:

warning: grub-2.04-22 is up to date -- reinstalling
:: Starting full system upgrade...
warning: alsa-card-profiles: local (1:0.3.25-1) is newer than extra (1:0.3.24-1)
warning: android-tools: local (31.0.0-1) is newer than community (30.0.5-3)

and ends with:

:: Processing package changes...
(1/1) reinstalling grub                                                           [###############################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Updating the info directory file...

But nothing really happens

Did you by any chance swap from unstable to stable or testing?


https://wiki.manjaro.org/index.php?title=GRUB/Restore_the_GRUB_Bootloader


Alternatively, you can use Manjaro Architect and restore GRUB this way. Just select GRUB instead of rEFInd at the end.

1 Like

Hello @AwesomeIronman :wink:

It seems you have not recreated the initramfs… I would suggest the following:

  1. Boot into a live session with the manjaro boot disk
  2. Open a terminal and type manjaro-chroot -a
  3. Then pamac upgrade --force-refresh --enable-downgrade
  4. Then sudo mkinitcpio -P
  5. Then sudo update-grub
1 Like

I don’t know how to change update branches, never done so
I did as you told:

root # grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
root # grub-mkconfig -o /boot/grub/grub.cfg

And now GRUB is working as expected

1 Like

Thanks @megavolt that seems to have fixed pacman -Syyu warnings now
I didn’t had to chroot since I had full system access (it was bootable)

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.