在AWS上运行CentOS版本5.4(最终版)
突然间,一个磁盘驱动器响了起来。
该设备是/ dev / sdh …我该怎么做才能恢复它?
dmesg的结果是:
sdh: unknown partition table
e2fsck / dev / sdh导致
[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结果
[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>
首先做一个备份的磁盘(如果你有空间)
dd if=/dev/sdh of=your-file.bin
然后,你可以使用一些恢复工具,如testingtestdisk或任何你想要的,testing智能function等。
例如,您可以按照e2fsck说明进行操作,并尝试使用e2fsck -b 8193 。