我最近在 Fedora 31 x64 上遇到了一个问题。启动时,操作系统卡在
A start job is running for /dev/disk/by-uuid/ccd365d0-0305-4b27-b0be-f434bd32b999
然后1分30秒后,得到了
Timed out waiting for device /dev/disk/by-uuid/ccd365d0-0305-4b27-b0be-f434bd32b999
Dependency failed for Resume from hibernation using device /dev/disk/by-uuid/ccd365d0-0305-4b27-b0be-f434bd32b999
大多数与此类错误相关的在线页面都在谈论fstab
。但是,这是我的/etc/fstab
:
UUID=3bf4a47c-3b4f-471b-8a33-f0382b0c171f / ext4 defaults 1 1
/dev/disk/by-uuid/AE20D54C20D51BE1 /mnt/win7ntfs ntfs-3g nosuid,nodev,nofail,x-gvfs-show,uid=1000,gid=1000 0 0
/dev/disk/by-uuid/C08A4AF68A4AE88C /mnt/ssdntfs ntfs-3g nosuid,nodev,nofail,x-gvfs-show,uid=1000,gid=1000 0 0
/dev/disk/by-uuid/16a9828c-8ace-4293-b3cb-ae79721e8dc8 none swap sw 0 0
这是sudo blkid
:
/dev/sda1: UUID="e341ccc7-be41-1fef-fdb8-f63270789736" UUID_SUB="087ca276-07e7-8b36-cdef-f61f375b1658" LABEL="fedora_localhost-live" TYPE="linux_raid_member" PARTUUID="39ea24cf-01"
/dev/sdb1: UUID="e341ccc7-be41-1fef-fdb8-f63270789736" UUID_SUB="2c14618e-a20d-4514-749f-3611fc6726d7" LABEL="fedora_localhost-live" TYPE="linux_raid_member" PARTUUID="360c6a3f-01"
/dev/sdb2: UUID="16a9828c-8ace-4293-b3cb-ae79721e8dc8" TYPE="swap" PARTUUID="360c6a3f-02"
/dev/sdb3: LABEL="SSD4Win" UUID="6ABA30A81F399372" TYPE="ntfs" PTTYPE="dos" PARTUUID="360c6a3f-03"
/dev/sdc1: LABEL="M-cM-^BM-7M-cM-^BM-9M-cM-^CM-^FM-cM-^CM- M-cM-^AM-'M-dM-:M-^HM-gM-4M-^DM-fM-8M-^HM-cM-^AM-?" UUID="AE76D3A576D36D19" TYPE="ntfs" PARTUUID="6af174d2-01"
/dev/sdc2: LABEL="Win7" UUID="AE20D54C20D51BE1" TYPE="ntfs" PTTYPE="atari" PARTUUID="6af174d2-02"
/dev/md127: UUID="3bf4a47c-3b4f-471b-8a33-f0382b0c171f" TYPE="ext4"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
正如您所看到的,我的笔记本电脑不包含带有 UUID 的磁盘ccd365d0-0305-4b27-b0be-f434bd32b999
,也不包含fstab
.
我已经尝试了systemctl daemon-reload
好dracut -f
几次,但仍然无法解决问题。
答案1
问题解决了。
我检查/etc/default/grub
并发现了这一行:
GRUB_CMDLINE_LINUX="resume=UUID=ccd365d0-0305-4b27-b0be-f434bd32b999 rd.md.uuid=e341ccc7:be411fef:fdb8f632:70789736 rhgb quiet"
上个月,我更换了/dev/sdb
mdadm RAID 1 阵列中的 2 个磁盘之一。因此交换分区的 UUID 也发生了变化。我没有修改grub配置文件。
我更正了配置文件并运行了grub2-mkconfig -o /boot/grub2/grub.cfg
.现在一切都很顺利。