I know how to to check / repair my hard drive but I don't know a way how to see the number of bad sectors on my hard drive.
P.S. It looks like my hard drive will die soon :-(
|
I know how to to check / repair my hard drive but I don't know a way how to see the number of bad sectors on my hard drive. P.S. It looks like my hard drive will die soon :-( |
|||
|
|
There are two ways to detect bad sectors in Linux: you can use the disk utility (gui), or you can use the badblocks command to check your hard disk for bad sectors:
That should answer the question but for anyone else interested in how to mark them it can be done with 2 simple commands... You add the bad blocks to a file...
and then tell
|
|||
|
|
|
Use fsck.ext3 (e2fsck) for instance and use the -cc option
|
|||||
|