進入Linux Live CD并chroot到本地硬盤
sudo su
mount /dev/sda4 /mnt #系統(tǒng)根分區(qū)對應(yīng)的sdaX
mount /dev/sda2 /mnt/boot/efi #EFI 分區(qū)
mount -t proc proc /mnt/proc
mount -t sysfs sys /mnt/sys
mount -o bind /dev /mnt/dev
mount -t devpts pts /mnt/pts
chroot /mnt
執(zhí)行Grub2安裝命令
grub2-install --directory=/usr/lib64/grub/x86_64-efi --target=x86_64-efi --efi-directory=/boot/efi --boot-directory=/boot/efi --bootloader-id=ubuntu --removable sda2
重啟
update-grub2
grub-mkconfig -o /boot/grub/grub2.cfg