Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to repair/isolate hard drive bad blocks [closed]

Tags:

disk

During the last month Ubuntu starts having some problems: it shuts down suddenly without any apparent reason.. I figured out that the problem is in the hard disk, if I run this command:

$ sudo badblocks -sv -b 512 /dev/sda

I get 24 bad blocks all in the Linux partition (I have Windows in another one and it does not have the same problem). The question is if there is a way (different from changing the disk) for avoiding this shutting down. Maybe isolating the bad blocks?

like image 305
Red Avatar asked Jan 26 '14 16:01

Red


1 Answers

Software/file system bad blocks marking is mostly a thing of the past; recent drives automatically relocate bad blocks in a transparent way.

If you start getting bad blocks "visible" to software it probably means that the hard drive is exhausting the reserve of free replacement blocks, so it's probably failing. You should check the SMART status of the disk to see if this is actually confirmed by the other SMART attributes, do a backup and get ready to replace your drive.

like image 73
Matteo Italia Avatar answered Oct 16 '22 04:10

Matteo Italia