Aha! I knew there has to be something.<br><br>I am trying it now. It is very slow on a 1TB drive and USB.<br><br>Will report back what it did.<br><br><div class="gmail_quote">On Wed, Oct 20, 2010 at 1:12 PM, Andrew Sullivan Cant <span dir="ltr"><<a href="mailto:acant@alumni.uwaterloo.ca">acant@alumni.uwaterloo.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">As a FLOSS alternative and if you are using ext2/ext3/ext4 then e2fsck will also check for bad blocks and do corrections.<br>
<br>
e2fsck -c -y /dev/sdb<br>
-c will try to detect and fix bad block by adding then to the bad block inode<br>
and -y will answer yes to doing all of the corrections. Which is probably what you want most of the time.<br>
<br>
<br>
I have not tried SpinRite so I don't know what additional magic it might do.<br><font color="#888888">
<br>
<br>
Andrew</font><div><div></div><div class="h5"><br>
<br>
On 20/10/10 10:33 AM, Eric Gerlach wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Wed, Oct 20, 2010 at 10:08 AM, Khalid Baheyeldin<<a href="mailto:kb@2bits.com" target="_blank">kb@2bits.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
For the weekly backup, I am now getting this error:<br>
<br>
[2388063.441067] sd 13:0:0:0: [sdb] Result: hostbyte=DID_OK<br>
driverbyte=DRIVER_SENSE,SUGGEST_OK<br>
[2388063.441073] sd 13:0:0:0: [sdb] Sense Key : Medium Error [current]<br>
[2388063.441077] sd 13:0:0:0: [sdb] Add. Sense: Unrecovered read error<br>
[2388063.441080] end_request: I/O error, dev sdb, sector 177045897<br>
[2388064.495756] sd 13:0:0:0: [sdb] Result: hostbyte=DID_OK<br>
driverbyte=DRIVER_SENSE,SUGGEST_OK<br>
[2388064.495762] sd 13:0:0:0: [sdb] Sense Key : Medium Error [current]<br>
[2388064.495765] sd 13:0:0:0: [sdb] Add. Sense: Unrecovered read error<br>
[2388064.495768] end_request: I/O error, dev sdb, sector 177045897<br>
<br>
If I replace the disk with an identical brand (but has a different make<br>
of disk inside), I get other errors.<br>
<br>
These two disks have been stable and trouble free for about 2 years,<br>
with no issues.<br>
<br>
My questions are:<br>
<br>
1. Short of dd if=/dev/sdb, is there a way to detect blocks?<br>
</blockquote>
<br>
SpinRite. Proprietary, but the best I know of.<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
2. Do we have a way to add the bad blocks to a list that the operating<br>
system<br>
should ignore, like we had in the old days?<br>
</blockquote>
<br>
No, now drives do this internally. Drives keep a percentage of their<br>
sectors as spares, and swap them in when needed. SpinRite helps the<br>
drive find those bad blocks, recover the data, and then relocate the<br>
blocks.<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
3. Could this be a quirk of some sort? How do I know for sure if it is<br>
really a media problem or some bug/quirk?<br>
</blockquote>
<br>
No idea. I don't even know what those errors mean, so I can't even<br>
confirm for sure that it's bad blocks.<br>
<br>
Cheers,<br>
<br>
Eric<br>
<br>
_______________________________________________<br>
<a href="http://kwlug-disc_kwlug.org" target="_blank">kwlug-disc_kwlug.org</a> mailing list<br>
<a href="http://kwlug-disc_kwlug.org" target="_blank">kwlug-disc_kwlug.org</a>@<a href="http://kwlug.org" target="_blank">kwlug.org</a><br>
<a href="http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org" target="_blank">http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org</a><br>
</blockquote>
<br>
<br>
_______________________________________________<br>
<a href="http://kwlug-disc_kwlug.org" target="_blank">kwlug-disc_kwlug.org</a> mailing list<br>
<a href="http://kwlug-disc_kwlug.org" target="_blank">kwlug-disc_kwlug.org</a>@<a href="http://kwlug.org" target="_blank">kwlug.org</a><br>
<a href="http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org" target="_blank">http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Khalid M. Baheyeldin<br><a href="http://2bits.com">2bits.com</a>, Inc.<br><a href="http://2bits.com">http://2bits.com</a><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>