我使用 Ubuntu 18.04.4 LTS,最近我将我的硬盘替换为另一个并更改/etc/fstab
文件:
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda6 during installation
UUID=287d1a83-ed10-4dff-8b3a-acca224d8cb0 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda2 during installation
UUID=36EF-F7C0 /boot/efi vfat umask=0077 0 1
# /home was on /dev/sdb3 during installation
UUID=4229bf67-6e83-4c25-bd03-8583f3a75c5a /home ext4 defaults 0 2
# swap was on /dev/sda7 during installation
UUID=48d1eac5-afac-4deb-88ab-0b9528dc7467 none swap sw 0 0
# swap was on /dev/sdb1 during installation
UUID=a8c63b5b-9d21-4a72-b059-3348e4a4333b none swap sw 0 0
现在我的系统可以正确启动了,但是我的启动时间大大增加在 /var/log/boot.log
文件中我发现了这样的行
#/var/log/boot.log
[^[[0;1;31mFAILED^[[0m] Failed to start File System Check on /dev/disk/by-uuid/426d7a71-bdfe-4b58-851d-9b023b968211.
See 'systemctl status "systemd-fsck@dev-disk-by\\x2duuid-426d7a71\\x2dbdfe\\x2d4b58\\x2d851d\\x2d9b023b968211.service"' for details.
426d7a71-bdfe-4b58-851d-9b023b968211
我的旧分区 UUID 在哪里。
输出如下systemctl status "systemd-fsck@dev-disk-by\\x2duuid-426d7a71\\x2dbdfe\\x2d4b58\\x2d851d\\x2d9b023b968211.service"
:
● systemd-fsck@dev-disk-by\x2duuid-426d7a71\x2dbdfe\x2d4b58\x2d851d\x2d9b023b968211.service - File System Check on /dev/disk/by-uuid/426d7a71-bdfe-4b58-851d-9b023b968211
Loaded: loaded (/lib/systemd/system/[email protected]; static; vendor preset: enabled)
Active: inactive (dead)
Docs: man:[email protected](8)
这看起来像是 systemd-fsck 忽略/etc/fstab
文件并尝试检查不存在的分区。
如何预防?