zoukankan      html  css  js  c++  java
  • 服务器意外断电,无法启动故障处理

    今天服务器意外断电,电源恢复之后重启时却报错,无法启动!报错信息如下所示:

     整理一下报错信息:

    checking filesystems    #从这里就就可以看出来,应该是文件系统出了问题
    /contians a file system wite errors, check forced
    Error reading block 145817602(Attempt to read block from filesystem short read)while geting mext inode from scan. #在扫描数据块时候出了毛病
    /:UNEXPECTED INCONSISTRENCY;  RUN fsck MANUALLY.
    (i.e,withiout -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)   #让我们手工输入密码

    猜测原因:

    Linux系统被强行关闭或重新启动,文件系统便有可能受损,系统会自动检查并修复文件系统;但文件系统未能自动修复,画面便会出现上述讯息。需要手动修复

    修复步骤

    1. 当出现上述错误后,首先看的提示“Give root password”,首先想到的是输入超级用户的密码。

    2. 由于知道系统所有的分区都ext格式的,所以e2fsck -f  把三个分区都检测修复了一下,输出以下下信息

    
    

    e2fsck 1.32 (09-Nov-2002)

    /boot was not cleanly unmounted, check forced

    Pass1: Checking inodes, blocks, and sizes(pass1检测完,有的会需要你输入Y,按照输入就行)

    Pass2: Checking directory structure
    Pass3: Checking directory connectivity
    Pass4: Checking reference counts
    Pass5: Checking group summary information
    /boot: *****FILE SYSTEM WAS MODIFIED*****
    /boot: 53/26104 files (13.2% non-contiguous), 27316/104391 blocks

    3,检测完成后,提示让重启,重启之后,正常进行系统,问题解决。

    .

  • 相关阅读:
    Eclipse中移除native层编译支持
    从Nginx源代码谈大写和小写字符转化的最高效代码以及ASCII码表的科学
    设计模式入门之原型模式Prototype
    Java 实现原型(Prototype)模式
    Eclipse
    图片3d轮放查看效果(V2.0):使用鼠标拖动实现图片的轮放
    Objective-C之成魔之路【0-序章】
    VC中常见API函数使用方法(经验版)
    zedboard中OLED源码
    Linux(C/C++)下的文件操作open、fopen与freopen
  • 原文地址:https://www.cnblogs.com/yizhangheka/p/11711403.html
Copyright © 2011-2022 走看看