今天无意中在 journalctl 的输出中看到一条消息说我的 EFI 分区没有正确卸载,可能有数据损坏,需要运行 fsck 修复一下。上 Google 一搜立即就找到了完整的解决方法。这次搜索体验真好 :D
那条消息大致如下,
kernel: FAT-fs (nvme0n1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
解决的方法是使用 root 身份对有问题的分区运行 fsck
,只是需要加选项 -a
。
# fsck -va /dev/nvme0n1p1 fsck from util-linux 2.34 fsck.fat 4.1 (2017-01-24) Checking we can access the last sector of the filesystem 0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt. Automatically removing dirty bit. Boot sector contents: System ID "MSDOS5.0" Media byte 0xf8 (hard disk) 512 bytes per logical sector 4096 bytes per cluster 7166 reserved sectors First FAT starts at byte 3668992 (sector 7166) 2 FATs, 32 bit entries 262656 bytes per FAT (= 513 sectors) Root directory start at cluster 2 (arbitrary size) Data area starts at byte 4194304 (sector 8192) 65536 data clusters (268435456 bytes) 63 sectors/track, 255 heads 2048 hidden sectors 532480 sectors total Reclaiming unconnected clusters. Checking free cluster summary. Performing changes. /dev/nvme0n1p1: 201 files, 7447/65536 clusters
最近频繁遇到内核崩溃,整个电脑只有屏幕亮着、风扇狂转和大小写锁定键上的 LED 不停闪烁。估计最近再次用到这个的机会还是挺多的。©
本文发表于水景一页。永久链接:<https://cnzhx.net/blog/kernel-says-fat-fs-needs-fsck/>。转载请保留此信息及相应链接。