Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoeSz/53f4668e2857032c53f189100bc9ea30 to your computer and use it in GitHub Desktop.
Save JoeSz/53f4668e2857032c53f189100bc9ea30 to your computer and use it in GitHub Desktop.
Restore the GRUB Bootloader on Manjaro Linux. Usefull when your fresh windows install eats your grub and can not boot into your linux installation, or for some how your grub is missing

Restore the GRUB Bootloader on Manjaro

  1. Chroot into your linux instalation
    1. The easiest way is with mhwd-chroot
      1. Install it yaourt -S mhwd-chroot
      2. Run it sudo mhwd-chroot
      3. DONE, you have chrooted into your linux installation (open a root console of your installed linux OS, is like just open a console with root access)
  2. Restore your GRUB
    1. Install a new GRUB bootloader with grub-install /dev/sda
    2. Recheck to ensure the that installation has completed without any errors grub-install --recheck /dev/sda
    3. Finally, configure the freshly installed GRUB bootloader typing update-grub

Ref Manjaro Wiki - Restore the GRUB Bootloader

Written using Stack Edit

@JoeSz
Copy link
Author

JoeSz commented Feb 1, 2022

Boot into Manjaro installer
Open terminal

sudo manjaro-chroot -a (and select system to mount)
grub-install /dev/sda (it's sda for me; make sure you choose the right drive!)
grub-install --recheck /dev/sda
update-grub
exit

reboot

@JoeSz
Copy link
Author

JoeSz commented Feb 1, 2022

https://wiki.manjaro.org/index.php/GRUB/Restore_the_GRUB_Bootloader (root)

pamac install manjaro-tools-base
manjaro-chroot -a 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment