我的NAS硬盘无法启动。所以我决定通过连接到Ubuntu并使用以下命令来检查和标记坏块的硬盘。
很不幸,我收到了以下错误。请问您能告诉我如何标记由badblocks命令发现的坏块吗?
sudo badblocks -sv /dev/sdb > /tmp/bads.txt
sudo e2fsck -l /tmp/bads.txt /dev/sdb
很不幸,我收到了以下错误。请问您能告诉我如何标记由badblocks命令发现的坏块吗?
e2fsck 1.44.1 (24-Mar-2018)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/sdb
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
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>
or
e2fsck -b 32768 <device>
Found a gpt partition table in /dev/sdb