您的位置:首页 > 运维架构 > Linux

Linux启动发现FileSystem Error,解决措施

2016-03-08 14:56 489 查看
已经好就没有来了,即将工作的我,最近在忙着整理毕业论文,今天第一次遇到了Linux启动发生问题,问题大致如下,以下为转载内容:
错误原因有可能是原先在写文件时发生了意外的错误,或者在shutdown的时候没有正常关机所致等等...
错误的大概内容如下所示:
-----------------------------------------------------------
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 查看/对应的设备(重点是/目录所对应的盘符,我的虚拟机是sda2),他这里对应的是/dev/sda3;
3.运行fsck.ext3 -p /dev/sda3,如果未能修复,接着运行下面的命令;
4.运行fsck.ext3 -y /dev/sda3 ; repair ok,之后reboot就可以了(我用这个命令解决了该问题)。问题解决,继续做实验。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: