Gargi
28.12.2007, 14:00
Hardwarediagnose unter Linux ist eine feine Sache. Wer seine Festplatten einmal auf den Zahn fühlen will, oder checken möchte, ob er beim Ersteigern einer Platte über's Ohr gehauen wurde, der kann sich einmal mit den smartmontools auseinandersetzen.
Installiert sind die smartmontools schnell über einen Paketmaneger der jeweiligen Distribution.
Wer nun einmal die gespeicherten Meldungen seiner Platte auslesen möchte, der gibt einfach mal als root folgenden Befehl ein:
smartctl -a /dev/hda
Das spuckt dann folgende Infos aus:
smartctl version 5.37 [x86_64-suse-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.7 and 7200.7 Plus family
Device Model: ST3200822AS
Serial Number: 4LJ06MKS
Firmware Version: 3.01
User Capacity: 200.049.647.616 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 6
ATA Standard is: ATA/ATAPI-6 T13 1410D revision 2
Local Time is: Mon Jan 8 22:48:14 2007 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x82) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 430) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
No General Purpose Logging support.
Short self-test routine
recommended polling time: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 111) minutes.
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 054 050 006 Pre-fail Always - 216395472
3 Spin_Up_Time 0x0003 096 096 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 099 099 020 Old_age Always - 1702
5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 1
7 Seek_Error_Rate 0x000f 085 060 030 Pre-fail Always - 376382338
9 Power_On_Hours 0x0032 093 093 000 Old_age Always - 6635
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 098 098 020 Old_age Always - 2056
194 Temperature_Celsius 0x0022 041 063 000 Old_age Always - 41
195 Hardware_ECC_Recovered 0x001a 054 049 000 Old_age Always - 216395472
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age Offline - 0
202 TA_Increase_Count 0x0032 100 253 000 Old_age Always - 0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
Der Satz am Ende gibt Anlass zur Freude:
Als nächstes sehen wir uns einmal an, wie es aussieht, wenn Fehler geloggt wurden:
SMART Error Log Version: 1
Warning: ATA error count 62 inconsistent with error log pointer 5
ATA Error Count: 62 (device log contains only the most recent five errors)
CR = Command Register [HEX]
FR = Features Register [HEX]
SC = Sector Count Register [HEX]
SN = Sector Number Register [HEX]
CL = Cylinder Low Register [HEX]
CH = Cylinder High Register [HEX]
DH = Device/Head Register [HEX]
DC = Device Command Register [HEX]
ER = Error register [HEX]
ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.
Error 62 occurred at disk power-on lifetime: 6227 hours (259 days + 11 hours)
When the command that caused the error occurred, the device was in an unknown state.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 81 45 89 80 e0 Error: UNC 129 sectors at LBA = 0x00808945 = 8423749
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 ae 45 89 80 e0 08 00:06:56.304 READ DMA
c8 00 b0 43 89 80 e0 08 00:06:55.136 READ DMA
c8 00 b2 41 89 80 e0 08 00:06:54.000 READ DMA
c8 00 b4 3f 89 80 e0 08 00:06:52.880 READ DMA
c8 00 b6 3d 89 80 e0 08 00:06:51.696 READ DMA
Error 61 occurred at disk power-on lifetime: 6227 hours (259 days + 11 hours)
When the command that caused the error occurred, the device was in an unknown state.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 81 43 89 80 e0 Error: UNC 129 sectors at LBA = 0x00808943 = 8423747
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 b0 43 89 80 e0 08 00:06:55.136 READ DMA
c8 00 b2 41 89 80 e0 08 00:06:54.000 READ DMA
c8 00 b4 3f 89 80 e0 08 00:06:52.880 READ DMA
c8 00 b6 3d 89 80 e0 08 00:06:51.696 READ DMA
c8 00 b8 3b 89 80 e0 08 00:06:50.576 READ DMA
Error 60 occurred at disk power-on lifetime: 6227 hours (259 days + 11 hours)
When the command that caused the error occurred, the device was in an unknown state.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 81 41 89 80 e0 Error: UNC 129 sectors at LBA = 0x00808941 = 8423745
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 b2 41 89 80 e0 08 00:06:54.000 READ DMA
c8 00 b4 3f 89 80 e0 08 00:06:52.880 READ DMA
c8 00 b6 3d 89 80 e0 08 00:06:51.696 READ DMA
c8 00 b8 3b 89 80 e0 08 00:06:50.576 READ DMA
c8 00 ba 39 89 80 e0 08 00:06:49.456 READ DMA
Error 59 occurred at disk power-on lifetime: 6227 hours (259 days + 11 hours)
When the command that caused the error occurred, the device was in an unknown state.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 81 3f 89 80 e0 Error: UNC 129 sectors at LBA = 0x0080893f = 8423743
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 b4 3f 89 80 e0 08 00:06:52.880 READ DMA
c8 00 b6 3d 89 80 e0 08 00:06:51.696 READ DMA
c8 00 b8 3b 89 80 e0 08 00:06:50.576 READ DMA
c8 00 ba 39 89 80 e0 08 00:06:49.456 READ DMA
c8 00 bc 37 89 80 e0 08 00:06:48.288 READ DMA
Error 58 occurred at disk power-on lifetime: 6227 hours (259 days + 11 hours)
When the command that caused the error occurred, the device was in an unknown state.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 81 3d 89 80 e0 Error: UNC 129 sectors at LBA = 0x0080893d = 8423741
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 b6 3d 89 80 e0 08 00:06:51.696 READ DMA
c8 00 b8 3b 89 80 e0 08 00:06:50.576 READ DMA
c8 00 ba 39 89 80 e0 08 00:06:49.456 READ DMA
c8 00 bc 37 89 80 e0 08 00:06:48.288 READ DMA
c8 00 be 35 89 80 e0 08 00:06:47.152 READ DMA
An der Stelle ist auf jeden Fall Aufmerksamkeit geboten. Die Platte muss deswegen nicht gleich kaputt sein. Wenn Fehler verzeichnet sind, auf alle Fälle erstmal im Protokoll nachsehen, ob hier Sektoren defekt sind:
196 Reallocated_Event_Count 0x0008 253 253 000 Old_age Offline - 0
197 Current_Pending_Sector 0x0008 253 253 000 Old_age Offline - 0
198 Offline_Uncorrectable 0x0008 253 253 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0008 199 199 000 Old_age Offline - 0
200 Multi_Zone_Error_Rate 0x000a 253 252 000 Old_age Always - 0
Hier steht alles auf 0... Glück gehabt. Jetzt ist auf alle Fälle ein Check der Platte angesagt. Dazu stoßen wir einen Quicktest an, der ca. 1 Minute dauert:
smartctl -t short /dev/hda
Der Output dabei ist erstmal:
smartctl version 5.37 [x86_64-suse-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line mode".
Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 2 minutes for test to complete.
Test will complete after Mon Jan 8 22:57:49 2007
Use smartctl -X to abort test.
Hier müssen wir also zwei Minuten warten. Wollen wir den Test abbrechen, geben wir ein
smartctl -X
ein.
Wer zwischenzeitlich abrufen möchte, wie lange es noch dauert, bis der Test durch ist, der kann sich den Rest des verbleibenden Tests in % mit folgendem Befehl ansehen:
smartctl -c /dev/hda
Da wir neugierig sind, schauen wir uns das Ergebnis des Tests mit folgendem Befehl an:
smartctl -l selftest /dev/hda
Das Ergebnis:
smartctl version 5.37 [x86_64-suse-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== 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 Short offline Completed without error 00% 6388 -
# 2 Short offline Completed without error 00% 1632 -
Auch hier keinen Fehler. Um auf Nummer sicher zu gehen, kann man den Test auch mit einem
smartctl -t long /dev/hda
anstoßen. Das dauert allerdings seine Zeit. Eine Stunde kann man dabei einkalkulieren.
Man kann hier mit ziemlich einfachen Mitteln schonmal eine ganze Menge von der verwendeten Festplatte erfahren.
Nun, was ist nun mit meiner Platte los? Ich beobachte die Platte schon seit einger Zeit. Die Fehleranzahl verändert sich seit vielen Tagen nicht. D.h. die Fehler kamen entweder von einem defekten IDE Kabel, das ich bereits getauscht habe. zudem war die Platte eine zeitlang in einem externen USB Gehäuse unterwegs und wurde oft im Betrieb abgeschalten. Als letztes "entwendete" ich die Plattenelektronik kurzfristig, um eine andere Festplatte wieder auf die Sprünge zu helfen. Alles Dinge, die ihre Spuren hinterlassen können ;)
Wichtig ist, dass Ihr, wenn es Fehler gibt, das Protokoll regelmäßig beobachtet. Nimmt die Zahl der Fehler rapide zu (und das ist dann nach jedem Reboot der Fall), dann könnt Ihr schonmal im Mindfactory-Shop Euch eine neue Platte aussuchen ;)
Viel Spaß beim Testen!
cu
Gargi
Installiert sind die smartmontools schnell über einen Paketmaneger der jeweiligen Distribution.
Wer nun einmal die gespeicherten Meldungen seiner Platte auslesen möchte, der gibt einfach mal als root folgenden Befehl ein:
smartctl -a /dev/hda
Das spuckt dann folgende Infos aus:
smartctl version 5.37 [x86_64-suse-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.7 and 7200.7 Plus family
Device Model: ST3200822AS
Serial Number: 4LJ06MKS
Firmware Version: 3.01
User Capacity: 200.049.647.616 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 6
ATA Standard is: ATA/ATAPI-6 T13 1410D revision 2
Local Time is: Mon Jan 8 22:48:14 2007 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x82) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 430) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
No General Purpose Logging support.
Short self-test routine
recommended polling time: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 111) minutes.
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 054 050 006 Pre-fail Always - 216395472
3 Spin_Up_Time 0x0003 096 096 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 099 099 020 Old_age Always - 1702
5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 1
7 Seek_Error_Rate 0x000f 085 060 030 Pre-fail Always - 376382338
9 Power_On_Hours 0x0032 093 093 000 Old_age Always - 6635
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 098 098 020 Old_age Always - 2056
194 Temperature_Celsius 0x0022 041 063 000 Old_age Always - 41
195 Hardware_ECC_Recovered 0x001a 054 049 000 Old_age Always - 216395472
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age Offline - 0
202 TA_Increase_Count 0x0032 100 253 000 Old_age Always - 0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
Der Satz am Ende gibt Anlass zur Freude:
Als nächstes sehen wir uns einmal an, wie es aussieht, wenn Fehler geloggt wurden:
SMART Error Log Version: 1
Warning: ATA error count 62 inconsistent with error log pointer 5
ATA Error Count: 62 (device log contains only the most recent five errors)
CR = Command Register [HEX]
FR = Features Register [HEX]
SC = Sector Count Register [HEX]
SN = Sector Number Register [HEX]
CL = Cylinder Low Register [HEX]
CH = Cylinder High Register [HEX]
DH = Device/Head Register [HEX]
DC = Device Command Register [HEX]
ER = Error register [HEX]
ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.
Error 62 occurred at disk power-on lifetime: 6227 hours (259 days + 11 hours)
When the command that caused the error occurred, the device was in an unknown state.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 81 45 89 80 e0 Error: UNC 129 sectors at LBA = 0x00808945 = 8423749
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 ae 45 89 80 e0 08 00:06:56.304 READ DMA
c8 00 b0 43 89 80 e0 08 00:06:55.136 READ DMA
c8 00 b2 41 89 80 e0 08 00:06:54.000 READ DMA
c8 00 b4 3f 89 80 e0 08 00:06:52.880 READ DMA
c8 00 b6 3d 89 80 e0 08 00:06:51.696 READ DMA
Error 61 occurred at disk power-on lifetime: 6227 hours (259 days + 11 hours)
When the command that caused the error occurred, the device was in an unknown state.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 81 43 89 80 e0 Error: UNC 129 sectors at LBA = 0x00808943 = 8423747
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 b0 43 89 80 e0 08 00:06:55.136 READ DMA
c8 00 b2 41 89 80 e0 08 00:06:54.000 READ DMA
c8 00 b4 3f 89 80 e0 08 00:06:52.880 READ DMA
c8 00 b6 3d 89 80 e0 08 00:06:51.696 READ DMA
c8 00 b8 3b 89 80 e0 08 00:06:50.576 READ DMA
Error 60 occurred at disk power-on lifetime: 6227 hours (259 days + 11 hours)
When the command that caused the error occurred, the device was in an unknown state.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 81 41 89 80 e0 Error: UNC 129 sectors at LBA = 0x00808941 = 8423745
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 b2 41 89 80 e0 08 00:06:54.000 READ DMA
c8 00 b4 3f 89 80 e0 08 00:06:52.880 READ DMA
c8 00 b6 3d 89 80 e0 08 00:06:51.696 READ DMA
c8 00 b8 3b 89 80 e0 08 00:06:50.576 READ DMA
c8 00 ba 39 89 80 e0 08 00:06:49.456 READ DMA
Error 59 occurred at disk power-on lifetime: 6227 hours (259 days + 11 hours)
When the command that caused the error occurred, the device was in an unknown state.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 81 3f 89 80 e0 Error: UNC 129 sectors at LBA = 0x0080893f = 8423743
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 b4 3f 89 80 e0 08 00:06:52.880 READ DMA
c8 00 b6 3d 89 80 e0 08 00:06:51.696 READ DMA
c8 00 b8 3b 89 80 e0 08 00:06:50.576 READ DMA
c8 00 ba 39 89 80 e0 08 00:06:49.456 READ DMA
c8 00 bc 37 89 80 e0 08 00:06:48.288 READ DMA
Error 58 occurred at disk power-on lifetime: 6227 hours (259 days + 11 hours)
When the command that caused the error occurred, the device was in an unknown state.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 81 3d 89 80 e0 Error: UNC 129 sectors at LBA = 0x0080893d = 8423741
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 b6 3d 89 80 e0 08 00:06:51.696 READ DMA
c8 00 b8 3b 89 80 e0 08 00:06:50.576 READ DMA
c8 00 ba 39 89 80 e0 08 00:06:49.456 READ DMA
c8 00 bc 37 89 80 e0 08 00:06:48.288 READ DMA
c8 00 be 35 89 80 e0 08 00:06:47.152 READ DMA
An der Stelle ist auf jeden Fall Aufmerksamkeit geboten. Die Platte muss deswegen nicht gleich kaputt sein. Wenn Fehler verzeichnet sind, auf alle Fälle erstmal im Protokoll nachsehen, ob hier Sektoren defekt sind:
196 Reallocated_Event_Count 0x0008 253 253 000 Old_age Offline - 0
197 Current_Pending_Sector 0x0008 253 253 000 Old_age Offline - 0
198 Offline_Uncorrectable 0x0008 253 253 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0008 199 199 000 Old_age Offline - 0
200 Multi_Zone_Error_Rate 0x000a 253 252 000 Old_age Always - 0
Hier steht alles auf 0... Glück gehabt. Jetzt ist auf alle Fälle ein Check der Platte angesagt. Dazu stoßen wir einen Quicktest an, der ca. 1 Minute dauert:
smartctl -t short /dev/hda
Der Output dabei ist erstmal:
smartctl version 5.37 [x86_64-suse-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line mode".
Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 2 minutes for test to complete.
Test will complete after Mon Jan 8 22:57:49 2007
Use smartctl -X to abort test.
Hier müssen wir also zwei Minuten warten. Wollen wir den Test abbrechen, geben wir ein
smartctl -X
ein.
Wer zwischenzeitlich abrufen möchte, wie lange es noch dauert, bis der Test durch ist, der kann sich den Rest des verbleibenden Tests in % mit folgendem Befehl ansehen:
smartctl -c /dev/hda
Da wir neugierig sind, schauen wir uns das Ergebnis des Tests mit folgendem Befehl an:
smartctl -l selftest /dev/hda
Das Ergebnis:
smartctl version 5.37 [x86_64-suse-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== 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 Short offline Completed without error 00% 6388 -
# 2 Short offline Completed without error 00% 1632 -
Auch hier keinen Fehler. Um auf Nummer sicher zu gehen, kann man den Test auch mit einem
smartctl -t long /dev/hda
anstoßen. Das dauert allerdings seine Zeit. Eine Stunde kann man dabei einkalkulieren.
Man kann hier mit ziemlich einfachen Mitteln schonmal eine ganze Menge von der verwendeten Festplatte erfahren.
Nun, was ist nun mit meiner Platte los? Ich beobachte die Platte schon seit einger Zeit. Die Fehleranzahl verändert sich seit vielen Tagen nicht. D.h. die Fehler kamen entweder von einem defekten IDE Kabel, das ich bereits getauscht habe. zudem war die Platte eine zeitlang in einem externen USB Gehäuse unterwegs und wurde oft im Betrieb abgeschalten. Als letztes "entwendete" ich die Plattenelektronik kurzfristig, um eine andere Festplatte wieder auf die Sprünge zu helfen. Alles Dinge, die ihre Spuren hinterlassen können ;)
Wichtig ist, dass Ihr, wenn es Fehler gibt, das Protokoll regelmäßig beobachtet. Nimmt die Zahl der Fehler rapide zu (und das ist dann nach jedem Reboot der Fall), dann könnt Ihr schonmal im Mindfactory-Shop Euch eine neue Platte aussuchen ;)
Viel Spaß beim Testen!
cu
Gargi