win10 修复efi
(TLDR: bootctl --path=/path/to/esp-partition install)
(TLDR: bootctl --path = / path / to / esp-partition install )
Besides my Arch Linux installation, I have a partition that runs Windows (primarily to play Age of Empires II). Today I upgraded to Windows 10, which – as expected – overwrote the EFI bootloader.
除了我的Arch Linux安装之外,我还有一个运行Windows的分区(主要是玩帝国时代II )。 今天,我升级到Windows 10,正如预期的那样,它覆盖了EFI引导加载程序。
This guide will work if you’re using either Gummiboot or systemd-boot. (Gummiboot was merged into systemd-boot, so by running the following commands you’re doing an upgrade as well.)
如果您使用Gummiboot或systemd-boot,那么本指南将适用。 (Gummiboot已合并到systemd-boot中,因此,通过运行以下命令,您也将进行升级。)
How to fix the bootloader:
如何修复引导程序:
- Download the current Arch Linux ISO: https://www.archlinux.org/download/
- Flash it to an USB drive: dd if=path-to-iso.img of=/path/to/usb-drive bs=8M
- Boot from the USB drive (choose the EFI option in the boot menu)
- Find your EFI partition using fdisk -l. You will recognize it by the partition type, which is EFI System.
- Create a mountpoint for the partition: mkdir /efi
- Mount the partition: mount /path/to/efi-partition /efi
- Make sure that the now mounted /efi directory contains the EFI subdirectory.
- (Re-)Install systemd-boot: bootctl --path=/efi install
- Reboot
- 下载当前的Arch Linux ISO: https : //www.archlinux.org/download/
- 将其刷新到USB驱动器: dd if = path-to-iso.img of = / path / to / usb驱动器 bs = 8M
- 从USB驱动器启动(在启动菜单中选择EFI选项)
- 使用fdisk -l查找您的EFI分区。 您将通过分区类型EFI System识别它。
- 为该分区创建安装点: mkdir / efi
- 挂载分区: 挂载/ path / to / efi-partition / efi
- 确保现在挂载的/ efi目录包含EFI子目录。
- (重新)安装systemd-boot: bootctl --path = / efi install
- 重启
翻译自: https://www.pybloggers.com/2016/06/fixing-efi-bootloader-after-windows-10-upgrade/
win10 修复efi