This file describes how to fix EFI and boot system especially useful in multiple systems
- use
ls
to list partitions on disk. - use ls (X, Y) to find which is the efi partition you need, where X and Y should be changed according to your own situation.
- after found the right partition (X, Y), use
set root=(X, Y)
. - use command
chainloader path/file.efi
to set the chainloader, for example, the path could be /efi/boot/grubx64.efi. - use command
boot
to boot your system, done!
- you need an external Windows installation disk, better on your USB.
- boot system from that disk, select your language, and press shift+f10 to open terminal.
- use
diskpart
to open diskpart. - use
list vol
to list all volumns on your disk. - find the right vol of your EFI, you can check if that's right by exit diskpart and cd into that volumn.
- if the volumn doesn't has a letter, you can use
select vol N
where N is the id of that volumn, and useassign letter #
where # is the letter you want it to be, but not the existed letters. - use
exit
to exit diskpart,cd #:
to cd into a volumn, and usedir
to list files to find which one is the EFI volumn and which one is the main partition of your Windows OS. - use command
bcdboot #:\Windows /s $:
where # is your Windows OS volumn and $ is your EFI volumn. - reboot and you can find your EFI has been fixed.
- you need an external Linux installation disk, better on your USB.
- follow the part "Use GRUB to boot system" to boot your Linux.
- after entered your Linux system, open your terminal and use
sudo update-grub
to let your Linux fix the boot loader automatically.