Skip to content

Instantly share code, notes, and snippets.

@emepetres
Last active November 1, 2022 09:37
Show Gist options
  • Save emepetres/197899f6252a92eac9ccfe603d1ae529 to your computer and use it in GitHub Desktop.
Save emepetres/197899f6252a92eac9ccfe603d1ae529 to your computer and use it in GitHub Desktop.
Dual boot issues and how to solve them

Dual boot fixes

grub doesn't show up

This usually occurs after windows update, because it has deleted linux efi and/or has rewrite the order of efi boot, putting windows efi at the top.

  1. Install TODO
  2. Go to TODO tab
  3. TODO

grub rescue mode

This usually occurs after windows update and/or partition changes

  1. Indentify grub partion, by listing and looking for a partition with the /boot folder
ls
ls (hd1,gpt7)/
ls (hd1,gpt6)/
  1. Once partition is indentified, set it up to boot into Manjaro
set root=(hd1,gpt6)
set prefix=(hd1,gpt6)/boot/grub
insmod normal
normal
  1. On Manjaro, open a terminal and reinstall grub on efi and reconfigure
sudo pacman -Syu grub
sudo su  # it's important move to root user, as we need to be chrooted and sudo itself is not enough
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
grub-mkconfig -o /boot/grub/grub.cfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment