E2fsprogs/badblocks

badblocks is a small program for stress testing block devices. Similar to memtest86+, badblocks reads and writes small patterns of bytes a block devices.

Emerge
badblocks comes as part of the package and should be available as part of the default system profile.

Test a drive
To test a drive with visual progress use the  and   options followed by the path to the block device. Take caution! All data on the device will be completely overwritten and destroyed; be sure to create backups as needed to preserve data that should be saved!

Replace  in the command above with the block device that is to be tested. badblocks should run through a series of four tests and return output similar to the following: