Scan for bad sectors in Linux

By | November 7, 2008

Bad sectors are the bruises of your harddisk. To check if a harddisk is in good shape, we can use its SMART capabilities:

smartctl -t long /dev/hda

To check for bad sectors, use

badblocks -sv /dev/hda

4 thoughts on “Scan for bad sectors in Linux

  1. T4L Post author

    Mihai, try fsck in combination with one of the following utilities: badblocks, mkfs or one of the filesystem utilities that come with the filesystem you;re currently using (xfsprogs, jfsutils, e2fsprogs, reiser4progs, etc)

    Reply
  2. Jordan

    Thanks for this, gets to the meat of the commands. Just what I needed from a quick Google 😉 Cheers!

    Reply
  3. jon-luc

    hallo my name is jon-luc and my drive has 312 bad sectors can i fix this ?

    Reply

Leave a Reply

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