一次Linux磁盘损坏导致系统不可用恢复实例

Linux操作系统的server重新启动后。系统启动报错,系统无法正常使用。

1、报错信息

1.1、报错屏幕信息

 

1.2、报错信息提取关键信息

(1)/dev/sda3:File …(inode #139928。mod time Thu May 28 03:28:11 2015)

   Has 1135 multiply-claimed block(s),sharedwith 1 file(s):

(2)/dev/sda3:UNEXPECTED INCONSISTENCY。RUN fsck MANUALLY.

         (i.e.,without –a or –p options)

                                                              [FAILED]

(3)*** An error occurred during the file system check.

     ***Dropping you to a shell; the systemwill reboot

     *** when you leave the shell.

     Give root password for maintenance

      (or type Control 0D to continue):

2、问题分析

从上面信息来看。是/dev/sda3磁盘有损坏所致,而且有提示,输入rootpassword后能够进入系统。并建议执行fsck进行磁盘检查。然后重新启动操作系统


3、修复磁盘

3.1 修复磁盘

[root@ol6-single ~]# fsck –y /dev/sda3

修复过程部分输出信息例如以下:

 

3.2 重新启动系统

[root@ol6-single ~]#init 0

重新启动后,系统恢复正常。

本文作者:黎俊杰(网名:踩点),从事”系统架构、操作系统、存储设备、数据库、中间件、应用程序“六个层面系统性的性能优化工作

欢迎增加 系统性能优化专业群,共同探讨性能优化技术。群号:258187244

原文地址:https://www.cnblogs.com/mfmdaoyou/p/6979132.html