我已经通过 USB-Flash 安装了 Ubuntu Desktop LTS 20.04 64 位并选择了选项...
- 擦除磁盘
- 高级功能... > 使用 LVM > 加密以确保安全
如下图所示:
由于 UEFI 固件设置为 BIOS 兼容模式,安装使用标准 MBR 分区表,并以 GRUB 2 作为 MBR 启动代码:
# sudo fdisk -l /dev/sda
Disklabel type: dos # dos => MBR
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1050623 1048576 512M b W95 FAT32
/dev/sda2 1052670 488396799 487344130 232,4G 5 Extended
/dev/sda5 1052672 4050943 2998272 1,4G 83 Linux
/dev/sda6 4052992 488396799 484343808 231G 83 Linux
# hexdump -v -s 0x80 -n 2 -e '2/1 "%x" "\n"' /dev/sda
020 # This identifies the MBR boot code as GRUB 2, see https://unix.stackexchange.com/a/702790/160124
# sudo lsblk
sda 8:0 0 232,9G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
├─sda2 8:2 0 1K 0 part
├─sda5 8:5 0 1,4G 0 part /boot
└─sda6 8:6 0 231G 0 part
└─sda6_crypt 253:0 0 231G 0 crypt
├─vgubuntu-root 253:1 0 230G 0 lvm /
└─vgubuntu-swap_1 253:2 0 980M 0 lvm [SWAP]
# sudo ls -a /boot/efi
. ..
# sudo df | grep "Filesystem\|/dev/sda1"
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 523248 4 523244 1% /boot/efi
# fsck.fat -v -n /dev/sda1
Boot sector contents:
System ID "mkfs.fat"
Media byte 0xf8 (hard disk)
512 bytes per logical sector
4096 bytes per cluster
32 reserved sectors
/dev/sda1: 0 files, 1/130812 clusters # No files, one cluster used for FAT root directory.
你可以看到/boot/efi
是空的(4K 是 FAT 根目录,请参见https://superuser.com/a/1727654/505763)。