Badblocks
Sign in to savebadblocks is a Linux utility to check for bad sectors on a disk drive. It can create a text file with a list of these sectors that can be used with other programs, like mkfs, so that they are not used in the future and thus do not cause data corruption. It is part of the e2fsprogs project, and a port is available for BSD operating systems.