1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Does Smartmon Work?

Discussion in 'HD/HDR-FOX T2 Customised Firmware' started by Ezra Pound, Mar 17, 2012.

  1. Ezra Pound

    Ezra Pound Well-Known Member

    With all the current talk about Fan noise, I thought I would try and monitor the Hard disk drive temperature, So, Has anyone managed to get smartmontools 5.41 working?

    I have installed Ver 5.41 and run /mod/sbin/smartd –d But all I get is ‘Unable to monitor any SMART enabled devices’ there is also a debug line that states ‘glob(3) found no matches for pattern /dev/sd[a-c][a-z]’

    As the internal HDD should be either /dev/sda or /dev/sdb I’m not sure how to proceed
     
  2. MartinLiddle

    MartinLiddle Super Moderator Staff Member

    The pattern looks wrong to me. I would have thought /dev/sd[a-z]
     
  3. Ezra Pound

    Ezra Pound Well-Known Member

    Bit more progress, smartd is the deamon. If you run /mod/bin/smartctl /dev/sda -A you get this :-

    Code:
    humax# /mod/bin/smartctl /dev/sdb -A
    smartctl 5.41 2011-06-09 r3365 [7405b0-smp-linux-2.6.18-7.1] (local build)
    Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
     
    === START OF READ SMART DATA SECTION ===
    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  114  099  006    Pre-fail  Always      -      66639826
      3 Spin_Up_Time            0x0003  097  097  000    Pre-fail  Always      -      0
      4 Start_Stop_Count        0x0032  098  098  020    Old_age  Always      -      2878
      5 Reallocated_Sector_Ct  0x0033  100  100  036    Pre-fail  Always      -      0
      7 Seek_Error_Rate        0x000f  078  060  030    Pre-fail  Always      -      70499004
      9 Power_On_Hours          0x0032  097  097  000    Old_age  Always      -      3293
    10 Spin_Retry_Count        0x0013  100  100  097    Pre-fail  Always      -      0
    12 Power_Cycle_Count      0x0032  099  099  020    Old_age  Always      -      1439
    184 End-to-End_Error        0x0032  100  100  099    Old_age  Always      -      0
    187 Reported_Uncorrect      0x0032  097  097  000    Old_age  Always      -      3
    188 Command_Timeout        0x0032  100  100  000    Old_age  Always      -      0
    189 High_Fly_Writes        0x003a  093  093  000    Old_age  Always      -      7
    190 Airflow_Temperature_Cel 0x0022  066  044  045    Old_age  Always  In_the_past 34 (0 109 34 32)
    194 Temperature_Celsius     0x0022  034  056  000    Old_age  Always      -      34 (0 13 0 0)
    195 Hardware_ECC_Recovered  0x001a  048  039  000    Old_age  Always      -      66639826
    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
     
    
    190 seems a bit unreliable but 194 makes sense, e.g. current temp = 34Deg C
    NOTES:- The Humax has only been on for 5 Mins.
    /dev/sda = External USB drive (/dev/sdb = internal HDD)
     
  4. Wallace

    Wallace Slightly Pickled

    This is the command I use:

    smartctl -a /dev/sda

    Works for me, but I don't use an external drive, just an 1TB internal that I fitted myself.

    Code:
    humax# smartctl -a /dev/sda
    smartctl 5.41 2011-06-09 r3365 [7405b0-smp-linux-2.6.18-7.1] (local build)
    Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
     
    === START OF INFORMATION SECTION ===
    Model Family:    Western Digital AV-GP
    Device Model:    WDC WD10EVDS-63U8B1
    Serial Number:    WD-WCAV5U687478
    LU WWN Device Id: 5 0014ee 2b0aa6020
    Firmware Version: 01.00A01
    User Capacity:    1,000,204,886,016 bytes [1.00 TB]
    Sector Size:      512 bytes logical/physical
    Device is:        In smartctl database [for details use: -P show]
    ATA Version is:  8
    ATA Standard is:  Exact ATA specification draft version not indicated
    Local Time is:    Sat Mar 17 15:59:05 2012 GMT
    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:                (19980) seconds.
    Offline data collection
    capabilities:                    (0x7b) SMART execute Offline immediate.
                                            Auto Offline data collection on/off support.
                                            Suspend Offline collection upon new
                                            command.
                                            Offline surface scan supported.
                                            Self-test supported.
                                            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:        ( 230) minutes.
    Conveyance self-test routine
    recommended polling time:        (  5) minutes.
    SCT capabilities:              (0x3037) SCT Status supported.
                                            SCT Feature Control supported.
                                            SCT Data Table supported.
     
    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    0x002f  200  200  051    Pre-fail  Always      -      0
      3 Spin_Up_Time            0x0027  192  189  021    Pre-fail  Always      -      6366
      4 Start_Stop_Count        0x0032  100  100  000    Old_age  Always      -      923
      5 Reallocated_Sector_Ct  0x0033  200  200  140    Pre-fail  Always      -      0
      7 Seek_Error_Rate        0x002e  100  253  000    Old_age  Always      -      0
      9 Power_On_Hours          0x0032  099  099  000    Old_age  Always      -      1227
    10 Spin_Retry_Count        0x0032  100  100  000    Old_age  Always      -      0
    11 Calibration_Retry_Count 0x0032  100  100  000    Old_age  Always      -      0
    12 Power_Cycle_Count      0x0032  100  100  000    Old_age  Always      -      921
    192 Power-Off_Retract_Count 0x0032  199  199  000    Old_age  Always      -      919
    193 Load_Cycle_Count        0x0032  200  200  000    Old_age  Always      -      2432
    194 Temperature_Celsius    0x0022  115  085  000    Old_age  Always      -      32
    196 Reallocated_Event_Count 0x0032  200  200  000    Old_age  Always      -      0
    197 Current_Pending_Sector  0x0032  200  200  000    Old_age  Always      -      0
    198 Offline_Uncorrectable  0x0030  100  253  000    Old_age  Offline      -      0
    199 UDMA_CRC_Error_Count    0x0032  200  200  000    Old_age  Always      -      0
    200 Multi_Zone_Error_Rate  0x0008  100  253  000    Old_age  Offline      -      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.
    
    FWIW, the Hummy had only just been powered on, hence the low HDD temp. I will leave it on now and check again later.
     
  5. Ezra Pound

    Ezra Pound Well-Known Member

    Yes it looks like -A = All Vendor Specific and -a = All
    My fan comes on Full at 55C , down to Half at 52C down to a Quarter at 49C and off at 46C