在全新安装的 Ubuntu 上出现“警告!UUID=[...] 不存在。”

在全新安装的 Ubuntu 上出现“警告!UUID=[...] 不存在。”

我有一台 HP 15.6 英寸笔记本电脑。我尝试安装 Ubuntu 22.04,而不是设备附带的 Windows 11。安装后尝试启动时,它停止并显示以下输出:

Gave up waiting for root file system device. Common problems:
  - Boot args (cat /proc/cmdline)
    - Check rootdelay= (did the system wait long enough?)
  - Missing modules (cat /proc modules; ls /dev)
ALERT! UUID=4e9c3790-267f-48df-9c0a-42a9adfee8bd does not exist. Dropping to a shell!

“cat /proc/cmdline”产生以下输出:

BOOT_IMAGE=/boot/vmlinuz-6.2.0-26-generic root=UUID=4e9c3790-267f-48df-9c0a-42a9adfee8bd ro quiet splash

“ls /dev | grep sd” 和“ls/dev | grep mmc” 没有任何结果。“blkid” 没有任何结果。

启动 Ubuntu ISO 并运行“sudo fdisk -l”会产生与我的硬盘相关的以下信息:

Disk /dev/sdb: 119.2 GiB, 127984992256 bytes, 31246336 sectors
Disk model: KLUDG4UHGC-B0E1
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 524288 bytes / 524288 bytes
Disklabel type: gpt
Disk identifier: 8AF8F545-F1A9-437E-A9F5-6B073606B0DC

Device       Start      End  Sectors   Size Type
/dev/sdb1      256   131327   131072   512M EFI System
/dev/sdb2   131328 31246079 31114752 118.7G Linux filesystem

我要指出的是,它没有提到任何启动驱动器,而我的 Ubuntu 笔记本电脑却提到了这一点。

从 Ubuntu ISO 启动后,我可以正常查看和挂载硬盘。我尝试从挂载的驱动器更新 initramfs 和 grub,但无济于事。

从 Ubuntu ISO 启动后,运行“sudo blkid”会对我的硬盘产生以下影响:

/dev/sdb2: UUID="4e9c3790-267f-48df-9c0a-42a9adfee8bd" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="e73a97de-296a-4905-9dd5-aee72da3d3a1"
/dev/sdb1: UUID="9E35-865B" BLOCK_SIZE="4096" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="39fc313e-fc4c-4529-add9-1be06a6177b9"

如果我安装硬盘并打开 /etc/fstab,所有的 UUID 都会匹配。

在 Grub 的编辑模式中将 UUID 与 fdisk 给我的 UUID 切换不起作用,因为 grub 抱怨“没有这样的设备”。

重新安装 Ubuntu 不会改变任何东西。重新安装 Windows 11 工作正常。查看我的 BIOS,我看不到任何可能影响任何东西的东西。Boot-Repair 没有帮助。以下是运行它的粘贴内容:https://pastebin.ubuntu.com/p/cfgp2mN6Rn/

说实话,我对此感到震惊。我使用的 Ubuntu (22.04) 笔记本电脑是类似的廉价 HP 设备。BIOS 和其它功能都相同,而且从未给我带来麻烦。如果有人能就如何让这台电脑正常工作提出一些想法,我将不胜感激。

更新:

尝试在硬盘的所有分区上使用 fsck -f /dev/sd**。没有成功。

相关内容