centos重启出现type Control-D to continue【fsck使用】
程序员文章站
2022-08-15 13:54:52
VMware vSphere克隆异常/dev/sda2:UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.(i.e.,without -a or -p options)[FAILED]***An error occurred during the file sy ......
vmware vsphere克隆异常
/dev/sda2:unexpected inconsistency; run fsck manually.
(i.e.,without -a or -p options)
[failed]
***an error occurred during the file system check.
***dropping you to a shell; the system will reboot
***when you leave the shell.
give root password for maintenance
(or type control-d to continue)
可能因为机器异常关机导致无法识别磁盘,需要检测修复。错误中已有提示
处理办法:
1、直接输入密码回车, vi /etc/fstab编辑状态提示只读
2、根据错误提示执行 fsck /dev/sda2 检查修复磁盘(不需要加-y),如果有其他磁盘(fdisk -l)了也检查下,提示输入y(es)
3、reboot
参考
https://blog.csdn.net/sh3nshu/article/details/46820371