Lieber Besucher, herzlich willkommen bei: GentooForum.de. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
flammenflitzer olaf # hddtemp /dev/sda /dev/sda: 3ware Logical Disk 0: S.M.A.R.T. not available flammenflitzer olaf # hddtemp /dev/sdb /dev/sdb: ST3500320AS: 44°C flammenflitzer olaf # hddtemp /dev/sdc WARNING: Drive /dev/sdc 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/sdc: SAMSUNG HD401LJ: 41°C or °F flammenflitzer olaf # hddtemp /dev/sdd WARNING: Drive /dev/sdd 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/sdd: ST31000528AS: 40°C or °F |
Quellcode |
|
1 2 3 4 5 6 7 |
flammenflitzer olaf # smartctl --all /dev/sda smartctl version 5.38 [x86_64-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ Device: 3ware Logical Disk 0 Version: 1.2 please try adding '-d 3ware,N' you may also need to change device to /dev/twaN or /dev/tweN |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
flammenflitzer olaf # smartctl -i /dev/sdb smartctl version 5.38 [x86_64-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION === Model Family: Seagate Barracuda 7200.11 Device Model: ST3500320AS Serial Number: 9QM4X4MP Firmware Version: SD15 User Capacity: 500.107.862.016 bytes Device is: In smartctl database [for details use: -P show] ATA Version is: 8 ATA Standard is: ATA-8-ACS revision 4 Local Time is: Sat Dec 19 12:30:50 2009 CET SMART support is: Available - device has SMART capability. SMART support is: Enabled |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
flammenflitzer olaf # smartctl -i /dev/sdc smartctl version 5.38 [x86_64-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION === Model Family: SAMSUNG SpinPoint T133 series Device Model: SAMSUNG HD401LJ Serial Number: 400511FP324666 Firmware Version: ZZ100-15 User Capacity: 400.088.457.216 bytes Device is: In smartctl database [for details use: -P show] ATA Version is: 7 ATA Standard is: ATA/ATAPI-7 T13 1532D revision 4a Local Time is: Sat Dec 19 12:31:06 2009 CET SMART support is: Available - device has SMART capability. SMART support is: Enabled |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
flammenflitzer olaf # smartctl -i /dev/sdd smartctl version 5.38 [x86_64-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION === Device Model: ST31000528AS Serial Number: 6VP0N0JT Firmware Version: CC34 User Capacity: 1.000.204.886.016 bytes Device is: Not in smartctl database [for details use: -P showall] ATA Version is: 8 ATA Standard is: ATA-8-ACS revision 4 Local Time is: Sat Dec 19 12:31:46 2009 CET SMART support is: Available - device has SMART capability. SMART support is: Enabled |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »flammenflitzer« (20.12.2009, 11:41)
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 |
# hddtemp /dev/sdb WARNING: Drive /dev/sdb 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/sdb: SAMSUNG HD401LJ: 23°C or °F # hddtemp -q /dev/sdb /dev/sdb: SAMSUNG HD401LJ: 23°C or °F |
Quellcode |
|
1 |
# hddtemp -q /dev/sd[a-z] |
Quellcode |
|
1 2 |
smartctl -d 3ware,0 -A /dev/twe0 | grep 194 194 Temperature_Celsius 0x0022 051 061 000 Old_age Always - 51 |
Quellcode |
|
1 2 3 4 |
olaf@flammenflitzer ~/.conky-scripte $ /usr/sbin/hddtemp /dev/sdb /dev/sdb: ST3500320AS: 44°C olaf@flammenflitzer ~/.conky-scripte $ /usr/sbin/hddtemp -q /dev/sdb /dev/sdb: ST3500320AS: 44°C |
Quellcode |
|
1 2 3 4 5 6 7 8 9 |
olaf@flammenflitzer ~/.conky-scripte $ /usr/sbin/hddtemp /dev/sdc WARNING: Drive /dev/sdc 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/sdc: SAMSUNG HD401LJ: 41°C or °F olaf@flammenflitzer ~/.conky-scripte $ /usr/sbin/hddtemp -q /dev/sdc /dev/sdc: SAMSUNG HD401LJ: 41°C or °F |
Quellcode |
|
1 2 3 4 5 |
$color$stippled_hr ${color green} Festplatte ST3500320AS /dev/sdb Temp: ${color red} ${execi 10 /usr/sbin/hddtemp -q /dev/sdd | cut -c 26-31} ${color green} Festplatte SAMSUNG HD401LJ /dev/sdc Temp: ${color red} ${execi 10 /usr/sbin/hddtemp -q /dev/sdd | cut -c 26-31} ${color green} Festplatte ST31000528AS /dev/sdd Temp: ${color red} ${execi 10 /usr/sbin/hddtemp -q /dev/sdd | cut -c 26-31} $color$stippled_hr |
Quellcode |
|
1 2 |
smartctl -d 3ware,0 -A /dev/twe0 | grep 194 194 Temperature_Celsius 0x0022 050 061 000 Old_age Always - 50 |
Quellcode |
|
1 2 3 4 5 6 |
$color$stippled_hr ${color green} Festplatte Raid 3ware /dev/sda Temp: ${color red} ${execi 10 /usr/sbin/smartctl -d 3ware,0 -A /dev/twe0 | grep Temperature_Celsius | cut -c 88-90}°C ${color green} Festplatte ST3500320AS /dev/sdb Temp: ${color red} ${execi 10 /usr/sbin/hddtemp -q /dev/sdd | cut -c 26-31} ${color green} Festplatte SAMSUNG HD401LJ /dev/sdc Temp: ${color red} ${execi 10 /usr/sbin/hddtemp -q /dev/sdd | cut -c 26-31} ${color green} Festplatte ST31000528AS /dev/sdd Temp: ${color red} ${execi 10 /usr/sbin/hddtemp -q /dev/sdd | cut -c 26-31} $color$stippled_hr |
Zitat
DRIVE DATABASE
If you know your drive has a temperature sensor but it is being reported unsupported, tell me which model and which manufacturer it is, and/or just add
a new entry in /usr/share/misc/hddtemp.db. Each line of hddtemp.db is either a comment, a blank line or a line containing:
- a regular expression that allow hddtemp to recognize a drive or a
set of drives from its model name or from a generic model name,
- a value (ATTRIBUTE_ID from S.M.A.R.T.),
- a C or an F to set the unit to Celsius or Fahrenheit,
- a description.
Feedback is welcome (see the REPORT section below).
Quellcode |
|
1 2 3 4 5 6 7 8 9 |
olaf@flammenflitzer ~/.conky-scripte $ /usr/sbin/hddtemp /dev/sdc WARNING: Drive /dev/sdc 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/sdc: SAMSUNG HD401LJ: 41°C or °F olaf@flammenflitzer ~/.conky-scripte $ /usr/sbin/hddtemp -q /dev/sdc /dev/sdc: SAMSUNG HD401LJ: 41°C or °F |
Quellcode |
|
1 |
# update-hddtemp.db |
Quellcode |
|
1 |
"SAMSUNG HD401LJ" 194 C "Samsung HD401LJ" |
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »josef.95« (19.12.2009, 15:24)