October 10th, 2009, 3:50
October 10th, 2009, 4:07
October 10th, 2009, 9:47
N.C. wrote:hi,
if your data is NOT important, use badblocks in this way: badblocks -vvw /dev/[device] (not partiton!)
If your data IS important, you can use only the readonly scan test like this: badblocks -vv /dev/[device] (not partiton!)
If the drive have one actually not readable sector, the second step will find it.
If you drive have no data, the first test can re-allocate the all defective sectors, wich can hide the drive into the Grown defect list....
Janos
October 11th, 2009, 18:07
October 12th, 2009, 3:01
N.C. wrote:can you send a screenshot from windows, and post the report of this from linux:
smartctl -a /dev/[DEVICE]
Thanks,
Janos
October 14th, 2009, 7:34
October 14th, 2009, 8:13
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
October 14th, 2009, 14:17
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
October 15th, 2009, 0:14
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
October 15th, 2009, 2:51
October 15th, 2009, 2:59
N.C. wrote:more details:
PTD uses LBA, wich is in 512 byte blocks.
badblocks counts in Kbytes, (1024) blocks, this is why the half is the result. (No CHS)
And because the linux kernel handles the hdd, not the badblocks, there is one more point:
The default block size in kernel's block layer is 4KB (= 8 LBA sectors), and badblocks can't override this option.
But maybe you can more fine tune the result, if you set the blockdev layer's readahead for the device:
blockdev --setra 0 /dev/[device]
Janos
N.C. wrote:more details:
ps: USB driver is slow, but never have issues for me.![]()
Times changing...
Janos
October 15th, 2009, 3:40
bigal.nz wrote:Thats helpful.Thanks.
I still cant help feeling that badblocks is better tool than PTD. Look at how many blocks badblocks reported as bad, versus PTD (73 vs 1).
bigal.nz wrote:
What bridge are you using?
Cheers
-Al
November 2nd, 2009, 3:55
November 2nd, 2009, 5:39
November 2nd, 2009, 5:41
N.C. wrote:Because PTD uses the Windows's hw driver for test the surface, but badblocks uses the kernel's block layer for access the media.
The block layer is designed for performance use.
It have some readahead settings, cache, and some more.
You have to modify the parameters to get the similar result.
If you modify all, you should have got exactly the 8x result, because the block layer's resolution is 4KB (8 LBA).
If you want to go more deeper, you need to modify the badblocks itself.
In some word:
Badblocks are great, but reports multiple results, wich is not really important, because one HDD is error free, or crap and need to RMA it.![]()
Janos
November 2nd, 2009, 7:04
bigal.nz wrote:N.C. wrote:Because PTD uses the Windows's hw driver for test the surface, but badblocks uses the kernel's block layer for access the media.
The block layer is designed for performance use.
It have some readahead settings, cache, and some more.
You have to modify the parameters to get the similar result.
If you modify all, you should have got exactly the 8x result, because the block layer's resolution is 4KB (8 LBA).
If you want to go more deeper, you need to modify the badblocks itself.
In some word:
Badblocks are great, but reports multiple results, wich is not really important, because one HDD is error free, or crap and need to RMA it.![]()
Janos
Ok I get the jist of it.
Sounds like your rule of thumb is one bad block is one too many?
Cheers
-Al
Powered by phpBB © phpBB Group.