# BIOS

**BIOS**（基本输入输出系统，Basic Input/Output System）是个人计算机的固件，在通电时初始化硬件，然后加载操作系统。这一名称源自最初的 PC 固件设计，而开发于 20 世纪 70 年代的旧式 BIOS 至今仍决定着较老机器的启动行为。在现代 PC 上，BIOS 已被统一可扩展固件接口（UEFI）取代，后者支持更快的启动速度、更大的驱动器、更好的安全性，以及 [Windows 11](https://www.edgepedia.org/zh/windows-11) 所需的[安全启动](https://www.edgepedia.org/zh/secure-boot)和 TPM 等功能。<sup>[1](https://www.windowscentral.com/how-convert-mbr-disk-gpt-move-bios-uefi-windows-10)</sup>

| 关键事实 | 详情 |
|---|---|
| 作用 | 由主 CPU 执行的第一段代码；初始化硬件并将控制权交给操作系统，因此是一个关键的安全组件，且在很大程度上被隐式信任<sup>[2](https://nvlpubs.nist.gov/nistpubs/legacy/sp/nistspecialpublication800-147.pdf)</sup> |
| 存储 | 存储于串行外设接口（SPI）闪存中，通常与 POST、PCI 自动配置实用程序和即插即用支持存放在一起；可通过基于磁盘的程序进行更新<sup>[3](https://www.intel.com/content/dam/support/us/en/documents/intel-nuc/nuc-kits/NUC9QN_TechProdSpec.pdf)</sup> |
| 设置访问 | 在 POST 内存测试开始之后、操作系统启动开始之前按下 F2 等按键，即可进入 BIOS 设置程序<sup>[3](https://www.intel.com/content/dam/support/us/en/documents/intel-nuc/nuc-kits/NUC9QN_TechProdSpec.pdf)</sup> |
| 磁盘格式 | 旧式 BIOS 启动不要求主引导记录（MBR）分区样式，因为合适的引导加载程序可以从 GPT 磁盘启动，尽管 MBR 不支持超过 4 TB 的驱动器，且难以设置四个以上分区<sup>[4](https://learn.microsoft.com/windows-hardware/manufacture/desktop/windows-setup-installing-using-the-mbr-or-gpt-partition-style)</sup><sup> • </sup><sup>[19](https://www.gnu.org/software/grub/manual/grub/grub.pdf)</sup> |
| 后继者 | UEFI，由 UEFI 论坛管理，已有 140 多家技术公司参与，包括 AMD、AMI、Apple、Dell、HP、IBM、Intel、Lenovo 和 Microsoft<sup>[5](https://learn.microsoft.com/en-us/windows-hardware/design/device-experiences/oem-uefi)</sup> |
| 兼容性 | UEFI 系统可能包含兼容性支持模块（CSM），用于模拟从 MBR 磁盘进行旧式 BIOS 启动<sup>[4](https://learn.microsoft.com/windows-hardware/manufacture/desktop/windows-setup-installing-using-the-mbr-or-gpt-partition-style)</sup> |
| 安全指南 | NIST SP 800-147（BIOS 保护指南）和 SP 800-193（平台固件弹性指南，2018 年 5 月）涉及启动固件的保护、检测和恢复<sup>[6](https://csrc.nist.gov/pubs/sp/800/193/final)</sup> |

## BIOS 的作用

PC 通电后，BIOS 运行开机自检（POST），在屏幕上显示 BIOS 类型和版本代码，并验证核心硬件是否正常工作。随后固件初始化设备（包括 PCI 自动配置），并将控制权移交给操作系统的引导加载程序。<sup>[3](https://www.intel.com/content/dam/support/us/en/documents/intel-nuc/nuc-kits/NUC9QN_TechProdSpec.pdf)</sup>

**设置与更新。** BIOS 将其代码和设置程序存储在主板上的 SPI 闪存中。用户可以在 BIOS 设置程序中查看和更改设置，例如启动设备顺序和硬件选项；在 POST 内存测试开始之后、操作系统启动之前的窗口期内按下按键（许多 Intel 主板上为 F2）即可进入该程序。固件可通过基于磁盘的程序进行更新。<sup>[3](https://www.intel.com/content/dam/support/us/en/documents/intel-nuc/nuc-kits/NUC9QN_TechProdSpec.pdf)</sup> 在 Intel 平台上，SPI 闪存还可能包含固件接口表（FIT），其中含有指向 CPU 微码更新的指针，以便在启动过程的最早阶段加载微码。<sup>[7](https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/best-practices/microcode-update-guidance.html)</sup>

## 旧式限制

旧式 BIOS 通常与主引导记录分区方案配合使用，不过如果 GRUB 等合适的引导加载程序支持，它也可以从 GUID 分区表磁盘启动。<sup>[19](https://www.gnu.org/software/grub/manual/grub/grub.pdf)</sup> MBR 不支持超过 4 TB 的驱动器，且难以设置四个以上分区；UEFI 所使用的 GUID 分区表（GPT）消除了这些限制：GPT 支持大于 4 TB 的驱动器以及任意数量的分区。<sup>[4](https://learn.microsoft.com/windows-hardware/manufacture/desktop/windows-setup-installing-using-the-mbr-or-gpt-partition-style)</sup> 从 MBR 分区磁盘启动仅在 BIOS 模式下受支持。<sup>[8](https://learn.microsoft.com/en-us/windows-hardware/drivers/bringup/frequently-asked-questions)</sup>

**CSM。** 许多支持 UEFI 的 PC 包含兼容性支持模块，可重现旧式 BIOS 行为，使较旧的操作系统和设备仍能启动。根据固件选项的不同，系统可能同时允许从 GPT 磁盘进行 UEFI 启动和启用 CSM 的旧式 MBR [启动](https://www.edgepedia.org/zh/booting)。<sup>[9](https://learn.microsoft.com/en-us/windows-hardware/drivers/bringup/switch-from-legacy-mbr-disk-to-gpt-disk-with-windows-10)</sup>

## 向 UEFI 的过渡

UEFI 定义了操作系统与平台固件之间的接口，其前身是可扩展固件接口（EFI）规范。<sup>[10](https://www.intel.com/content/www/us/en/developer/articles/tool/unified-extensible-firmware-interface.html)</sup> UEFI 不依赖引导扇区代码，而是包含一个启动管理器，可从 UEFI 定义的文件系统中的任意文件加载应用程序（包括操作系统的第一阶段加载程序），启动选项存储在 BootOrder 和 Boot#### 等 NVRAM 变量中。<sup>[11](https://uefi.org/specs/UEFI/2.10/02_Overview.html)</sup> UEFI 还将操作系统加载程序和平台固件的启动菜单整合为单一的固件菜单。<sup>[11](https://uefi.org/specs/UEFI/2.10/02_Overview.html)</sup>

**迁移已安装的系统。** Microsoft 提供了 MBR2GPT 工具，可在保留数据的同时将磁盘从 MBR 转换为 GPT，使 Windows 安装无需全新重装即可从 BIOS 模式迁移到 UEFI 模式。<sup>[4](https://learn.microsoft.com/windows-hardware/manufacture/desktop/windows-setup-installing-using-the-mbr-or-gpt-partition-style)</sup> 转换后，将固件设置为仅 UEFI 启动，禁用 CSM 并启用安全启动，可使用 msinfo32 验证结果。<sup>[12](https://learn.microsoft.com/en-us/windows-hardware/drivers/bringup/mbr2gpt-tool-test-guidance?source=recommendations)</sup> Microsoft 的硬件认证计划要求除服务器外的所有系统均在不激活 CSM 的 UEFI 模式下通过认证。<sup>[13](https://download.microsoft.com/download/A/C/9/AC95E05C-3B35-43F1-86E5-E948A70454E5/Windows%20Hardware%20Compatibilty%20Program_151106.pdf)</sup>

## 安全

由于 BIOS 是主 CPU 执行的第一段代码，它是一个关键的安全组件：它可以验证启动后期执行的固件和软件，但 BIOS 本身的全部或部分被隐式信任。<sup>[2](https://nvlpubs.nist.gov/nistpubs/legacy/sp/nistspecialpublication800-147.pdf)</sup> 对平台固件的成功攻击可能导致系统无法运行（也许是永久性的），或需要由原始制造商重新编程。NIST SP 800-193 于 2018 年 5 月发布，由 NIST 的 Andrew Regenscheid 撰写，围绕三项原则组织固件弹性：保护固件代码和关键数据免遭损坏、检测未经授权的更改，以及恢复到完整性状态。<sup>[6](https://csrc.nist.gov/pubs/sp/800/193/final)</sup>

**安全启动。** UEFI 安全启动要求固件使用公钥密码学验证启动序列中所有映像的签名，直至并包括 Windows 启动管理器。签名数据库（db 和 dbx）列出了允许加载或不得加载的 UEFI 应用程序和驱动程序的签名者或哈希值，KEK 数据库则授权对这些数据库的更新；OEM 在制造时将这些预置在固件非易失性 RAM 中。<sup>[14](https://learn.microsoft.com/en/windows-hardware/design/device-experiences/oem-secure-boot)</sup> 安全启动是安装 Windows 11 的先决条件，不过最低要求仅是 PC 具备安全启动能力且启用 UEFI。<sup>[15](https://support.microsoft.com/en-us/windows/security/devicesecurity/windows-11-and-secure-boot)</sup>

**证书到期。** Microsoft 最初于 2011 年颁发的安全启动证书将从 2026 年 6 月开始到期，Microsoft 正在通过一套新的 2023 年证书更新设备，其中大部分通过 [Windows Update](https://www.edgepedia.org/zh/windows-update) 自动送达。证书到期时仍未获得新证书的设备仍可启动和安装标准更新，但无法再获得针对早期启动过程的新安全保护，例如 Windows 启动管理器、安全启动数据库和吊销列表的更新，以及针对新发现的启动链漏洞的修复。<sup>[16](https://support.microsoft.com/en-us/servicing/os/secure-boot/2026/02/when-secure-boot-certificates-expire-on-windows-devices)</sup> 具体日期包括 Microsoft Corporation KEK CA 2011 于 2026 年 6 月 24 日到期，Microsoft UEFI CA 2011 于 2026 年 6 月 27 日到期，两者均由 2023 年的对应证书取代。<sup>[17](https://learn.microsoft.com/en-us/azure-stack/operator/secure-boot-certificates?view=azs-2601)</sup>

## 开源固件

并非所有启动固件都遵循 BIOS 或 UEFI 供应商模式。coreboot 项目用分阶段的开源启动流程取代专有固件：汇编语言编写的 bootblock 负责建立 C 环境和缓存即内存（Cache-As-RAM），romstage 负责初始化 DRAM，ramstage 则在加载引导加载程序或操作系统内核等载荷之前执行主要硬件初始化和设备设置。<sup>[18](https://doc.coreboot.org/getting_started/architecture.html)</sup> 在启用验证启动的情况下，verstage 充当信任根，被假定为在部署后不可覆写，并在从固件文件系统加载每个文件之前对其进行验证。<sup>[18](https://doc.coreboot.org/getting_started/architecture.html)</sup>

## References

1. [What is the difference between BIOS and UEFI? (Windows Central, MBR to GPT guide)](https://www.windowscentral.com/how-convert-mbr-disk-gpt-move-bios-uefi-windows-10)
2. [NIST SP 800-147, BIOS Protection Guidelines](https://nvlpubs.nist.gov/nistpubs/legacy/sp/nistspecialpublication800-147.pdf)
3. [Intel NUC 9 Technical Product Specification, Overview of BIOS Features](https://www.intel.com/content/dam/support/us/en/documents/intel-nuc/nuc-kits/NUC9QN_TechProdSpec.pdf)
4. [Windows Setup: Installing using the MBR or GPT partition style, Microsoft Learn](https://learn.microsoft.com/windows-hardware/manufacture/desktop/windows-setup-installing-using-the-mbr-or-gpt-partition-style)
5. [UEFI firmware requirements, Microsoft Learn](https://learn.microsoft.com/en-us/windows-hardware/design/device-experiences/oem-uefi)
6. [NIST SP 800-193, Platform Firmware Resiliency Guidelines](https://csrc.nist.gov/pubs/sp/800/193/final)
7. [Intel Microcode Update Guidance](https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/best-practices/microcode-update-guidance.html)
8. [Firmware WEG FAQ, Microsoft Learn](https://learn.microsoft.com/en-us/windows-hardware/drivers/bringup/frequently-asked-questions)
9. [Switch from legacy MBR disk to GPT disk with Windows 10, Microsoft Learn](https://learn.microsoft.com/en-us/windows-hardware/drivers/bringup/switch-from-legacy-mbr-disk-to-gpt-disk-with-windows-10)
10. [Unified Extensible Firmware Interface, Intel Developer](https://www.intel.com/content/www/us/en/developer/articles/tool/unified-extensible-firmware-interface.html)
11. [UEFI Specification 2.10, Overview](https://uefi.org/specs/UEFI/2.10/02_Overview.html)
12. [MBR2GPT Tool Test Guidance, Microsoft Learn](https://learn.microsoft.com/en-us/windows-hardware/drivers/bringup/mbr2gpt-tool-test-guidance?source=recommendations)
13. [Windows Hardware Compatibility Program, requirement 680 (2015)](https://download.microsoft.com/download/A/C/9/AC95E05C-3B35-43F1-86E5-E948A70454E5/Windows%20Hardware%20Compatibilty%20Program_151106.pdf)
14. [Secure Boot, Microsoft Learn (OEM requirements)](https://learn.microsoft.com/en/windows-hardware/design/device-experiences/oem-secure-boot)
15. [Windows 11 and Secure Boot, Microsoft Support](https://support.microsoft.com/en-us/windows/security/devicesecurity/windows-11-and-secure-boot)
16. [When Secure Boot certificates expire on Windows devices, Microsoft Support (KB 5079373)](https://support.microsoft.com/en-us/servicing/os/secure-boot/2026/02/when-secure-boot-certificates-expire-on-windows-devices)
17. [Manage Secure Boot certificate updates, Azure Stack Hub, Microsoft Learn](https://learn.microsoft.com/en-us/azure-stack/operator/secure-boot-certificates?view=azs-2601)
18. [coreboot architecture documentation](https://doc.coreboot.org/getting_started/architecture.html)
19. [gnu.org](https://www.gnu.org/software/grub/manual/grub/grub.pdf)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › Boards, peripherals & form factors › Motherboards & form factors › Chipsets and board logic

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/bios

English original: https://www.edgepedia.org/bios
