May 15 2014

HDD check on linux

1. Check HDD for bad block
sudo badblocks -v /dev/sda1 > bad-blocks
2. Pass the file to fsck
sudo fsck -t ext4 -l bad-blocks /dev/sda1

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.