Found win10 efi centos7 dual promoter system boot and modified sequence

Install win10 

Installation win . 1 0 process, the system automatically creates esp a partition, the format of the FAT 16, the following directory

 

1, EFI / the Boot folder remain intact

Delete EFI / in the Microsoft / the Boot / folder below except BCD to the documents of other file system will not boot;

Copy the original EFI / in the Microsoft / the Boot / folder below bootmgfw.efi files in it, that EFI / in the Microsoft / Boo t folder below two files, BCD and bootmgfw.efi , the system can start.

2 , on the basis of 1, that is retained in the Microsoft / the Boot / folder below the BCD and bootbgfw.efi files, delete EFI / Boo t / the BootX 6 4.efi file, reboot normal into the system.

Installation centos7

Installation CEN t os 7, you will be forced to mount / the Boot / EFI partition, install a similar win 10 of the ESP partition. Because win10 I first installed after installing CentOS 7, so there are two ESP partition, win 1 0 of the ESP partition has front, CentOS 7 of the ESP partition in the back. When the win 10 of the ESP partition can not be started, from the hard disk CentOS . 7 of the ESP into partitions CentOS . 7 system.

 

efi boot sequence modified test 

For convenience, copy EFI / centos / ESP files in the folder to the windows partition centos7 the ESP partition EFI / directory

 

EFI / centos / directory:

 

 EFI / Microsoft / directory

  

 

BOOTICE software UEFI Startup Manager, you can modify uefi boot sequence

 

 Click on 'modify the startup sequence'

 

 

点击添加,找到上面提到的ESP分区的EFI/centos7/shimx64.efi(需要将ESP分区挂载出来),可以选择它们的先后顺序实现开机启动windows还是Centos7。

这个应该是直接修改的主板的rom存储(需要bios电池供电的那个存储),和MBR模式修改启动顺序应该一样)

 

  

开机进bios,也可以修改这个启动顺序。

UEFI模式

 

最下面的'UEFI Hard Disk  Drive BBs Priorities'就是修改UEFI启动顺序,和上面用软件修改的效果是一样的。

  

进入之后

将centos7的选项调到最上面

再返回,可以看到‘Boot Option #3’选项已经变成 centos7 

之后开机就可以直接进centos7系统。

 

 总结 :

  • win10 efi启动只需要esp分区中的bootmgfw.efi和BCD两个文件即可。
  • efi引导顺序的信息存储在主板rom存储器中(主板小电池供电那个),引导顺序可以进bios修改,也可以用bootice软件直接修改。

 

后续小测试:

BOOTICE软件,还有BCD编辑功能BCD文件是windows启动时bootmgfw.efi读取的开机启动项目文件,是在上面说的修改UEFI启动顺序为windows之后都会读取的一个文件,是一个注册表文件

 

点击‘智能编辑模式’,第一项默认的是windows的启动,可以看到启动文件在\windows\system32\winload.efi,即开机之后读取ESP分区的EFI/Microsoft/bootmgfw.efi文件,bootmgfw.efi文件指向同目录下的BCD文件,BCD是一个配置文件,存储有windows系统启动文件的信息,(多系统启动,比如win7、win10,选择启动顺序界面即读取BCD文件中存储的信息),BCD文件第一个默认项“Windows…"指向“\windows\system32\winload.efi”,之后 由winload.efi加载windows内核,完成启动过程。

 

试验:

添加一个centos7的启动项

 

 

由于windows不能识别centos7的ext分区,所以启动文件没法指向centos7的启动文件。但保存之后,开机会显示该项目,但无法启动。

 

选择该项目,显示

Guess you like

Origin www.cnblogs.com/focus-g/p/11355350.html