我刚刚将 SSD 克隆到更大的 SSD,但无法运行我的 2 个 Linux 安装中的任何一个(Windows 没问题)。
启动时,我收到以下错误:
[ TIME ] Timed out waiting for device /dev/disk/by-uuid/0A91-4BD3.
[DEPEND] Dependency failed for File System Check on /dev/disk/by-uuid/0A91-4BD3.
[DEPEND] Dependency failed for /boot/efi.
[DEPEND] Dependency failed for Local File Systems.
[ TIME ] Timed out waiting for device /dev/disk/by-uuid/1c5cfcfc-7c8c-4eee-bdce-a4f6d3bafaed.
[DEPEND] Dependency failed for /mnt/back-portatil.
[ TIME ] Timed out waiting for device /dev/disk/by-uuid/8d455c16-9fa2-471f-b501-78903d090498.
[DEPEND] Dependency failed for /mnt/segun.
[FAILED] Failed to start Load Kernel Modules.
/etc/fstab
但是当我从实时 USB chroot 时比较 UUID 时blkid
,我可以看到 UUID 是正确的。
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=0A91-4BD3 /boot/efi vfat umask=0077 0 2
UUID=c8bd78b7-4c4e-4941-be95-78499588fd6f / ext4 defaults,noatime
,discard 0 1
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
UUID=1c5cfcfc-7c8c-4eee-bdce-a4f6d3bafaed /mnt/back-portatil ext4
user,auto 0 0
/dev/disk/by-uuid/8d455c16-9fa2-471f-b501-78903d090498 /mnt/segun auto
nosuid,nodev,nofail,x-gvfs-show 0 0
在 chroot 中我也尝试过update-grub && grub-install
,但没有任何改变。
这个相关问题建议使用sudo update-initramfs -u
,但我没有这样的命令。
其他相关问题的原因是 /etc/fstab 中的 UUID 不存在于任何连接的磁盘中。但这里的情况并非如此。连接旧磁盘时,系统会在旧磁盘中安装具有相同 UUID 的分区,即使从新磁盘启动也是如此,但是当旧磁盘不存在时,系统会卡住并且似乎无法找到分区,即使它们已存在相同的 UUID。
附加信息
blkid
裁剪结果:
[...]
/dev/sda2: LABEL="bkportatil" UUID="1c5cfcfc-7c8c-4eee-bdce-a4f6d3bafaed" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="af175c98-02"
/dev/sda3: LABEL="segunlinux" UUID="8d455c16-9fa2-471f-b501-78903d090498" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="af175c98-03"
[...]
/dev/sdb3: UUID="803d6d97-993b-486d-8c70-9b5147d4b3bc" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="ef9f577a-f8b4-7e46-9c50-11a7e124bf83"
/dev/sdb4: UUID="c8bd78b7-4c4e-4941-be95-78499588fd6f" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="4a009abc-f31d-d946-bdb6-5f700d12297d"
[...]