在我的 Linux Mint 21.1 Cinnamon 上,我刚刚经历了非常缓慢的启动,这在以前从未发生过:
$ systemd-analyze blame
40.890s systemd-fsck@dev-disk-by\x2duuid-c5da2d40\x2d42ce\x2d4193\x2d9f21\x2d08ab6de8764d.service
我刚起床,用三星 NVMe 2TB 驱动器打开我的笔记本电脑,但是启动时间很长,我去查看一些日志没有成功,只有上面显示了一些潜在的问题。
我现在如何调查为什么驱动器fsck
花了这么长时间?它记录在某处吗?谢谢你!
/run/initramfs/fsck.log
Log of fsck -C -f -y -T -t ext4 /dev/nvme0n1p2
Thu Mar 2 00:08:51 2023
e2fsck 1.46.5 (30-Dec-2021)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/nvme0n1p2: 1885079/122093568 files (0.6% non-contiguous), 179291521/488354304 blocks
Thu Mar 2 00:09:00 2023
----------------
那么什么可以解释极慢的启动呢?
来自评论:
正如root
我执行的那样:
# pv -Wptearb </dev/nvme0n1 >/dev/null
1.82TiB 0:15:59 [1.94GiB/s] [1.94GiB/s] [==============================>] 100%
找到了:
我最近添加的这个外部 5TB HDD 作为静态USB 单元 = 不拔掉它。
和
所以它应该像将最后一列更改
fstab
为零一样简单。让我们看看吧。