问题解决:
root-file-system-requires-manual-fsck
Ubuntu无法启动提示The root filesystem on /dev/sda2 requires a manual fsck
电脑卡住了,然后直接 reboot,重启 ubuntu,发生了奇怪的现象。提示我说 /dev/sda2 need a manual fsck??? 啥情况?
经过百度,找到了解决方法,在此分享,希望能有帮助。
问题描述
(Initramfs): /dev/sda1 contains a file system with errors, check forced.
Inodes that were a part of a corrupted orphan linked lost found.
/dev/sda2 : UNEXPECTED INCONSISTENCY; RUN fsck manually.(I.e .,
without -a or -p options). fsck exited with status code 4. The root
filesystem on /dev/sda2 requires a manual fsck
这是因为非正常关机造成系统文件损坏,导致磁盘检测不通过,执行以下命令进行修复
解决方法
From there, you should be able to drop to some maintenance shell (if not already opened), where you may run fsck -yf /dev/sda2.
-
输入以下指令,手动修改 fsck
(initramfs) fsck -yf /dev/sda2
● Here y in -yf is for yes wherever the system asks for y/n choice
● The -f is to force check a filesystem, even if it is seen as clean. More of a reflex, might not be required when your system refuses to boot on that partition.
● 注意:命令中的/dev/sda2是开机时提示的问题磁盘,需根据实际提示信息就行修改
-
退出指令,正常启动
看到下面图片表示修复完成,这时重启一下服务器即可
(initramfs) exit
问题解决!!!