这个问题我已经折腾了整整3天了,朝九晚十那种。
我黑五打折新买了一块sata固态硬盘用来装linux,打算用一个lvm容器装opensuse和ubuntu,ubuntu装上了,没有任何毛病。opensuse我把secure boot也装上了,但是secure boot一开,不管是opensuse的系统还是安装盘都不好使,电脑直接卡在那,键盘的numlock和capslock等3个灯可以开关,也可以用ctrl+alt+delete重启,但打死也进不去。我试过以下方法:
- 重装,tw、leap 42和15都试过
- 自己给内核签名并导入db、KEK
- 从/usr/lib64/efi/里换来opensuse单签名的shim,且把opensuse的公钥放到secure boot的db,KEK里
- 清空dbx黑名单
- 清空了整个secure boot凭据库(这么干和关闭secure boot没区别,虽然可以启动但是系统内mokutil显示secure boot未启用)
- 把EFI分区下opensuse的每一个efi文件都添加到db里
- 把ubuntu的shim给opensuse用,但是卡进了grub rescue里
- 关闭secure boot把我能找到的所有的密钥文件一个一个导入到MOK里,重启后会显示“按任意建来修改MOK”,我按了它就卡那了,再按一下回车又正常启动了。我还尝试过用uefi自带的shell来启动MokManagement.efi,效果是一样的,如果secure boot开启直接卡死,没开就正常启动。
- 更新最新UEFI固件并将以上方法全部重试。
我找遍了我能找的所有资料,大学的图书馆都找了,试过了所有的方法,结论就是secure boot与opensuse水火不容。
至于我为什么对secure boot这么执着,是因为我另一块nvme固态装了windows而且开了bitlocker,secure boot不能关,secure boot不能关,secure boot不能关,因为恢复密钥我找不到了。。。。。。
我把同样的安装盘放到我平时学习用的一个secure boot关不掉的Windows 10平板上,UEFI还是什么东西问了一句是否信任这个盘,我选了yes就直接安装了,一点毛病都没有。。。从此开始我觉得可能是我这台电脑的问题
配置:
AMD Ryzen 5 1600, 华擎AB350-ITX/ac, AMD Radeon RX580,
WD Black 250GB NVMe SSD, 金士顿 240GB SATA SSD, 希捷 2TB 普通硬盘
硬盘情况:
tommyvct@RYZEN-TOMMYVCT-UBUNTU:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 87.9M 1 loop /snap/core/5662 loop1 7:1 0 42.1M 1 loop /snap/gtk-common-themes/701 loop2 7:2 0 2.3M 1 loop /snap/gnome-calculator/260 loop3 7:3 0 45M 1 loop /snap/core18/442 loop4 7:4 0 34.6M 1 loop /snap/gtk-common-themes/818 loop5 7:5 0 3.7M 1 loop /snap/gnome-system-monitor/57 loop6 7:6 0 135.8M 1 loop /snap/discord/79 loop7 7:7 0 140.9M 1 loop /snap/gnome-3-26-1604/70 loop8 7:8 0 173.3M 1 loop /snap/spotify/26 loop9 7:9 0 13M 1 loop /snap/gnome-characters/124 loop10 7:10 0 140.7M 1 loop /snap/gnome-3-26-1604/74 loop11 7:11 0 195.2M 1 loop /snap/vlc/555 loop12 7:12 0 481M 1 loop /snap/intellij-idea-community/101 loop13 7:13 0 2.3M 1 loop /snap/gnome-calculator/238 loop14 7:14 0 14.5M 1 loop /snap/gnome-logs/45 loop15 7:15 0 135.8M 1 loop /snap/discord/82 loop16 7:16 0 88.2M 1 loop /snap/core/5897 loop17 7:17 0 13M 1 loop /snap/gnome-characters/139 sda 8:0 0 223.6G 0 disk ├─sda1 8:1 0 512M 0 part /boot/efi └─sda2 8:2 0 223.1G 0 part ├─harmony-ubuntu_root │ 253:0 0 65G 0 lvm / ├─harmony-ubuntu_swap │ 253:1 0 976M 0 lvm [SWAP] ├─harmony-opensuse_swap │ 253:2 0 1G 0 lvm ├─harmony-harmony_home │ 253:3 0 91.1G 0 lvm /home └─harmony-opensuse_root 253:4 0 65G 0 lvm sdb 8:16 0 1.8T 0 disk └─sdb1 8:17 0 1.8T 0 part nvme0n1 259:0 0 238.5G 0 disk ├─nvme0n1p1 259:1 0 499M 0 part ├─nvme0n1p2 259:2 0 100M 0 part ├─nvme0n1p3 259:3 0 16M 0 part ├─nvme0n1p4 259:4 0 237.1G 0 part └─nvme0n1p5 259:5 0 819M 0 part
tommyvct@RYZEN-TOMMYVCT-UBUNTU:~$ sudo fdisk -l
[sudo] password for tommyvct:
Disk /dev/loop0: 87.9 MiB, 92123136 bytes, 179928 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/loop1: 42.1 MiB, 44183552 bytes, 86296 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/loop2: 2.3 MiB, 2355200 bytes, 4600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/loop3: 45 MiB, 47235072 bytes, 92256 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/loop4: 34.6 MiB, 36216832 bytes, 70736 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/loop5: 3.7 MiB, 3878912 bytes, 7576 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/loop6: 135.8 MiB, 142352384 bytes, 278032 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/loop7: 140.9 MiB, 147722240 bytes, 288520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/nvme0n1: 238.5 GiB, 256060514304 bytes, 500118192 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: 8564D689-2B54-4244-8FD4-2F6435181C66Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 1023999 1021952 499M Windows recovery environment
/dev/nvme0n1p2 1024000 1228799 204800 100M EFI System
/dev/nvme0n1p3 1228800 1261567 32768 16M Microsoft reserved
/dev/nvme0n1p4 1261568 498437106 497175539 237.1G Microsoft basic data
/dev/nvme0n1p5 498438144 500115455 1677312 819M Windows recovery environmentDisk /dev/sda: 223.6 GiB, 240057409536 bytes, 468862128 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: 35A9CAE9-93B9-42B7-8A2F-F05BCA0791ABDevice Start End Sectors Size Type
/dev/sda1 2048 1050623 1048576 512M EFI System
/dev/sda2 1050624 468860927 467810304 223.1G Linux LVMDisk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x4c30baadDevice Boot Start End Sectors Size Id Type
/dev/sdb1 2048 3907026943 3907024896 1.8T 7 HPFS/NTFS/exFATDisk /dev/mapper/harmony-ubuntu_root: 65 GiB, 69793218560 bytes, 136314880 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/mapper/harmony-ubuntu_swap: 976 MiB, 1023410176 bytes, 1998848 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/loop8: 173.3 MiB, 181735424 bytes, 354952 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/loop9: 13 MiB, 13619200 bytes, 26600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/loop10: 140.7 MiB, 147496960 bytes, 288080 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/loop11: 195.2 MiB, 204644352 bytes, 399696 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/loop12: 481 MiB, 504303616 bytes, 984968 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/loop13: 2.3 MiB, 2355200 bytes, 4600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/loop14: 14.5 MiB, 15208448 bytes, 29704 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/loop15: 135.8 MiB, 142352384 bytes, 278032 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/loop16: 88.2 MiB, 92483584 bytes, 180632 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/loop17: 13 MiB, 13619200 bytes, 26600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/mapper/harmony-opensuse_swap: 1 GiB, 1073741824 bytes, 2097152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/mapper/harmony-harmony_home: 91.1 GiB, 97832140800 bytes, 191078400 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/mapper/harmony-opensuse_root: 65 GiB, 69793218560 bytes, 136314880 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