1 |
2016-09-01 11:55 GMT+03:00 Frank Steinmetzger <Warp_7@×××.de>: |
2 |
> On Thu, Sep 01, 2016 at 11:44:19AM +0300, gevisz wrote: |
3 |
> |
4 |
>> > Some people do a full systems check (i.e. badblocks) before entrusting a |
5 |
>> > drive with anything important. |
6 |
>> |
7 |
>> It is a good advice! I have already thought of this but I am sorry to |
8 |
>> acknowledge that, since the "old good times" of MS DOS 6.22, I never did |
9 |
>> this in Linux. :( |
10 |
>> […] |
11 |
>> So, can you, please, advice me about the program or utility that can do |
12 |
>> badblocks check for me? |
13 |
> |
14 |
> Badblocks is part of e2fsprogs. But since you’re using USB2, this will |
15 |
> really take a while. At best I get 39 MB/s out of it. Another way is a |
16 |
> S.M.A.R.T. test, methinks `smartctl -t full` is the command for that. But I |
17 |
> don’t know what exactly is being tested there. But it runs fully internal of |
18 |
> the disk, so no USB2-bottleneck. Others may chime in if I tell fairy tales. |
19 |
|
20 |
So far, the hard drive passed two (small) smart tests started by commands: |
21 |
# smartctl -c -t short -d sat /dev/sdc |
22 |
and |
23 |
# smartctl -t conveyance -d sat /dev/sdc |
24 |
as is indicated by |
25 |
# smartctl -l selftest -d sat /dev/sdc |
26 |
smartctl 6.4 2015-06-04 r4109 [x86_64-linux-4.4.6-gentoo] (local build) |
27 |
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org |
28 |
|
29 |
=== START OF READ SMART DATA SECTION === |
30 |
SMART Self-test log structure revision number 1 |
31 |
Num Test_Description Status Remaining |
32 |
LifeTime(hours) LBA_of_first_error |
33 |
# 1 Conveyance offline Completed without error 00% 0 - |
34 |
# 2 Short offline Completed without error 00% 0 - |
35 |
|
36 |
However, after running |
37 |
# smartctl -t long -d sat /dev/sdc |
38 |
I have no indication that it has been passed: |
39 |
# smartctl -t long -d sat /dev/sdc |
40 |
smartctl 6.4 2015-06-04 r4109 [x86_64-linux-4.4.6-gentoo] (local build) |
41 |
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org |
42 |
|
43 |
=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION === |
44 |
Sending command: "Execute SMART Extended self-test routine immediately |
45 |
in off-line mode". |
46 |
Drive command "Execute SMART Extended self-test routine immediately in |
47 |
off-line mode" successful. |
48 |
Testing has begun. |
49 |
Please wait 571 minutes for test to complete. |
50 |
Test will complete after Fri Sep 2 04:02:18 2016 |
51 |
|
52 |
Use smartctl -X to abort test. |
53 |
|
54 |
Fri Sep 2 6:10 |
55 |
# smartctl -l selftest -d sat /dev/sdc |
56 |
smartctl 6.4 2015-06-04 r4109 [x86_64-linux-4.4.6-gentoo] (local build) |
57 |
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org |
58 |
|
59 |
Read Device Identity failed: scsi error device will be ready soon |
60 |
|
61 |
A mandatory SMART command failed: exiting. To continue, add one or |
62 |
more '-T permissive' options. |
63 |
|
64 |
# smartctl -a -d sat /dev/sdc |
65 |
smartctl 6.4 2015-06-04 r4109 [x86_64-linux-4.4.6-gentoo] (local build) |
66 |
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org |
67 |
|
68 |
=== START OF INFORMATION SECTION === |
69 |
Device Model: WDC WD50EZRZ-00GZ5B1 |
70 |
Serial Number: <snipped> |
71 |
LU WWN Device Id: <snipped> |
72 |
Firmware Version: 80.00A80 |
73 |
User Capacity: 5,000,981,078,016 bytes [5.00 TB] |
74 |
Sector Sizes: 512 bytes logical, 4096 bytes physical |
75 |
Rotation Rate: 5700 rpm |
76 |
Device is: Not in smartctl database [for details use: -P showall] |
77 |
ATA Version is: ACS-2, ACS-3 T13/2161-D revision 3b |
78 |
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s) |
79 |
Local Time is: Fri Sep 2 06:12:50 2016 EEST |
80 |
SMART support is: Available - device has SMART capability. |
81 |
SMART support is: Enabled |
82 |
|
83 |
=== START OF READ SMART DATA SECTION === |
84 |
SMART overall-health self-assessment test result: PASSED |
85 |
|
86 |
General SMART Values: |
87 |
Offline data collection status: (0x80) Offline data collection activity |
88 |
was never started. |
89 |
Auto Offline Data Collection: Enabled. |
90 |
Self-test execution status: ( 0) The previous self-test |
91 |
routine completed |
92 |
without error or no self-test has ever |
93 |
been run. |
94 |
Total time to complete Offline |
95 |
data collection: (57180) seconds. |
96 |
Offline data collection |
97 |
capabilities: (0x7b) SMART execute Offline immediate. |
98 |
Auto Offline data collection on/off support. |
99 |
Suspend Offline collection upon new |
100 |
command. |
101 |
Offline surface scan supported. |
102 |
Self-test supported. |
103 |
Conveyance Self-test supported. |
104 |
Selective Self-test supported. |
105 |
SMART capabilities: (0x0003) Saves SMART data before entering |
106 |
power-saving mode. |
107 |
Supports SMART auto save timer. |
108 |
Error logging capability: (0x01) Error logging supported. |
109 |
General Purpose Logging supported. |
110 |
Short self-test routine |
111 |
recommended polling time: ( 2) minutes. |
112 |
Extended self-test routine |
113 |
recommended polling time: ( 571) minutes. |
114 |
Conveyance self-test routine |
115 |
recommended polling time: ( 5) minutes. |
116 |
SCT capabilities: (0x3035) SCT Status supported. |
117 |
SCT Feature Control supported. |
118 |
SCT Data Table supported. |
119 |
|
120 |
SMART Attributes Data Structure revision number: 16 |
121 |
Vendor Specific SMART Attributes with Thresholds: |
122 |
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE |
123 |
UPDATED WHEN_FAILED RAW_VALUE |
124 |
1 Raw_Read_Error_Rate 0x002f 100 253 051 Pre-fail |
125 |
Always - 0 |
126 |
3 Spin_Up_Time 0x0027 198 198 021 Pre-fail |
127 |
Always - 9083 |
128 |
4 Start_Stop_Count 0x0032 100 100 000 Old_age |
129 |
Always - 7 |
130 |
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail |
131 |
Always - 0 |
132 |
7 Seek_Error_Rate 0x002e 100 253 000 Old_age |
133 |
Always - 0 |
134 |
9 Power_On_Hours 0x0032 100 100 000 Old_age |
135 |
Always - 1 |
136 |
10 Spin_Retry_Count 0x0032 100 253 000 Old_age |
137 |
Always - 0 |
138 |
11 Calibration_Retry_Count 0x0032 100 253 000 Old_age |
139 |
Always - 0 |
140 |
12 Power_Cycle_Count 0x0032 100 100 000 Old_age |
141 |
Always - 7 |
142 |
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age |
143 |
Always - 1 |
144 |
193 Load_Cycle_Count 0x0032 200 200 000 Old_age |
145 |
Always - 10 |
146 |
194 Temperature_Celsius 0x0022 124 105 000 Old_age |
147 |
Always - 28 |
148 |
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age |
149 |
Always - 0 |
150 |
197 Current_Pending_Sector 0x0032 200 200 000 Old_age |
151 |
Always - 0 |
152 |
198 Offline_Uncorrectable 0x0030 100 253 000 Old_age |
153 |
Offline - 0 |
154 |
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age |
155 |
Always - 0 |
156 |
200 Multi_Zone_Error_Rate 0x0008 100 253 000 Old_age |
157 |
Offline - 0 |
158 |
|
159 |
SMART Error Log Version: 1 |
160 |
No Errors Logged |
161 |
|
162 |
SMART Self-test log structure revision number 1 |
163 |
Num Test_Description Status Remaining |
164 |
LifeTime(hours) LBA_of_first_error |
165 |
# 1 Conveyance offline Completed without error 00% 0 - |
166 |
# 2 Short offline Completed without error 00% 0 - |
167 |
|
168 |
SMART Selective self-test log data structure revision number 1 |
169 |
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS |
170 |
1 0 0 Not_testing |
171 |
2 0 0 Not_testing |
172 |
3 0 0 Not_testing |
173 |
4 0 0 Not_testing |
174 |
5 0 0 Not_testing |
175 |
Selective self-test flags (0x0): |
176 |
After scanning selected spans, do NOT read-scan remainder of disk. |
177 |
If Selective self-test is pending on power-up, resume after 0 minute delay. |