Linux启动报错unexpectedinconsistency;RUNfsckMANUALLY

本文发布时间: 2019-Mar-22
意外停电一次,CentOS启动时报如下错误:unexpected inconsistency;RUN fsck MANUALLYAn error occurred during the filesystem checkPropping you to shell the system will rebootwhen you leave the shellGive root password for mantennance解决方法如下:1、按提示,输入root用户的密码,进入命令行界面2、查找根目录以及boot所在分区并记录:# mount |grep "on /"3、修复文件系统# fsck -y /dev/sda2这里的/dev/sda2就是步骤2中读取到的-y 选项指定检测每个文件是自动输入yes4、修复boot分区(其实可以直接reboot,如果重启后仍然报错则执行此步骤)# fsck -y /dev/sda15、修改auditd日志文件的权限(这一步和步骤4一样,如果重启报错才需执行此步骤)# chown root.root /var/log/audit/audit.log# chmod 600 /var/log/audit/audit.log6、重启# reboot注:fsck扫描文件系统时一定要在单用户模式、修复模式或把设备umount后进行


(以上内容不代表本站观点。)
---------------------------------
本网站以及域名有仲裁协议。
本網站以及域名有仲裁協議。

2024-Mar-04 02:09pm
栏目列表