Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

@Ligh7bringer

This comment has been minimized.

Copy link

@Ligh7bringer Ligh7bringer commented Apr 24, 2018

The guide in the Manjaro Wiki didn't work for me but these instructions did! Looks like all the mounting is unnecessary.

@woshichuanqilz

This comment has been minimized.

Copy link

@woshichuanqilz woshichuanqilz commented Sep 4, 2020

couldnt find packages mhwd chroot

@dianjuar

This comment has been minimized.

Copy link
Owner Author

@dianjuar dianjuar commented Sep 4, 2020

The guide in the Manjaro Wiki didn't work for me but these instructions did! Looks like all the mounting is unnecessary.

They are unnecessary thanks to mhwd-chroot, it does all the work for us that sometimes could be hard

@s1lmaris

This comment has been minimized.

Copy link

@s1lmaris s1lmaris commented Sep 14, 2020

@dianjuar please im having the same issue, is there any way to still use this guide? cant find the mhwd-chroot on pacman

@dianjuar

This comment has been minimized.

Copy link
Owner Author

@dianjuar dianjuar commented Sep 14, 2020

@woshichuanqilz @s1lmaris

@dianjuar please im having the same issue, is there any way to still use this guide? cant find the mhwd-chroot on pacman

mhwd-chroot is an AUR package, search on internet how to install an AUR on Manjaro, I think the easiest way to do it is using Octopi

@SamadKhafi

This comment has been minimized.

Copy link

@SamadKhafi SamadKhafi commented Oct 16, 2020

I had the same issue.
# manjaro-chroot -a worked for me.

@y6nH

This comment has been minimized.

Copy link

@y6nH y6nH commented Oct 21, 2020

These are the steps that worked for me, without having to install any new packages:

  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.