Test: read-write: patterns : 0xaa (10101010), 0x55 (01010101), 0xff (11111111) and 0x00 (00000000)
badblocks -wsv /dev/<device>
Test: read-write: random pattern
badblocks -wsv -t random /dev/<device>
Test: read-write [non-destructive]
badblocks -nsv /dev/<device>
fsck -vcck /dev/<device-part>
Create filesystem with badblocks
badblocks -wsv -o badblocks.txt /dev/<device>
mkfs.<fs> -l badblocks.txt /dev/<device>