我对某事有点困惑。我在 Digital Ocean 上有一台服务器,我想知道用于系统启动的 BIOS 或 UEFI。
我尝试过以下事情:
root@debian:~$ dmidecode -t 0
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 2.4 present.
Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
Vendor: DigitalOcean
Version: 20171212
Release Date: 12/12/2017
Address: 0xE8000
Runtime Size: 96 kB
ROM Size: 64 kB
Characteristics:
BIOS characteristics not supported
Targeted content distribution is supported
BIOS Revision: 1.0
root@debian:/~$ efibootmgr
EFI variables are not supported on this system.
root@debian:/~$ ls -l /sys/firmware/efi
ls: cannot access '/sys/firmware/efi': No such file or directory
看起来像是使用了BIOS。但也有efi
目录/boot
。
root@debian:/~$ ls -l /boot/
drwxr-xr-x 3 root root 16384 Jan 1 1970 efi
drwxr-xr-x 6 root root 4096 Mar 30 18:48 grub
除此之外,当我查看磁盘分区表时,它是 GPT。我知道 GPT 不与 BIOS 一起使用,至少不是首选。磁盘也有 EFI 系统分区。
root@debian:/mnt$ fdisk -l /dev/vda
Disk /dev/vda: 80 GiB, 85899345920 bytes, 167772160 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 72FE8E7C-20D9-2A4A-8AFF-75948771F0DA
Device Start End Sectors Size Type
/dev/vda1 262144 167772126 167509983 79.9G Linux filesystem
/dev/vda14 2048 8191 6144 3M BIOS boot
/dev/vda15 8192 262143 253952 124M EFI System
Partition table entries are not in disk order.
我错过了什么?我如何确定该系统上使用的是哪一个?