• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

HD Diagnosetool a la hd tune

Hoffe die Frage ich hier richtig:

Gibt es für Linux (Suse 10.1) ein herstellerunabhängiges Toll zur Fetsplattendiagnose, das ähnlich gut wie das unter Windows verfügbare hd tune arbeitet?
 
Also ich weiss jetzt nicht, wie man an eine Anzeige von beispielsweise S.M.A.R.T; Festplatteninformationen herankommt. Also Temperatur. Und fehleranzeige.

Aber mit "hdparm" beispielsweise kann man sowas auslesen:

wild-thing:~ # hdparm -Tt /dev/sdb6

/dev/sdb6:
Timing cached reads: 7832 MB in 2.00 seconds = 3919.59 MB/sec
Timing buffered disk reads: 180 MB in 3.03 seconds = 59.48 MB/sec
wild-thing:~ #

Dann gibt es noch etwas das heisst bonnie oder so. Das hab ich aber auch noch nicht versucht.

dann gibt es noch ein Paket namens "hddtemp" und auch eines namens "smartd".

hddtemp gibt beispielsweise sowas aus:

wild-thing:~ # hddtemp /dev/sdb6
WARNING: Drive /dev/sdb6 doesn't appear in the database of supported drives
WARNING: But using a common value, it reports something.
WARNING: Note that the temperature shown could be wrong.
WARNING: See --help, --debug and --drivebase options.
WARNING: And don't forget you can add your drive to hddtemp.db
/dev/sdb6: ST3808110AS: 35°C or °F
wild-thing:~ #

Wobei die Werte entsprechend sind und die Warnung bei mir ignorierbar. -- denk ich mal.


Gruss

R
 
revealed schrieb:
Also ich weiss jetzt nicht, wie man an eine Anzeige von beispielsweise S.M.A.R.T; Festplatteninformationen herankommt. Also Temperatur. Und fehleranzeige.

Es geht mir hauptsächlich um die Anzeige möglicher fehlerhafter Sektoren auf der HD, also grob ausgedrückt ob die HD irgendeine Macke hat...
 
hmm also das Dateisystem Prüfen kann mann mit "fsck".

Aber ich glaub das startet automatisch auf Bedarf. Mit den Sektoren würde mich auch interessieren :)
Code:
smartctl --all /dev/sdb
Sollte dich mit Informationen bezüglich S.M.A.R.T beispielsweise überfluten.

das gibt dann beispielsweise unter vielem mehr sowas aus:
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.9 family
Device Model: ST3808110AS
Serial Number: 4LS2WX2A
Firmware Version: 3.AAH
User Capacity: 80,026,361,856 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 7
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Fri Jan 12 14:52:46 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

/dev/sdb6 und die Schalter kannst du ja anpassen. Dazu braucht mann die smartmontools oder so glaub ich.

Gruss

R
 
revealed schrieb:
hmm also das Dateisystem Prüfen kann mann mit "fsck".
Aber ich glaub das startet automatisch auf Bedarf. Mit den Sektoren würde mich auch interessieren :)
Code:
smartctl --all /dev/sdb
Sollte dich mit Informationen bezüglich S.M.A.R.T beispielsweise überfluten.
R

Danke dir, habe smartmontools geladen und (wie du gesagt hast) Unmengen an Infos erhaltem, aber ich komme da wirklich nicht mit klar - was besagt mir das hier:


-----------------------------------------------------------------
lineadiretta:~ # smartctl -a /dev/hda
smartctl version 5.33 [i686-pc-linux-gnu] Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model: IC25N060ATMR04-0
Serial Number: MRG3X9KCHPXGUH
Firmware Version: MO3OAD4A
User Capacity: 60,011,642,880 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 6
ATA Standard is: ATA/ATAPI-6 T13 1410D revision 3a
Local Time is: Fri Jan 12 15:21:34 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: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
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: ( 645) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off supp
ort.
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.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 53) minutes.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_
FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000b 100 100 062 Pre-fail Always -
0
2 Throughput_Performance 0x0005 100 100 040 Pre-fail Offline -
0
3 Spin_Up_Time 0x0007 131 131 033 Pre-fail Always -
1
4 Start_Stop_Count 0x0012 100 100 000 Old_age Always -
201
5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always -
0
7 Seek_Error_Rate 0x000b 100 100 067 Pre-fail Always -
0
8 Seek_Time_Performance 0x0005 100 100 040 Pre-fail Offline -
0
9 Power_On_Hours 0x0012 100 100 000 Old_age Always -
148
10 Spin_Retry_Count 0x0013 100 100 060 Pre-fail Always -
0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always -
186
191 G-Sense_Error_Rate 0x000a 099 099 000 Old_age Always -
131073
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always -
12
193 Load_Cycle_Count 0x0012 100 100 000 Old_age Always -
1978
194 Temperature_Celsius 0x0002 157 157 000 Old_age Always -
35 (Lifetime Min/Max 17/47)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always -
0
197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always -
1
198 Offline_Uncorrectable 0x0008 100 100 000 Old_age Offline -
0
199 UDMA_CRC_Error_Count 0x000a 200 200 000 Old_age Always -
0

SMART Error Log Version: 1
ATA Error Count: 2
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 2 occurred at disk power-on lifetime: 144 hours (6 days + 0 hours)
When the command that caused the error occurred, the device was active or idle
.

After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 3c c4 35 4c e1 Error: UNC 60 sectors at LBA = 0x014c35c4 = 21771716

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 d1 40 c0 35 4c e1 00 03:37:21.900 READ DMA
c8 d1 40 80 35 4c e1 00 03:37:21.900 READ DMA
c8 d1 40 40 35 4c e1 00 03:37:21.900 READ DMA
c8 d1 40 00 35 4c e1 00 03:37:21.900 READ DMA
c8 d1 40 c0 34 4c e1 00 03:37:21.800 READ DMA

Error 1 occurred at disk power-on lifetime: 142 hours (5 days + 22 hours)
When the command that caused the error occurred, the device was active or idle
.

After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 3c c4 35 4c e1 Error: UNC 60 sectors at LBA = 0x014c35c4 = 21771716

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 d1 40 c0 35 4c e1 00 00:55:37.300 READ DMA
c8 d1 40 80 35 4c e1 00 00:55:37.300 READ DMA
c8 d1 40 40 35 4c e1 00 00:55:37.300 READ DMA
c8 d1 40 00 35 4c e1 00 00:55:37.300 READ DMA
c8 d1 40 c0 34 4c e1 00 00:55:37.300 READ DMA

SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]


Warning! SMART Selective Self-Test Log Structure error: invalid SMART checksum.
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.

lineadiretta:~ #
-------------------------------------------------------------------------


Wäre riesig nett wenn du/ihr mir da helfen könntet, Hintergrund ist das mein Laoptop vor 1 Monat eine defekt HD ausgetauscht bekam,aber die Neue (hoffe es war ne Neue u. keine aus nem Austauschpool) hat lt. "hd tune" (unter windows laufend) schon wieder einen defekten Sektor - ist zwar nicht viel, aber so fängt es ja meist an.........
 
Also ich bin da auch kein profi; aber...
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

Könnte dir sagen, dass beim Auslesen von SMART festgestellt wurde das smart verfügbar ist, es an sich läuft, deine Platte SMART fähig ist.
Und dass sie von dem TOOL bezüglich SMART des "insgesamt-gesundheits selbst-wertungs test ergebnisses: Bestanden" - hat.
Aber ich glaube die S.M.A.R.T ergebnisse werden irgendwie auch sowieso in eine Log Datei weitergegeben.

Code:
wild-thing:~ # smartctl -i /dev/sdb6

Gibt ein bisschen weniger Informationen.. eventuell ist es dort übersichtlicher.

laut einer anderen Seite währe wenn

Code:
# smartctl -H /dev/sdb6"
-- "Failed" ausgäbe ein Austausch der Festplatte angebracht.

Aber das bringt bei dir wie bei mir eben "PASSED!"

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 overall-health self-assessment test result: PASSED

wild-thing:~ #

Ich hoff ich verzähl hier jetz kein Schmarn.

und bei SUSE müssten eigendlich in "var/log/messages/" Warneinträge bezüglich S.M.A.R.T automatisch gelistet werden? Nachdem der smartd Dämon ja sowieso mitläuft?

Aber es sagt bei dir ja auch das es mal einen Fehler gegeben hat? Sehe ich das richtig?

Das könnte ein Treiberfehler - Standby - Resume Fehler oder ähnliches sein. Oder Festplattenüberhitzung beim Dauerbetrieb?

Bei mir sieht die gesamtausgabe so 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.9 family
Device Model: ST3808110AS
Serial Number: 4LS2WX2A
Firmware Version: 3.AAH
User Capacity: 80,026,361,856 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 7
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Fri Jan 12 16:10:32 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 supp
ort.
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.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 27) 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 095 088 006 Pre-fail Always -
182505275
3 Spin_Up_Time 0x0003 094 094 000 Pre-fail Always -
0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always -
492
5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always -
0
7 Seek_Error_Rate 0x000f 081 060 030 Pre-fail Always -
136179466
9 Power_On_Hours 0x0032 098 098 000 Old_age Always -
2194
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always -
0
12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always -
257
187 Unknown_Attribute 0x0032 100 100 000 Old_age Always -
0
189 Unknown_Attribute 0x003a 100 100 000 Old_age Always -
0
190 Temperature_Celsius 0x0022 065 047 045 Old_age Always -
623050787
194 Temperature_Celsius 0x0022 035 053 000 Old_age Always -
35 (Lifetime Min/Max 0/20)
195 Hardware_ECC_Recovered 0x001a 057 046 000 Old_age Always -
39024367
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

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.

wild-thing:~ #
Da sind eben glaube ich keine Fehler wie bei dir zu sehen und deswegen glaube ich könnte bei dir beispielsweise Überhitzung oder ein Treiber fehler oder ein Standby - resume Problem vorliegen.

Liegt eventuell auch an der BIOS version oder eventuell am Datenträger oder eventuell auch nur an der Suspendberechtigung?

ganz erlich ich hab keine Ahnung. Aber da ist definitiv etwas nicht in Ordnung. Zumindest laut dem Ergebnis der Ausgabe dieses Tools.

jetzt habe ich gerade eben noch selber einen Test ausgeführt bei mir mit

Code:
smartctl -t short

ergebnis:
bei
Code:
# smartctl -- all -d /sdb6
wird meine Ausgabe um
Code:
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%      2194         -
erweitert.

Was mir glaube ich sagt: Completed without error also Fehlerfrei

Geringfüge Fehler werden Probleme schätzungsweise nur indikieren. Oder daraufhinweisen. SMART wird dir glaube ich niemals eindeutig sagen *deine Festplatte ist kaputt*

Gruss

R

edit: Du hast eine 60 Gig IBM IC25N060ATMR04-0 Notebook Platte oder? - Da darf sowas eigendlich nicht sein!



.
 
konqui schrieb:
Warum Multipost ?
-> http://www.linuxforen.de/forums/showthread.php?p=1484294

Weil ich dann mehr/und verschieden Antworten erhalte..
Gegenfrage:
Warum nicht?

Wenn innerhalb eines Forum Mehrfachpostings kommen, ist mir klar das soll nicht sein - aber in völlig verschiedenen Foren - wo ist das Problem?
 
revealed schrieb:
Also ich bin da auch kein profi; aber...
.

... sehr hilfsbereit - dafü schon jetzt herzlichen Dank!

Ansonsten wurde ich in linuxforen.de auf "badblocks" hingewiesen, dabei kam das raus:

xxx@lineadiretta:~> su -
Passwort:
lineadiretta:~ # badblocks /dev/hda2
8837568
8837569
8837570
8837571
lineadiretta:~ #

Sieh irgendwie immer mehr nach nem Problem aus, oder?
 
Vor einiger Zeit hat Google mal eine Analyse zur Festplattenhaltbarkeit herausgebracht. Mit ihren unzähligen Festplatten konnten die natürlich auch vernünftige Aussagen zu S.M.A.R.T. treffen. Das einzigste was verlässlich einen drohenden Plattenausfall meldet ist bei smartctl -a /dev/hda (oder sda)

SMART Attributes Data Structure revision number: 16
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 200 200 051 Pre-fail Always - 0
3 Spin_Up_Time 0x0003 167 166 021 Pre-fail Always - 2608
4 Start_Stop_Count 0x0032 099 099 000 Old_age Always - 1159
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 200 200 051 Pre-fail Always - 0
9 Power_On_Hours 0x0032 098 098 000 Old_age Always - 1624
10 Spin_Retry_Count 0x0013 100 100 051 Pre-fail Always - 0
11 Calibration_Retry_Count 0x0012 100 100 051 Old_age Always - 0
12 Power_Cycle_Count 0x0032 099 099 000 Old_age Always - 1088
190 Temperature_Celsius 0x0022 063 045 045 Old_age Always In_the_past 37
194 Temperature_Celsius 0x0022 106 088 000 Old_age Always - 37
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
197 Current_Pending_Sector 0x0012 200 200 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 200 200 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0009 200 200 051 Pre-fail Offline - 0

die Zeile

5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0

dort zählt S.M.A.R.T. die Sektoren, die gegen andere Sektoren "ausgetauscht" werden mussten, weil in ihnen nicht mehr korrekt geschrieben werden konnte. Hier sollte hinten 0 stehen. Sobald er anfängt dort fehlerhafte Sektoren anzuzeigen (ab den Wert 1), steigt die Ausfallwahrscheinlichkeit der Platte rasant an. Man sollte dann ein Backup machen und schonmal eine neue kaufen. Ich vermute mal das der smart-Dämon aber keine fette Warnmeldung auf den Bildschirm saubert, wenn es soweit ist, sondern es nur in irgendeinem log vermerkt, das sich eh kein Mensch jeden Tag anschaut. Gibt es so ein Tool überhaupt unter Linux?
Man sollte aber noch bedenken das S.M.A.R.T. nur in 2 von 3 Fällen hilft. Es gibt ja schließlich noch die elektrischen Ausfälle. Wenn irgendein Chip der Festplatte sagt, ich mag nicht mehr, da warnt dich S.M.A.R.T vorher nicht. Schön wär's!
 
Übrigens in der Zeile Power_On_Hours wird angezeigt wieviele Stunden die Platte seit iher Existenz in Betrieb war und in der Zeile Power_Cycle_Count, wie oft die Platte an- und ausgeschaltet wurde. Interessant, wenn man gebrauchte Platten kauft.
 
Oben