[ 5.738951] Btrfs loaded, crc32c=crc32c-intel Scanning for Btrfs filesystems
[ 5.858492] blk_update_request: I/O error, dev fd0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 [ 5.858870] floppy: error 10 while reading block 0
done. Begin: Will now check root file system ... fsck from util-linux 2.34
[/usr/sbin/fsck.ext4 (1) -- /dev/mapper/ubuntu--vg-ubuntu--lv] fsck.ext4 -a -C0 /dev/mapper/ubuntu--vg-ubuntu--lv
Inode 3801089 seems to contain garbage.
/dev/mapper/ubuntu--vg-ubuntu--lv: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. (i.e., without -a or -p options)
fsck exited with status code 4 done.
Failure: File system check of the root filesystem failed The root filesystem on /dev/mapper/ubuntu--vg-ubuntu--lv requires a manual fsck
BusyBox v1.30.1 (Ubuntu 1:1.30.1-4ubuntu6.5) built-in shell (ash) Enter 'help'for a list of built-in commands.
(initramfs)_
这一般是异常断电导致的,如果是 raid 或者磁盘损坏导致的话就不太好处理。
解决:
关注提示中的关键位置
1 2 3 4
UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. Inode ... seems to contain garbage. The root filesystem on /dev/mapper/ubuntu--vg-ubuntu--lv requires a manual fsck. BusyBox (initramfs)
fsck: error 2 (No such file or directory) fsck.ext4: No such file or directory while trying to open /dev/mapper/ubuntu--vg-ubuntu--lv Possibly non-existent device?
在 initramfs 里执行:
1 2 3 4 5 6 7 8 9
# 看看 LVM 在不在 lvm pvscan lvm vgscan # Found volume group "ubuntu-vg"说明物理卷还在。
# 激活卷组 lvm vgchange -ay # 如果成功会看见 logical volume(s) in volume group "ubuntu-vg" now active
# 确认逻辑卷出现 ls /dev/mapper/ # 一般能看见 ubuntu--vg-ubuntu--lv