[kwlug-disc] Checking a USB disk for errors

Khalid Baheyeldin kb at 2bits.com
Mon May 19 11:38:51 EDT 2014


Well, I ran badblocks for several days.

Output is below, a bit mangled since I hit enter several times to keeps
some info on the screen.

For a 1TB disk that will be used for non-critical stuff (PVR, ...etc.), is
this still useable?

It will have NTFS, which I am not sure can re-map bad blocks? the mkfs.ntfs
command on Linux (part of ntfs-3g package) initializes the drive with zeros
(and takes forever).

# time badblocks -b 4096 -c 4096 -svw /dev/sdc
Checking for bad blocks in read-write mode
>From block 0 to 244190645
Testing with pattern 0xaa: done
Reading and comparing: 22135426done, 8:52:12 elapsed. (0/0/0 errors)
done
Testing with pattern 0x55:  97.42% done, 23:55:52 elapsed. (1/0/0 errors)

 97.43% done, 23:55:55 elapsed. (1/0/0 errors)

done
Reading and comparing: 22135188done, 24:51:03 elapsed. (1/0/0 errors)
 71.64% done, 29:45:12 elapsed. (2/0/0 errors)
 71.65% done, 29:45:13 elapsed. (2/0/0 errors)
done
Testing with pattern 0xff:  67.15% done, 37:59:18 elapsed. (2/0/0 errors)


done
Reading and comparing:  97.40% done, 49:19:55 elapsed. (2/0/0 errors)

done
Testing with pattern 0x00:  45.41% done, 53:15:40 elapsed. (2/0/0 errors)

 54.93% done, 54:02:14 elapsed. (2/0/0 errors)

done
Reading and comparing: 22135663done, 58:25:20 elapsed. (2/0/0 errors)
 45.41% done, 61:16:04 elapsed. (3/0/0 errors)

done
Pass completed, 3 bad blocks found. (3/0/0 errors)

real    3932m43.250s
user    23m9.291s
sys     16m37.766s

The bad blocks (4096 ones) are:

22135426
22135188
22135663

In dmesg, the bad sectors are:

[33236.834113] end_request: critical target error, dev sdc, sector 177083312
[33238.460149] end_request: critical target error, dev sdc, sector 177083408
[90852.162163] end_request: critical target error, dev sdc, sector 177081392
[90853.316978] end_request: critical target error, dev sdc, sector 177083312
[90854.968393] end_request: critical target error, dev sdc, sector 177081504
[90855.973362] end_request: critical target error, dev sdc, sector 177083408
[151635.813773] end_request: critical target error, dev sdc, sector
177081392
[151637.564844] end_request: critical target error, dev sdc, sector
177081504
[211887.403595] end_request: critical target error, dev sdc, sector
177085232
[211888.847139] end_request: critical target error, dev sdc, sector
177085304


-- 
Khalid M. Baheyeldin
2bits.com, Inc.
Fast Reliable Drupal
Drupal optimization, development, customization and consulting.
Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra
Simplicity is the ultimate sophistication. --   Leonardo da Vinci
For every complex problem, there is an answer that is clear, simple, and
wrong." -- H.L. Mencken
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20140519/dde8462e/attachment.htm>


More information about the kwlug-disc mailing list