Check Hard drive for bad sectors or bad blocks in linux
Step:1 Use fdisk command to identify your hard drive info # sudo fdisk -l Step:2 Scan your hard drive for Bad Sectors or Bad Blocks # sudo badblocks -v /dev/sdb > /tmp/bad-blocks.txt Just replace “/dev/sdb” with your own hard disk / partition. When we execute above command a text file “bad-blocks” will be created under