<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, May 15, 2014 at 11:55 PM, William Park <span dir="ltr"><<a href="mailto:opengeometry@yahoo.ca" target="_blank">opengeometry@yahoo.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>On Thu, May 15, 2014 at 10:54:31PM -0400, Khalid Baheyeldin wrote:<br>
> On Thu, May 15, 2014 at 9:55 PM, Khalid Baheyeldin <<a href="mailto:kb@2bits.com" target="_blank">kb@2bits.com</a>> wrote:<br>
> # time dd if=/dev/sdb bs=16000k of=/dev/null<br>
> 61047+1 records in<br>
> 61047+1 records out<br>
> 1000204886016 bytes (1.0 TB) copied, 28626.2 s, 34.9 MB/s<br>
<br>
</div>34.9MB/s is pretty fast for USB2, but slow for USB3. What I usually do
in this case is<br>
badblocks -b 4096 -c 4096 -sv ...<br>
badblocks -b 4096 -c 4096 -swv ...<br>
where -w is for destructive read/write test.<br></blockquote><div><br></div><div>Thanks a lot. I will try that.<br><br></div><div>The other disk errored out early. It is identical in capacity, same OEM vendor (LaCIE) and packaging with the fancy LED light, ..etc., but with a Samsung disk inside:<br>
<br># time dd if=/dev/sdb bs=16000k of=/dev/null<br>dd: reading `/dev/sdb': Input/output error<br>5533+1 records in<br>5533+1 records out<br>90667671552 bytes (91 GB) copied, 2661.36 s, 34.1 MB/s<br><br>real 44m21.367s<br>
user 0m0.048s<br>sys 1m44.067s <br></div><br></div><div class="gmail_quote">So I did some math, and found that block 22135663 is bad.<br><br>So starting the read tests a bit before that:<br><br># badblocks -b 4096 -c 4096 -sv /dev/sdb 23000000 22135600<br>
Checking blocks 22135600 to 23000000<br>
Checking for bad blocks (read-only test): 22135662done, 0:02 elapsed. (0/0/0 errors)<br>22135663done, 0:04 elapsed. (1/0/0 errors)<br>done <br>Pass completed, <b>2 bad blocks found</b>. (2/0/0 errors)<br>
<br></div><div class="gmail_quote">But now after repeating the destructive test (-w) a few times, the error disappeared? <br><br># badblocks -b 4096 -c 4096 -svw /dev/sdb 23000000 22135600<br>Checking for bad blocks in read-write mode<br>
From block 22135600 to 23000000<br>Testing with pattern 0xaa: done <br>Reading and comparing: done <br>Testing with pattern 0x55: done <br>
Reading and comparing: done <br>Testing with pattern 0xff: done <br>Reading and comparing: done <br>
Testing with pattern 0x00: done <br>Reading and comparing: done <br>Pass completed, <b>0 bad blocks found</b>. (0/0/0 errors)<br>
<br>Did the drive reallocate the sector and hence it is no longer reporting that one as defective?<br><br>Is it safe to use the drive, or it would be suspect? There is no click of death or grinding sounds.<br></div>-- <br>
Khalid M. Baheyeldin<br>
<a href="http://2bits.com" target="_blank">2bits.com</a>, Inc.<br>Fast Reliable Drupal<br>Drupal optimization, development, customization and consulting.<br>Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra<br>
Simplicity is the ultimate sophistication. -- Leonardo da Vinci<br>For every complex problem, there is an answer that is clear, simple, and wrong." -- H.L. Mencken<br>
</div></div>