N.C. wrote:
bigal.nz wrote:
Well I found another disk with a bad sector and tested the surface again in Windows. The bad sector showed up fine.
I went to test with badblocks, this time something different happened - badblocks hung. I did this 3 times in badblocks and hung each time at the same place! It was of course only the read test.
Is there a way around this?
TIA
-Al
badblocks uses the kernel's internal driver for the interface.
These drivers sometimes have bugs too, looks like this is the one of these.
So, the problem is not inside the badblocks, but in the IDE/SATA driver wich you are using.
Wich chipsed or interface card what you are using?
I am always tests the repaired HDD's with badblock (+own script) but never have any issue with this.
(I use SIL680/Intel/promise chipset all the time.)
But i need to note, i always diagnose the HDD with MHDD before runs the badblocks.
And maybe this is why i always prevent the failure.

Janos
Hi Janos,
You were right, it was a driver issue and connecting to a controller direct fixed the hanging problem.
badblocks did detect 73 badblocks, yet Partition Table Doctor in Windows only detected 1.
I think that the two peices of software are addressing the disk in different ways when they report badblocks/sectors. I say this because badblocks detected a sequential list of badblocks between:
2243832-22438399
Yet Partition Table Doctor reported one bad sector @ 44876663.
Would it be that one is using CHS and one is using LBA?
The disk is a Seagate ST960812A which has a CHS of 16383/16/63.
Still a bit confused trying to reconcile the results, but getting closer. I would be keen to hear your thoughts Janos.
Cheers
-Al