Data-Recovery

e2fsck 給出一些錯誤

  • December 29, 2013

我正在玩 LVM 並在做lvreduce. 我現在收到此錯誤:

[root@localhost raja]# e2fsck -f /dev/vg1/lvol2
e2fsck 1.41.12 (17-May-2010)
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/vg1/lvol2

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>

我怎樣才能解決這個問題?

如果文件系統確實在該設備上,則使用相同的參數加上 a 執行 mkfs.ext4-n將為您提供可以用作替代的超級塊列表。例如:

# mkfs.ext4 -n /dev/vg1/lvol2

Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

然後你可以執行e2fsck -b 32768 /dev/vg1/lvol2或其他備份超級塊,看看它是否會修復它。PS:32768是典型的備份塊,其他位置取決於分區的大小。

引用自:https://unix.stackexchange.com/questions/106997