UEFI boot.

GPT: GUID分区表。


ESP: EFI System Partition. It is the place where UEFI will look for a boot loader. 一个专用分区,UEFI 会从这类分区搜索boot loader。


NVRAM: 是BIOS ROM中的一段区域,一般定义为64k byte, 现在EFI把所有的变量都存在这里。


boot loader: 启动引导器。让机器知道真正的要启动的系统所在。GRUB (grubx64.efi),Windows (bootmgfw.efi),SYSLINUX (syslinux.efi),都属于boot loader。


/EFI/Boot/bootx64.efi: UEFI fallback boot loader path,默认引导器路径。完整路径是\EFI\BOOT\BOOT{machine type short-name}.efi。当计算机没有引导条目或已存条目均无效时,尝试加载此文件。LiveCD和安装盘等就会用到这个文件。本文件其实就是grubx64.efi或者bootmgfw.efi,区别就是默认和指定的。


efibootmgr/Bcdedit: manipulate the UEFI Boot Manager。 创建和修改引导条目,保存在NVRAM。一般用于永久安装的系统,如安装好的Windows 10,而非安装盘或者LiveCD系统等。


常用路径

\EFI\boot\bootx64.efi

\EFI\Miscosoft\Boot\bootmgfw.efi

\EFI\Ubuntu\grubx64.efi

\EFI\Ubuntu\shimx64.efi (secure boot)


查看NVRAM引导设置的命令:

Linux: sudo efibootmgr -v

Win10: bcdedit /enum firmware


参考:

https://www.jianshu.com/p/a35d42daf010

https://www.happyassassin.net/posts/2014/01/25/uefi-boot-how-does-that-actually-work-then/

https://wiki.syslinux.org/wiki/index.php?title=Install#file_list

https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/bcd-system-store-settings-for-uefi?view=windows-11

Comments

Popular posts from this blog

DELL U4320Q ddccontrol in Linux switch input