我正在尝试在加密分区上设置启动,因此我输入以下命令:
efibootmgr -d /dev/nvme0n1 -p 1 -c -L "Arch Linux" -l /vmlinuz-linux -u "root=/dev/nvme0n1p6 rw initrd=/initramfs-linux.img cryptdevice=/dev/nvme0n1p6:cryptroot"
不幸的是,重新启动后,它所做的只是将日语字符添加到启动列表中,并且无法启动。
所以这里有一些信息:
root@ubuntu:~# fdisk -l
Disk /dev/nvme0n1: 477 GiB, 512110190592 bytes, 1000215216 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: F9CA7213-905E-425E-AA19-3872C8801ADA
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 1128447 1126400 550M EFI System
/dev/nvme0n1p3 1128448 1161215 32768 16M Microsoft reserved
/dev/nvme0n1p4 1161216 758552575 757391360 361.2G Microsoft basic data
/dev/nvme0n1p6 760506368 1000214527 239708160 114.3G Linux filesystem
root@ubuntu:~# mount /dev/nvme0n1p1 /mnt
root@ubuntu:~# ls /mnt
initramfs-linux-fallback.img initramfs-linux.img vmlinuz-linux
root@ubuntu:~# efibootmgr -v
BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001,0002,0000
Boot0000* Arch Linux VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)r.o.o.t.=./.d.e.v./.n.v.m.e.0.n.1.p.6. .r.w. .i.n.i.t.r.d.=./.i.n.i.t.r.a.m.f.s.-.l.i.n.u.x...i.m.g. .c.r.y.p.t.d.e.v.i.c.e.=./.d.e.v./.n.v.m.e.0.n.1.p.6.:.c.r.y.p.t.r.o.o.t.
Boot0001* UEFI: VerbatimSTORE N GO 1100 PciRoot(0x0)/Pci(0x1a,0x0)/USB(1,0)/USB(1,0)/HD(1,MBR,0x4294967286,0x800,0x1dd9000)..BO
Boot0002* UEFI: USB DISK 2.0 PMAP PciRoot(0x0)/Pci(0x1a,0x0)/USB(1,0)/USB(2,0)/HD(1,MBR,0x4294967186,0xac,0xf800)..BO
那么这个错误是关于什么的,我在命令行中犯了错误efibootmgr
还是什么?我必须补充一点,当我尝试安装 debian 时,我遇到了同样的问题(日语无法启动字符)。难道是主板无法开机vmlinuz
?