my god:
https://blog.csdn.net/qq_33528164/article/details/76725439
first and formost, I am very appreciate to this blog which helps me with solving this problem.I can't bear that every time booting linux I must be wait for at least 1min 30s + 20s, nearly 2min which let me feel fail to the linux and I search many blogs for this problem and did not find. that is the way I come back to my two system machine.
引起这个错误的是Swap交换分区.
进入ubuntu20.04桌面后,输入下面的命令查看Swap状态。
swapon --show
从截图中可以发现,swap分区没有激活。再输入mount命令来查看已挂载的硬盘分区。$ mount
发现swap分区没有挂载。也就是说系统启动时swap分区挂载失败才导致了a start job is running for dev-disk-by这个错误。
但是为什么会挂载失败呢?后来发现,原来是swap分区的UUID号发生了变化。输入下面的命令查看swap分区的真实UUID。
sudo blkid
然后再查看/etc/fstab文件中swap分区的UUID。
sudo vim /etc/fstab
两个UUID不同,正好解释了为什么swap分区会挂载失败。
解决方法是删除或者注释掉/etc/fstab文件中swap分区的UUID,再用sudo blkid命令得出的swap分区UUID替换。
保存文件,重启reboot系统后这个错误就消失了。
这个错误在Arch Linux,Fedora,Ubuntu系统启动时都出现了。