[kwlug-disc] Checking a USB disk for errors

Khalid Baheyeldin kb at 2bits.com
Mon May 19 22:12:11 EDT 2014


Don't think heat is a factor.
I bought the two drives weeks from each other. Both are in the LaCIE
Boulton design case. One is perfect and does not report any errors (Seagate
inside), the other does report the 3 bad blocks (Samsung).

Here is what happened when I created an NTFS file system on it. It
initializes the disk to zeros, and reports no errors. So it must have
remapped them. Though, dmesg does not report any errors during the time
mkfs is running, so that is that ...

# time mkfs.ntfs /dev/sdc1
Cluster size has been automatically set to 4096 bytes.
Initializing device with zeroes: 100% - Done.
Creating NTFS volume structures.
mkntfs completed successfully. Have a nice day.

real    523m45.119s
user    1m10.429s
sys     34m40.876s


smartctl reports the following (thought it does not work over USB, but it
seems it does).

Does not instill confidence at all ...

ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED
WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   100   100   051    Pre-fail
Always       -       11
  3 Spin_Up_Time            0x0007   077   077   011    Pre-fail
Always       -       7870
  4 Start_Stop_Count        0x0032   100   100   000    Old_age
Always       -       39
  5 Reallocated_Sector_Ct   0x0033   099   099   010    Pre-fail
Always       -       56
  7 Seek_Error_Rate         0x000f   253   253   051    Pre-fail
Always       -       0
  8 Seek_Time_Performance   0x0025   100   100   015    Pre-fail
Offline      -       10599
  9 Power_On_Hours          0x0032   097   097   000    Old_age
Always       -       13375
 10 Spin_Retry_Count        0x0033   100   100   051    Pre-fail
Always       -       0
 11 Calibration_Retry_Count 0x0012   100   100   000    Old_age
Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age
Always       -       30
 13 Read_Soft_Error_Rate    0x000e   100   100   000    Old_age
Always       -       9
183 Runtime_Bad_Block       0x0032   100   100   000    Old_age
Always       -       0
184 End-to-End_Error        0x0033   100   100   099    Pre-fail
Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age
Always       -       28
188 Command_Timeout         0x0032   100   100   000    Old_age
Always       -       0
190 Airflow_Temperature_Cel 0x0022   058   052   000    Old_age
Always       -       42 (Min/Max 39/42)
194 Temperature_Celsius     0x0022   059   051   000    Old_age
Always       -       41 (Min/Max 36/47)
195 Hardware_ECC_Recovered  0x001a   100   100   000    Old_age
Always       -       777480394
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age
Always       -       18
197 Current_Pending_Sector  0x0012   100   100   000    Old_age
Always       -       0
198 Offline_Uncorrectable   0x0030   100   100   000    Old_age
Offline      -       1
199 UDMA_CRC_Error_Count    0x003e   100   100   000    Old_age
Always       -       0
200 Multi_Zone_Error_Rate   0x000a   100   100   000    Old_age
Always       -       0
201 Soft_Read_Error_Rate    0x000a   100   100   000    Old_age
Always       -       0



On Mon, May 19, 2014 at 3:28 PM, William Park <opengeometry at yahoo.ca> wrote:

> mkfs.ext4 can map out bad sectors using '-c' option.  According to
> manpage, mkfs.ntfs scans for bad sectors default, unless you specify
> "quick format".
>
> Heat may be causing the problem.  Remove the USB casing, or get
> something with ventilation.  I recommend Mediasonic 4-bay case which
> holds the disks in place, unlike those docking devices where disks can
> wiggle and disconnect.
>
> In any case, hold on to your Samsung harddisks.  I really miss Samsung
> harddisks.  They have 1 in 10^15 error rate, excellent for Raid.
> --
> William
>
> On Mon, May 19, 2014 at 11:38:51AM -0400, Khalid Baheyeldin wrote:
> > 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
> >
> ...
> > 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
>
> > _______________________________________________
> > kwlug-disc mailing list
> > kwlug-disc at kwlug.org
> > http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org
>
>
>
> _______________________________________________
> kwlug-disc mailing list
> kwlug-disc at kwlug.org
> http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org
>



-- 
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/a1624eb4/attachment.htm>


More information about the kwlug-disc mailing list