check badblocks

Jump to: navigation, search

To checking for bad blocks in read-only mode

/sbin/badblocks -v /dev/hda

Replace /dev/hda with device name of your hard disk, for SATA, it will be /dev/sda (for primary hard disk), /dev/sdb (for secondary hard disk). Use "df -h" command to find device name of your hard disk. Also "fdisk -l" will help to find information on disk drives.

[[email protected] ~]# /sbin/badblocks -v /dev/sda
Checking blocks 0 to 245117376
Checking for bad blocks (read-only test): done
Pass completed, 0 bad blocks found.
[[email protected] ~]#