We stand with Palestine ❤️ Free Palestine 🇵🇸

No to genocide in Gaza. No to the killing of civilians. No to targeting hospitals and schools. No to deception and double standards.

How to properly restore the Manjaro GRUB bootloader on UEFI systems ?

In order to boot Linux, a Linux boot loader such as GRUB needs to be installed. Sometimes, a fresh windows install eats 😋 your grub or the MBR or GPT gets corrupted, erased or misconfigured for various reasons, resulting to missing the capability to boot into your linux installation.

Fortunatelly, there is a way to restore GRUB without re-installing your OS or losing your data. For this, you will need to use your Linux installation media to Restore the GRUB Bootloader.

If you install Manjaro on UEFI system and you need to restore the Grub bootloader, just boot the Manjaro Installation Media and follow me, as I will demonstrate to you in this tutorial how to properly restore it.
 
{tocify} $title={Table of Contents} 
 
✋ Do you need a powerful fast laptop built with Linux (Manjaro) in mind? Check out my Star Labs laptops review.


If you do not want to watch the video, which I recommend watching for more details, you just have to follow the following steps

Step1: Install mhwd-chroot

sudo pacman -Sy mhwd-chroot{codeBox}

Step2: Identify the Manjaro installation partition

lsblk -f{codeBox}

Step3: Start mhwd-chroot

sudo mhwd-chroot{codeBox}

Step4: Mount the EFI partition as /boot/efi:

sudo mount /dev/sdXY /boot/efi{codeBox}
 
P.S: X = Alphabet of the drive Y = Partition number of the EFI partition{alertInfo}

Step5: Re-install Grub

sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck{codeBox}

Step6: Update Grub configuration file

sudo update-grub{codeBox}


All done! Now close the terminal and reboot your system to use your freshly re-installed GRUB 😌. {alertSuccess}

If you enjoy my blog and would like to show your support, consider expressing your appreciation through: {alertIdea}
Djalel Oukid

Science teacher, PhD student, Master degree in Microbial biotechnology , Microbiologist, designer, video editor, podcaster & blogger. linkedin portfolio github

8 Comments

Comments are welcomed and encouraged on this blog. Spam, abusive and off-topics comments will be deleted. Please read our Comments policy before commenting.

  1. sudo pacman -Sy mhwd-chroot

    failed to run these command

    ReplyDelete
    Replies
    1. Welcome to your blog.
      Can you please give me more details?
      Screenshot, output after running the command.
      In any case you can try to install manjaro-chroot and use it instead of mhwd-chroot.

      Delete
  2. sudo pacman -Sy mhwd-chroot
    error: target not found: mhwd-chroot

    ReplyDelete
    Replies
    1. You do not need to install it anymore, just use "sudo manjaro-chroot -a".

      Delete
  3. As of June 2022, I cannot find mhwd-chroot from AUR either. BUT you actually don't have to install it anymore and instead of using "sudo mhwd-chroot" you use "sudo manjaro-chroot -a", choose the distro you want, and go straight to step 5 (installing Grub)

    ReplyDelete
  4. If you are using a usb boot. MIght have to use this command. grub-install --target=x86_64-efi --efi-directory=/boot --removable. Credits to https://superuser.com/questions/1738694/linux-from-scratch-efi-variables-are-not-supported-on-this-system

    ReplyDelete
    Replies
    1. Great tip for those using a USB boot! Thank you.

      Delete
Post a Comment
Previous Post Next Post
Blackview BV9900 Pro Thermal Camera Mobile Phone Helio P90 Octa Core 8GB+128GB IP68 Rugged Smartphone 48MP Quad Rear Camera