Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


badblocks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
badblocks [2015/09/07 05:44] – [badblocks] adminbadblocks [2021/10/09 15:14] (current) – external edit 127.0.0.1
Line 1: Line 1:
 {{tag>[linux mdadm raid raid1 failed badblocks]}} {{tag>[linux mdadm raid raid1 failed badblocks]}}
-~~TOC~~ 
 =====Test hard drive for defects, find bad blocks===== =====Test hard drive for defects, find bad blocks=====
  
Line 17: Line 16:
 Use smartctl -X to abort test. Use smartctl -X to abort test.
 </code> </code>
-  * Show health (after test):<code>smartctl -H /dev/sdb+  * Show health (after test):<code>smartctl -H /dev/sdb 
 +smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-229.11.1.el7.x86_64] (local build) 
 +Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org 
 + 
 +=== START OF READ SMART DATA SECTION === 
 +SMART overall-health self-assessment test result: PASSED 
 + 
 + 
 + 
 + 
 +#  smartctl -l selftest /dev/sdb 
 +smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-229.11.1.el7.x86_64] (local build) 
 +Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org 
 + 
 +=== START OF READ SMART DATA SECTION === 
 +SMART Self-test log structure revision number 1 
 +Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error 
 +# 1  Extended offline    Completed without error       00%     28460         - 
 +# 2  Short offline       Completed without error       00%     25709         - 
 +# 3  Short offline       Completed without error       00%     25541         - 
 +# 4  Short offline       Completed without error       00%     25218         - 
 +# 5  Short offline       Completed without error       00%     25113         - 
 +# 6  Short offline       Completed without error       00%     24960         - 
 +# 7  Short offline       Completed without error       00%     24813         - 
 +# 8  Short offline       Completed without error       00%     24656         - 
 +# 9  Short offline       Completed without error       00%     24488         - 
 +#10  Short offline       Completed without error       00%     24320         - 
 +#11  Short offline       Completed without error       00%     24152         - 
 +#12  Short offline       Completed without error       00%     23984         - 
  
-# smartctl -l selftest /dev/sdb 
 # smartctl -a /dev/sdb</code> # smartctl -a /dev/sdb</code>
 ====badblocks==== ====badblocks====
badblocks.1441604667.txt.gz · Last modified: 2015/09/07 05:44 by admin