Skip to content

Instantly share code, notes, and snippets.

@ajthemacboy
Created February 17, 2018 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajthemacboy/006be909e5f31b2a30556c48752c7d85 to your computer and use it in GitHub Desktop.
Save ajthemacboy/006be909e5f31b2a30556c48752c7d85 to your computer and use it in GitHub Desktop.
Manually install Grub when it fails when dual-booting with Windows
### Boot into rescue mode from installer USB
mount /dev/nvme0n1p5 /mnt
mount --bind /dev /mnt/dev
cd /mnt
mount -t sysfs sys sys/
mount -t proc proc proc/
chroot /mnt
### Inside chroot
grub2-mkconfig -o /boot/grub2/grub.cfg
mount /dev/nvme0n1p2 /boot
grub2-install /boot/efi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment