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


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

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磁盘有损坏所致,并且有提示,输入root密码后可以进入系统,并建议运行fsck进行磁盘检查,然后重启操作系统

 

3、修复磁盘

3.1 修复磁盘

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

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

 

\

3.2 重启系统

[root@ol6-single ~]#init 0

重启后,系统恢复正常。

相关内容