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.
IMO, the easiest way to install rEFInd on a preinstalled system is to use Manjaro Architect LiveISO. Though you can use any LiveISO and launch Manjaro Architect within it.
NOTE: These are older images, but the layout is the same.
Once you get into Manjaro Architect:
Go to Prepare Installation
[image]
Go to Mount Partitions
2a. It should ask you to mount / and also /boot/efi at the end
[image]
From the same image above, go to Back
You’ll be back at this screen, and go to System …
1 Like
Hello @AwesomeIronman
It seems you have not recreated the initramfs… I would suggest the following:
Boot into a live session with the manjaro boot disk
Open a terminal and type manjaro-chroot -a
Then pamac upgrade --force-refresh --enable-downgrade
Then sudo mkinitcpio -P
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)
system
Closed
28 April 2021 03:59
6
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.