How do I restore Manjaro’s grub after installing Endeavour OS for dual boot?

Hi, how do I restore Manjaro’s grub after installing Endeavour OS for dual boot? I can see grub of Endeavour OS. I tried loading Manjaro & doing:

sudo grub-install /dev/sdc && sudo update-grub

but that didn’t help


Moderator edit: Edited topic title

You’ll have to either boot into Manjaro from your internal drive — if possible — or else chroot into your Manjaro installation from a live session. It doesn’t matter whether that’s a Manjaro or Endeavour OS USB.

If run from inside Manjaro, that could work, but I recommend the following… :backhand_index_pointing_down:

sudo grub-install --recheck --removable && sudo update-grub
sudo pacman -Syu install-grub

install-grub is a shell script that ensures that your Manjaro grub — i.e. /boot/efi/EFI/manjaro/grubx64.efi — will be copied over /boot/efi/EFI/boot/bootx64.efi, so that the two files will remain the same. It will automatically be run after every update.

1 Like

You will have to sudo update-grub once again from the real manjaro after rebooting because the chroot will not see the windows.

It worked. Thank you.

1 Like

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