How to find hard disk Bad sector in Linux OS
Find the hard disk details by issuing below command
In this screen show two partition of hard disk
Check the bad sector area in hard disk by issuing below command
sudo badblocks -v /dev/sda1
In “sda1” there is no bad blacks listed.
Now check for “sda2”
sudo badblocks -v /dev/sda2
No bad blacks listed in “sda2”
Now we can ensure that there is no bad blocks in this drive.