Need a disk check type utility

spittledip

Diamond Member
Apr 23, 2005
4,480
1
81
Hey All,

I need a disk-heck type utility for Linux to check a partially bad hard drive. Are the only options Bad blocks and fsck? I need a check that will clearly tell me where the bad blocks are, how many bad blocks there are, and possibly a check that marks the blocks so that they will not be used by the File System. Does badblocks do that? Also, one that moves a bit faster than a turtle would be nice too.

Thanks
 

SleepWalkerX

Platinum Member
Jun 29, 2004
2,649
0
0
Here's what the -c (lower case c) switch does in e2fsck:

-c
This option causes e2fsck to use 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 specified twice, then the bad block scan will be done using a non-destructive read-write test.

That sounds like what you're looking for.
 

spittledip

Diamond Member
Apr 23, 2005
4,480
1
81
Thanks for the reply. How does it display the list of bad blocks? I assume at the end of the process it gives the test results?