o0w0o / ARTS

ARTS 鸽友打卡🐦
2 stars 0 forks source link

Ubuntu boots into initramfs #126

Open hyponet opened 4 years ago

hyponet commented 4 years ago

Ubuntu boots into initramfs

得益于公司机房的不稳定,经常强行断电,导致一台 ubuntu 进入了 initramfs 模式。

原因就是磁盘检查失败导致需要手动恢复。

现象

/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

修复

可以通过 fsck 命令来手动修复磁盘:

(initramfs) fsck /dev/mapper/ubuntu--vg-root

参考

https://askubuntu.com/questions/781315/ubuntu16-04-boots-into-initramfs