一、
今天我的虚拟机上面的一台linux机器出现了问题,在启动的时候检查file system报错了。问题的原因可能是我的物理机器被人非正常关机了。唉…
错误的大概内容如下所示:
Checking filesystem
/ contains a file system with errors, check forced.
/:
Extended attribute block 6161415 has reference count 404, should be 402.
/: 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.
***Warning --SELinux is active
***Disabling security enforcement for system recovery.
***Run ‘setenforce 1’ to reenable.
Give root password for maintenance
(or type Control-D to continue:)_
解决
1.输入root的密码.
2.根据上面的错误提示,应该是/(根)除了问题,然后用df -h 查看/对应的设备,我这里对应的是