今天在学习LINUX的磁盘配额。
在修改fstab文件时配置错误,导致系统重启是出现以下信息:
checking filesystems
/: resize inode no valid 调整inode值无效
/: unexpected inconsistency;run fsck manualiy 以外的错误: 运行fsck 检测你的文件系统
(i.e.,without -a or -p options )
*** an error occurred during the file system check 错误发生在文件系统检测
*** dropping oyou to a shell;the system will reboot 跳过shell系统将会reboot
***when you leave the shell 你将离开的你shell
*** warning -- SELinux is active 警告selinux 活动状态
*** disabling security enforcement for system recovery 请先关闭selinux,之后恢复文件系统
*** run' setenforce 1; to reenable 运行setenforce 1命令关闭你的selinux,然后继续恢检测你的文件系统
Give root password for maintenace 输入密码。进入 single mode
(or type control-D to continue)
输入管理员ROOT的密码,进入SHELL,然后 vi /etc/fstab把我的错误配置删除掉。reboot就OK了。
我这只是配置错误。并不是因为系统不正常关闭造成的文件系统损坏。如果是,要用fsck命令检测。

