Skip to content

Instantly share code, notes, and snippets.

@dianjuar
Last active May 22, 2025 07:33
Show Gist options
  • Select an option

  • Save dianjuar/a6e0d801a9f71f8edc06321178390320 to your computer and use it in GitHub Desktop.

Select an option

Save dianjuar/a6e0d801a9f71f8edc06321178390320 to your computer and use it in GitHub Desktop.

Revisions

  1. dianjuar revised this gist Jul 1, 2022. 1 changed file with 18 additions and 1 deletion.
    19 changes: 18 additions & 1 deletion Restore the GRUB Bootloader.md
    Original file line number Diff line number Diff line change
    @@ -12,4 +12,21 @@

    > Ref [Manjaro Wiki - Restore the GRUB Bootloader](https://wiki.manjaro.org/index.php/Restore_the_GRUB_Bootloader)
    > Written using [Stack Edit](https://stackedit.io)
    ---

    # Update Jul 2022

    **I dont use Manjaro distribution any more, the above step may been deprecated.**

    A solution posted in the [comments](https://gist.github.com/dianjuar/a6e0d801a9f71f8edc06321178390320?permalink_comment_id=3498384#gistcomment-3498384) that is receiving lots of positive feedback made by @y6nH seems to be the right steps to fix it:

    > 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
  2. dianjuar revised this gist Feb 12, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Restore the GRUB Bootloader.md
    Original file line number Diff line number Diff line change
    @@ -11,4 +11,5 @@
    3. Finally, configure the freshly installed GRUB bootloader typing `update-grub`

    > Ref [Manjaro Wiki - Restore the GRUB Bootloader](https://wiki.manjaro.org/index.php/Restore_the_GRUB_Bootloader)
    > Written using [Stack Edit](https://stackedit.io)
  3. dianjuar revised this gist Feb 12, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Restore the GRUB Bootloader.md
    Original file line number Diff line number Diff line change
    @@ -10,4 +10,5 @@
    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](https://wiki.manjaro.org/index.php/Restore_the_GRUB_Bootloader)
    > Written using [Stack Edit](https://stackedit.io)
  4. dianjuar revised this gist Feb 12, 2017. No changes.
  5. dianjuar created this gist Feb 12, 2017.
    13 changes: 13 additions & 0 deletions Restore the GRUB Bootloader.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    # 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`

    > Written using [Stack Edit](https://stackedit.io)