What is the program to check bad sectors on SATA HDD

Asked by Jeffrey

I tried re-installing Ubuntu 7.04 on to the second HDD which is a SATA 80 GB drive. I had earlier installed onto this drive but now when I am 30% through I get error saying that either the install CD is bad or Hard disk has errors on it. What can I do to solve this problem. I like Ubuntu and want to use it. I tried installing PCLinuxOS 2007 on to the same drive and I cannot since it hangs when it comes to formatting the drive partition. I tried doing sudo fsck -p /dev/sda3 from terminal after booting the live CD and got this output:
/dev/sda3: clean, 11813/645120 files, 211218/1289216 blocks
Also before installing I got a dialog that said File system is reporting the free space as 2257024 clusters not 2256862 clusters. I ignored and continued the installation only to be stopped by the above mentioned error.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dmitry Mityugov (dmitry-mityugov) said :
#1

Try to use badblocks, http://linux.die.net/man/8/badblocks

But if you get bad blocks on a HDD, their number will only grow over time. It is better to buy a new HDD

Can you help with this problem?

Provide an answer of your own, or ask Jeffrey for more information if necessary.

To post a message you must log in.