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就可以了(我用这个命令解决了该问题)。问题解决,继续做实验。
错误原因有可能是原先在写文件时发生了意外的错误,或者在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就可以了(我用这个命令解决了该问题)。问题解决,继续做实验。
相关文章推荐
- linux基础教程--安装JDK并配置环境变量
- MySQL之——CentOS下my.cnf 配置 日志类型及文件配置详解(我本人服务器上的配置,亲测可用)
- linux ubuntu平台下安装Scrapy
- 文本过滤之grep,egreo及fgrep
- Linux :IO多路复用模型
- CentOS6 安装pgloader
- Linux配置
- Linux多线程编程之线程控制
- exit()与_exit()函数的区别(Linux系统中)
- Centos配置本地yum源
- Introduction to FirewallD on CentOS
- GIT LINUX下基本操作
- linux的df命令
- Linux安装jdk1.6
- Win7 通过Smb共享CentOS文件步骤
- Linux下用sudo 命令时出现 is not in the sudoers file
- linux下grep、egrep及相应的正则表达式和用法
- linux基础教程--将文件提供给Linux使用
- linux makefile (1)
- RHEL 6.0使用CentOS yum源配置方法