Skip to content

Instantly share code, notes, and snippets.

@just6979
Last active October 8, 2015 07:25
Show Gist options
  • Save just6979/1122398c233a489fab94 to your computer and use it in GitHub Desktop.
Save just6979/1122398c233a489fab94 to your computer and use it in GitHub Desktop.
Reinstall Grub2 EFI
su -
cd /mnt
mount /dev/fedora/root ./
mount -t proc proc proc/
mount --rbind /sys sys/
mount --rbind /dev dev/
mount --rbind /var/run/ var/run/
chroot /mnt/
mount /boot
mount /boot/efi
dnf -y install grub2 grub2-efi grub2-efi-modules shim
dnf -y reinstall grub2 grub2-efi grub2-efi-modules shim
grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-install /dev/sda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment