/dev/mapper/ubuntu--vg-root contains a file system with errors, check forced.
Inodes that were part of a corrupted orphan linked list found.
/dev/mapper/ubuntu-vg-root: UNEXPECTED INCONSISTENCY; Run fsck MANUALLY.
(i.e., without -a or -p options)
fsck exited with status code 4.
The root file system on /dev/mapper/ubuntu--vg-root requires manual fsck
Ubuntu boots into initramfs
得益于公司机房的不稳定,经常强行断电,导致一台 ubuntu 进入了 initramfs 模式。
原因就是磁盘检查失败导致需要手动恢复。
现象
修复
可以通过 fsck 命令来手动修复磁盘:
参考
https://askubuntu.com/questions/781315/ubuntu16-04-boots-into-initramfs