Last active
October 8, 2015 07:25
-
-
Save just6979/1122398c233a489fab94 to your computer and use it in GitHub Desktop.
Reinstall Grub2 EFI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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