如何检查你的计算机使用的是 UEFI 还是 BIOS
UEFI BIOS

> 
> 简介：这是一个快速的教程，来告诉你的系统使用的是现代 UEFI 或者传统 BIOS。同时提供 Windows 和 Linux 的说明。
> 
> 
> 


当你尝试[双启动 Linux 和 Windows](https://itsfoss.com/guide-install-linux-mint-16-dual-boot-windows/) 时，你需要知道系统上是否有 UEFI 或 BIOS 启动模式。它可以帮助你决定安装 Linux 的分区。


我不打算在这里讨论[什么是 BIOS](https://www.lifewire.com/bios-basic-input-output-system-2625820)。不过，我想通过 BIOS 告诉你一些 [UEFI](https://www.howtogeek.com/56958/htg-explains-how-uefi-will-replace-the-bios/) 的优点。


UEFI 即（<ruby> 统一可扩展固件接口 <rt>  Unified Extensible Firmware Interface </rt></ruby>）旨在克服 BIOS 的某些限制。它增加了使用大于 2TB 磁盘的能力，并具有独立于 CPU 的体系结构和驱动程序。采用模块化设计，即使没有安装操作系统，也可以支持远程诊断和修复，以及灵活的无操作系统环境（包括网络功能）。


### UEFI 优于 BIOS 的地方


* UEFI 在初始化硬件时速度更快。
* 提供安全启动，这意味着你在加载操作系统之前加载的所有内容都必须签名。这为你的系统提供了额外的保护层。
* BIOS 不支持超过 2TB 的分区。
* 最重要的是，如果你是双引导，那么建议始终在相同的引导模式下安装两个操作系统。


![How to check if system has UEFI or BIOS](/data/attachment/album/201803/14/091139fp4syqm0ppbhosb6.png)


如果试图查看你的系统运行的是 UEFI 还是 BIOS，这并不难。首先让我从 Windows 开始，然后看看如何在 Linux 系统上查看用的是 UEFI 还是 BIOS。


### 在 Windows 中检查使用的是 UEFI 还是 BIOS


在 Windows 中，在“开始”面板中的“系统信息”中，在 BIOS 模式下，可以找到启动模式。如果它显示的是 Legacy，那么你的系统是 BIOS。如果显示 UEFI，那么它是 UEFI。


![](/data/attachment/album/201803/14/091140atqovoicbwzdaf1i.png)


**另一个方法**：如果你使用 Windows 10，可以打开文件资源管理器并进入到 `C:\Windows\Panther` 来查看你使用的是 UEFI 还是 BIOS。打开文件 setupact.log 并搜索下面的字符串。



```
Detected boot environment

```

我建议在 notepad++ 中打开这个文件，因为这是一个很大的文件，记事本很可能挂起（至少它对我来说是 6GB ！）。


你会看到几行有用的信息。



```
2017-11-27 09:11:31, Info IBS Callback_BootEnvironmentDetect:FirmwareType 1.
2017-11-27 09:11:31, Info IBS Callback_BootEnvironmentDetect: Detected boot environment: BIOS

```

### 在 Linux 中检查使用的是 UEFI 还是 BIOS


最简单地找出使用的是 UEFI 还是 BIOS 的方法是查找 `/sys/firmware/efi` 文件夹。如果使用的 BIOS 那么该文件夹不存在。


![Find if system uses UEFI or BIOS on Ubuntu Linux](/data/attachment/album/201803/14/091140r6gxzetqdxdo4ex0.png)


**另一种方法**：安装名为 efibootmgr 的软件包。


在基于 Debian 和 Ubuntu 的发行版中，你可以使用以下命令安装 efibootmgr 包：



```
sudo apt install efibootmgr

```

完成后，输入以下命令：



```
sudo efibootmgr

```

如果你的系统支持 UEFI，它会输出不同的变量。如果没有，你将看到一条消息指出 EFI 变量不支持。


![](/data/attachment/album/201803/14/091141eseo6n9z859e8yoe.jpg)


### 最后的话


查看你的系统使用的是 UEFI 还是 BIOS 很容易。一方面，像快速和安全的引导为 UEFI 提供了优势，如果你使用的是 BIOS 也不必担心太多，除非你打算使用 2TB 硬盘。




---


via: <https://itsfoss.com/check-uefi-or-bios/>


作者：[Ambarish Kumar](https://itsfoss.com/author/ambarish/) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

When you are trying to [ dual boot Linux with Windows](https://itsfoss.com/guide-install-linux-mint-16-dual-boot-windows/), you would want to know if you have UEFI or BIOS boot mode on your system. It helps you decide in partition making for installing Linux.

If you are dual booting it’s always advisable to install both the OS in the same booting mode. So, you should first check if you’re using UEFI or BIOS and install accordingly.

I’ll show you how to check whether your system has UEFI or BIOS in both Windows and Linux.

## Why UEFI?

I am not going to discuss [ what BIOS is](https://en.wikipedia.org/wiki/BIOS) here. However, I would like to tell you a few advantages of

[over BIOS in case you’re wondering.](https://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface)

__UEFI__UEFI or Unified Extensible Firmware Interface was designed to overcome some limitations of BIOS. It added the ability to use larger than 2 TB disks and had a CPU independent architecture and drivers.

With a modular design, it supported remote diagnostics and repairing even with no operating system installed and a flexible without-OS environment including networking capability. Overall, you should keep the following points in mind:

### Advantage of UEFI over BIOS

- UEFI is faster in initializing your hardware.
- Offers Secure Boot which means everything that loads up before the OS wakes up has to be signed. This gives your system an added layer of protection from running malware.
- BIOS does not support a partition of over 2 TB. But, UEFI does.

## Check if you are using UEFI or BIOS on Windows

On Windows, “**System Information**” in Start panel and under BIOS Mode, you can find the boot mode. If it says Legacy, your system has BIOS. If it says UEFI, well it’s UEFI.

![Checking UEFI or BIOS in Windows](https://itsfoss.com/content/images/wordpress/2020/06/BIOS-windows.png)

### Alternative: Use CMD in Windows

You can launch a command prompt window as administrator and look for the path of the bootloader by running

`bcdedit`


Here, in the **Windows Boot Loader** section, look for **Path**. if the file extension for /Windows/System32/winload is **.exe**, your system uses legacy BIOS. If the extension is** .efi**, your system uses UEFI.

![Checking UEFI in Windows](https://itsfoss.com/content/images/wordpress/2020/06/uefi-bios-bcdedit-2.jpg)

### Another way to check UEFI or BIOS in Windows 10

If you are using Windows 10, you can check whether you are using UEFI or BIOS by opening File Explorer and navigating to C:\Windows\Panther. Open file setupact.log and search for the below string.

`Detected boot environment`


I would advise opening this file in notepad++, since its a huge text file and notepad may hang (at least it did for me with 6GB RAM).

You will find a couple of lines which will give you the information.

```
2017-11-27 09:11:31, Info IBS Callback_BootEnvironmentDetect:FirmwareType 1.
2017-11-27 09:11:31, Info IBS Callback_BootEnvironmentDetect: Detected boot environment: BIOS
```


## Check if you are using UEFI or BIOS on Linux

The easiest way to find out if you are running UEFI or BIOS is to look for a folder /sys/firmware/efi. The folder will be missing if your system is using BIOS.

![UEFI check in Ubuntu Linux](https://itsfoss.com/content/images/wordpress/2020/06/uefi-bios-4.png)

**/sys/firmware/efi exists means system uses UEFI**

**Alternative**: The other method is to install a package called efibootmgr.

On Debian and Ubuntu based distributions, you can install the efibootmgr package using the command below:

`sudo apt install efibootmgr`


Once done, type the below command:

`sudo efibootmgr`


If your system supports UEFI, it will output different variables. If not you will see a message saying EFI variables are not supported.

![Checking UEFI or BIOS in Linux](https://itsfoss.com/content/images/wordpress/2020/06/uefi-bios-efibootmgr-3.png)

## Final Words

So, now you know that finding whether your system is using UEFI or BIOS isn’t tough. Wasn’t that very easy?

Even though features like faster boot and secure boot provides an upper hand to UEFI, you don’t need to worry if your system uses BIOS. Unless you have a specific requirement for UEFI or BIOS, no action is required from your end to change that.