412999826 发表于 2022-5-22 19:21:54

试试这个脚本

871370957 发表于 2022-5-24 17:18:45

感谢分享dddd

lpfeihu 发表于 2022-5-27 15:31:37

支持,下载备用

wifi之歌 发表于 2022-5-31 22:40:13

我来试试 我的灵不灵

wifi之歌 发表于 2022-6-2 20:01:17

本帖最后由 wifi之歌 于 2022-6-2 20:05 编辑

root@maopan:~# smartctl -a /dev/sda
smartctl 6.5 (build date Oct7 2021) (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org


=== START OF INFORMATION SECTION ===
Model Family:   Seagate Laptop HDD
Device Model:   ST500LM021-1KJ152
Serial Number:    W62BXE1T
LU WWN Device Id: 5 000c50 09b42c816
Firmware Version: 0002YXM1
User Capacity:    500,107,862,016 bytes
Sector Sizes:   512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      2.5 inches
Device is:      In smartctl database
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Thu Jun2 19:37:36 2022 CST
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
See vendor-specific Attribute list for marginal Attributes.


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:                (    0) 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.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:      (   2) minutes.
Extended self-test routine
recommended polling time:      (78) minutes.
SCT capabilities:            (0x103d) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.


SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME                                                   FLAG   VALUE WORST THRESH TYPE      UPDATEDWHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate                                              0x002f   119   100   006    Pre-failAlways       -       229169640
3 Spin_Up_Time                                                   0x0023   098   098   000    Pre-failAlways       -       0
4 Start_Stop_Count                                                 0x0032   100   100   000    Old_age   Always       -       123
5 Reallocated_Sector_Ct                                          0x0033   100   100   036    Pre-failAlways       -       0
7 Seek_Error_Rate                                                0x002f   069   060   030    Pre-failAlways       -       9159082
9 Power_On_Hours                                                   0x0032   090   090   000    Old_age   Always       -       8847
10 Spin_Retry_Count                                                 0x0033   100   100   097    Pre-failAlways       -       0
12 Power_Cycle_Count                                                0x0032   100   100   000    Old_age   Always       -       119
183 Runtime_Bad_Block                                                0x0032   100   100   000    Old_age   Always       -       0
184 End-to-End_Error                                                 0x0033   100   100   097    Pre-failAlways       -       0
187 Reported_Uncorrect                                             0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout                                                0x0032   100   100   000    Old_age   Always       -       0
189 High_Fly_Writes                                                0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel                                          0x0022   064   045   045    Old_age   Always   In_the_past 36 (Min/Max 36/40)
191 G-Sense_Error_Rate                                             0x0032   100   100   000    Old_age   Always       -       10
192 Power-Off_Retract_Count                                          0x0022   100   100   000    Old_age   Always       -       22
193 Load_Cycle_Count                                                 0x0032   100   100   000    Old_age   Always       -       506
194 Temperature_Celsius                                              0x0022   036   055   000    Old_age   Always       -       36 (0 18 0 0 0)
196 Reallocated_Event_Count                                          0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector                                           0x0032   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable                                          0x0030   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count                                             0x0032   200   200   000    Old_age   Always       -       0
254 Free_Fall_Sensor                                                 0x0032   100   100   000    Old_age   Always       -       0


SMART Error Log Version: 1
No Errors Logged


SMART Self-test log structure revision number 1
NumTest_Description    Status                  RemainingLifeTime(hours)LBA_of_first_error
# 1Short offline       Completed without error       00%      8725         -
# 2Short offline       Completed without error       00%      8175         -
# 3Short offline       Completed without error       00%      7455         -
# 4Short offline       Completed without error       00%      6712         -
# 5Short offline       Completed without error       00%      5992         -
# 6Short offline       Completed without error       00%      5248         -
# 7Short offline       Completed without error       00%      4576         -
# 8Short offline       Completed without error       00%      3834         -
# 9Short offline       Completed without error       00%      3090         -
#10Short offline       Completed without error       00%      2975         -
#11Short offline       Completed without error       00%      2255         -
#12Short offline       Completed without error       00%      1511         -
#13Short offline       Completed without error       00%       769         -
#14Short offline       Completed without error       00%      68         -
#15Short offline       Completed without error       00%      26         -
#16Short offline       Completed without error       00%         1         -


SMART Selective self-test log data structure revision number 1
SPANMIN_LBAMAX_LBACURRENT_TEST_STATUS
    1      0      0Not_testing
    2      0      0Not_testing
    3      0      0Not_testing
    4      0      0Not_testing
    5      0      0Not_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.

wifi之歌 发表于 2022-6-2 20:07:24

root@maopan:~# cd /tmp/jioben
root@maopan:/tmp/jioben# bash ledfan.sh
ledfan.sh: line 23: [: -ge: unary operator expected
ledfan.sh: line 37: [: -ge: unary operator expected
ledfan.sh: line 51: [: -lt: unary operator expected
ledfan.sh: line 23: [: -ge: unary operator expected
ledfan.sh: line 37: [: -ge: unary operator expected
ledfan.sh: line 51: [: -lt: unary operator expected
搞不定 :'(

下一页 发表于 2022-6-4 11:36:19

感谢大佬

statlz 发表于 2022-6-15 21:28:17

感谢分享

s298028236 发表于 2022-6-21 05:57:16

来看看学习
页: 107 108 109 110 111 112 113 114 115 116 [117] 118 119 120 121 122 123 124 125 126
查看完整版本: 【原创】猫盘刷群晖后LED和风扇控制脚本 更新v2.1