fsck修复磁盘的例程2

异常:UNEXPECTED INCONSISTENCY:RUN fsck MANUALLY

场景说明:CentOS修复启动时根分区超级块错误的方案

    Check filesystems

_Centos-6.5-x86_:Superblock last mount time 

_Centos-6.5-x86_: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 sheell:the system will reboot

*** when you leave the shell

Give root password for maintenance

(or type Control-D to continue)

解决思路过程:

  1. in blur, can not pay much attention to the error log info, just want to install once again

  2. Now translate error info into Chinese : 检测文件系统的时候出现异常错误,提供控制台,当退出控制台的时候将会重启系统,键入密码进行维护****

  3. Ok,now you have noticed how to get a shell to manintenance the filesystem 

    输入密码回车

  4. df ,查看到当前的根文件系统已经挂载

  5. 怎么知道是根文件系统is broken,at the beginning ,I try to repair another data disk partition /dev/sdb1

    Howerver ,even though reboot system ,occur the same problem once again.

  6. try to umount root filesystem and fix it 

    umount /dev/sda2

    But ,it is stubbon,I can not get rid of it from mounted point.

  7. Give up all the considerations

  8. fsck /dev/sda2

    as a result ,the same problem occured once again

  9. I doubt that it is not only /dev/sda2 partition ,but also /dev/sda1 

    fsck  /dev/sda1 

  10. Yeah ,I got it 


你可能感兴趣的:(fsck,fsck.ext3)