Web Design

Categorized | Hardware

Scan for bad sectors in Linux

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

Author Profile

T4L ;

Other posts by T4L

Author's web site



Are you satisfied with this blog?
Why not subscribe our RSS Feed? you will always get the latest post.


4 Comments


  1. and who i can repair bad sectors?

    1
  2. T4L

    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)

    2

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

    3
  4. jon-luc

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

    4

Leave A Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>