首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >什么顺序的诊断,我应该运行在故障磁盘驱动器上的centos (在AWS)

什么顺序的诊断,我应该运行在故障磁盘驱动器上的centos (在AWS)
EN

Server Fault用户
提问于 2013-02-07 17:23:33
回答 1查看 138关注 0票数 0

在AWS上运行CentOS第5.4版(最终)

突然,一个磁盘驱动器向我袭来。

设备是/dev/sdh ..。我该怎么做才能开始恢复?

dmesg的结果是:

代码语言:javascript
复制
 sdh: unknown partition table

e2fsck /dev/sdh导致

代码语言:javascript
复制
[root@ip-xx-xx-xx-xx ~]# e2fsck /dev/sdh

e2fsck 1.39 (29-May-2006)
Couldn't find ext2 superblock, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/sdh

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

e2fsck -b 8193 /dev/sdh导致

代码语言:javascript
复制
[root@ip-xx-xx-xx-xx ~]#  e2fsck -b 8193 /dev/sdh
e2fsck 1.39 (29-May-2006)
e2fsck: Bad magic number in super-block while trying to open /dev/sdh

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
EN

回答 1

Server Fault用户

回答已采纳

发布于 2013-02-07 17:34:28

首先对磁盘进行备份(如果有空间的话)

代码语言:javascript
复制
dd if=/dev/sdh of=your-file.bin

然后,您可以使用一些还原实用程序,如testdisk或您想要的任何东西,测试智能功能等等。

例如,您可以按照e2fsck指令并尝试使用e2fsck -b 8193

票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/476503

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档