CentOS的”Give root password for maintenance”错误

2011年11月15日 9,629 浏览数 没有评论

  出现这样的错误一般都是由Ext2的分区错误造成的,出现的错误提示如下:

Your system appears to have shut down uncleanly
press Y within 1 seconds to force file system integrity check…
checking root filesystem
/contains a file system with errors,check forced.
/:
Unattached inode 813065

/: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.
Give root password for maintenance
(or type Control-D to continue):

用以下步骤解决:

步骤一:
输入root帐户的密码,注意输入密码的时候没有显示的

步骤二:
输入: df -T
这个命令是显示所有文件系统格式,及其Mount point

步骤三:
若有两个EXT2分区
/
/boot

那么输入:fsck -y /
处理 / 根目录

输入:fsck -y /boot
处理 /boot 目录

步骤四:
输入:reboot 
重启系统

分类: 网站相关 标签: