e2fsck有标记bad block的功能,具体是使用badblocks工具。详细见下:
*-c* This option causes *e2fsck* to use
badblocks(8)<http://www.9linux.com/index.php/man/badblocks/8>program
to do a read-only scan of the device in order to find any bad
blocks. If any bad blocks are found, they are added to the bad block inode
to prevent them from being allocated to a file or directory. If this option
is speci- fied twice, then the bad block scan will be done using a
non-destructive read-write test.