Skip to content

Instantly share code, notes, and snippets.

@rkochar
Last active February 29, 2024 18:18
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rkochar/07db11fcae050f5424c37fc931c79356 to your computer and use it in GitHub Desktop.
Save rkochar/07db11fcae050f5424c37fc931c79356 to your computer and use it in GitHub Desktop.
Windows deleted grub (Manjaro)
  • Boot into Manjaro on usb stick
  • ctrl+alt+t
  • sudo manjaro-chroot -a
  • grub-install <partition> (eg: /dev/nvme0n1p6 or /dev/sda)
  • grub-install --recheck <partition>
  • update-grub
  • exit
  • reboot (remove usb stick, grub should re-appear with Manjaro as a boot option)

Grub may not add Windows (or another boot option) to the menu. Boot into Manjaro.

  • ctrl-alt-t
  • sudo update-grub (The logs will show that it found the missing boot option(s) and added them to boot-loader)
  • reboot

If Windows is not added, check os-prober is active i.e. sudo cat /etc/default/grub | grep 'GRUB_DISABLE_OS_PROBER' should return false. Repeat previous block of instructions.

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