Скрипт вывода основных данных по использованию SSD
Добавлено: 13 июн 2019, 06:29
Вот оно и пишет
Вот оно и пишет
Код: Выделить всё
sudo smartctl --all /dev/sda
Код: Выделить всё
kostusha@kostusha-Aspire-XC-105:~$ sudo smartctl --all /dev/sda
[sudo] пароль для kostusha:
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-5.3.0-51-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Device Model: ORICO N300 128GB
Serial Number: AA000000000000000056
Firmware Version: S0424A0
User Capacity: 128 035 676 160 bytes [128 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Form Factor: M.2
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ACS-2 T13/2015-D revision 3
SATA Version is: SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Sun May 24 13:56:54 2020 MSK
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: ( 120) seconds.
Offline data collection
capabilities: (0x11) SMART execute Offline immediate.
No Auto Offline data collection support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
No Selective Self-test supported.
SMART capabilities: (0x0002) Does not save 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: ( 10) minutes.
SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x0032 100 100 050 Old_age Always - 0
5 Reallocated_Sector_Ct 0x0032 100 100 050 Old_age Always - 0
9 Power_On_Hours 0x0032 100 100 050 Old_age Always - 439
12 Power_Cycle_Count 0x0032 100 100 050 Old_age Always - 294
160 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 0
161 Unknown_Attribute 0x0033 100 100 050 Pre-fail Always - 100
163 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 12
164 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 1283
165 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 6
166 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 1
167 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 2
168 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 7000
169 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 100
175 Program_Fail_Count_Chip 0x0032 100 100 050 Old_age Always - 0
176 Erase_Fail_Count_Chip 0x0032 100 100 050 Old_age Always - 0
177 Wear_Leveling_Count 0x0032 100 100 050 Old_age Always - 0
178 Used_Rsvd_Blk_Cnt_Chip 0x0032 100 100 050 Old_age Always - 0
181 Program_Fail_Cnt_Total 0x0032 100 100 050 Old_age Always - 0
182 Erase_Fail_Count_Total 0x0032 100 100 050 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 050 Old_age Always - 147
194 Temperature_Celsius 0x0022 100 100 050 Old_age Always - 40
195 Hardware_ECC_Recovered 0x0032 100 100 050 Old_age Always - 55
196 Reallocated_Event_Count 0x0032 100 100 050 Old_age Always - 0
197 Current_Pending_Sector 0x0032 100 100 050 Old_age Always - 0
198 Offline_Uncorrectable 0x0032 100 100 050 Old_age Always - 0
199 UDMA_CRC_Error_Count 0x0032 100 100 050 Old_age Always - 0
232 Available_Reservd_Space 0x0032 100 100 050 Old_age Always - 100
241 Total_LBAs_Written 0x0030 100 100 050 Old_age Offline - 3085
242 Total_LBAs_Read 0x0030 100 100 050 Old_age Offline - 4898
245 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 1343
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]
Selective Self-tests/Logging not supported
Судя по цифрам ситуация та же. Что-то в смарт пишется, только смысл этих значений видимо знает только китайский инженер, зовут которого "Кон Чен Ый".
(ID 241) GB Written from Interface – объём данных в ГБ, записанных на накопитель.
Код: Выделить всё
sudo smartctl --all /dev/sda
Код: Выделить всё
=== START OF INFORMATION SECTION ===
Device Model: KINGSTON SA400S37120G
Serial Number: 50026B778279ED72
LU WWN Device Id: 5 0026b7 78279ed72
Firmware Version: SBFKB1E1
User Capacity: 120 034 123 776 bytes [120 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ACS-3 T13/2161-D revision 4
SATA Version is: SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Sun May 24 14:22:58 2020 MSK
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: (65535) seconds.
Offline data collection
capabilities: (0x11) SMART execute Offline immediate.
No Auto Offline data collection support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
No 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: ( 30) 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 0x0032 000 100 000 Old_age Always - 0
9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 2634
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 234
148 Unknown_Attribute 0x0000 100 100 000 Old_age Offline - 0
149 Unknown_Attribute 0x0000 100 100 000 Old_age Offline - 0
167 Unknown_Attribute 0x0000 100 100 000 Old_age Offline - 0
168 Unknown_Attribute 0x0012 100 100 000 Old_age Always - 0
169 Unknown_Attribute 0x0000 100 100 000 Old_age Offline - 16
170 Unknown_Attribute 0x0000 100 100 010 Old_age Offline - 11
172 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 0
173 Unknown_Attribute 0x0000 100 100 000 Old_age Offline - 1048594
181 Program_Fail_Cnt_Total 0x0032 100 100 000 Old_age Always - 0
182 Erase_Fail_Count_Total 0x0000 100 100 000 Old_age Offline - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0012 100 100 000 Old_age Always - 80
194 Temperature_Celsius 0x0022 061 037 000 Old_age Always - 39 (Min/Max 23/63)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0
199 UDMA_CRC_Error_Count 0x0032 100 100 000 Old_age Always - 0
218 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 128
231 Temperature_Celsius 0x0000 002 002 000 Old_age Offline - 98
233 Media_Wearout_Indicator 0x0032 100 100 000 Old_age Always - 1040
241 Total_LBAs_Written 0x0032 100 100 000 Old_age Always - 685
242 Total_LBAs_Read 0x0032 100 100 000 Old_age Always - 636
244 Unknown_Attribute 0x0000 100 100 000 Old_age Offline - 16
245 Unknown_Attribute 0x0000 100 100 000 Old_age Offline - 18
246 Unknown_Attribute 0x0000 100 100 000 Old_age Offline - 61488
SMART Error Log Version: 1
ATA Error Count: 12 (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 12 occurred at disk power-on lifetime: 0 hours (0 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
-- -- -- -- -- -- --
84 51 18 00 00 00 e0 Error: ICRC, ABRT at LBA = 0x00000000 = 0
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
ca 00 18 00 00 00 e0 08 00:00:00.000 WRITE DMA
ec 00 00 00 00 00 a0 08 00:00:00.000 IDENTIFY DEVICE
ef 03 42 00 00 00 a0 08 00:00:00.000 SET FEATURES [Set transfer mode]
ec 00 00 00 00 00 a0 08 00:00:00.000 IDENTIFY DEVICE
ff d5 01 01 00 00 00 ff 00:00:00.000 [VENDOR SPECIFIC]
Error 11 occurred at disk power-on lifetime: 0 hours (0 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
-- -- -- -- -- -- --
84 51 18 00 00 00 e0 Error: ICRC, ABRT at LBA = 0x00000000 = 0
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
ca 00 18 00 00 00 e0 08 00:00:00.000 WRITE DMA
ec 00 00 00 00 00 a0 08 00:00:00.000 IDENTIFY DEVICE
ef 03 42 00 00 00 a0 08 00:00:00.000 SET FEATURES [Set transfer mode]
ec 00 00 00 00 00 a0 08 00:00:00.000 IDENTIFY DEVICE
ff d5 01 01 00 00 00 ff 00:00:00.000 [VENDOR SPECIFIC]
Error 10 occurred at disk power-on lifetime: 0 hours (0 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
-- -- -- -- -- -- --
84 51 18 00 00 00 e0 Error: ICRC, ABRT at LBA = 0x00000000 = 0
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
ca 00 18 00 00 00 e0 08 00:00:00.000 WRITE DMA
ec 00 00 00 00 00 a0 08 00:00:00.000 IDENTIFY DEVICE
ef 03 42 00 00 00 a0 08 00:00:00.000 SET FEATURES [Set transfer mode]
ec 00 00 00 00 00 a0 08 00:00:00.000 IDENTIFY DEVICE
ff d5 01 01 00 00 00 ff 00:00:00.000 [VENDOR SPECIFIC]
Error 9 occurred at disk power-on lifetime: 0 hours (0 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
-- -- -- -- -- -- --
84 51 18 00 00 00 e0 Error: ICRC, ABRT at LBA = 0x00000000 = 0
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
ca 00 18 00 00 00 e0 08 00:00:00.000 WRITE DMA
ec 00 00 00 00 00 a0 08 00:00:00.000 IDENTIFY DEVICE
ef 03 42 00 00 00 a0 08 00:00:00.000 SET FEATURES [Set transfer mode]
ec 00 00 00 00 00 a0 08 00:00:00.000 IDENTIFY DEVICE
ff d5 01 01 00 00 00 ff 00:00:00.000 [VENDOR SPECIFIC]
Error 8 occurred at disk power-on lifetime: 0 hours (0 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
-- -- -- -- -- -- --
84 51 18 00 00 00 e0 Error: ICRC, ABRT at LBA = 0x00000000 = 0
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
ca 00 18 00 00 00 e0 08 00:00:00.000 WRITE DMA
ec 00 00 00 00 00 a0 08 00:00:00.000 IDENTIFY DEVICE
ef 03 42 00 00 00 a0 08 00:00:00.000 SET FEATURES [Set transfer mode]
ec 00 00 00 00 00 a0 08 00:00:00.000 IDENTIFY DEVICE
ff d5 01 01 00 00 00 ff 00:00:00.000 [VENDOR SPECIFIC]
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
Selective Self-tests/Logging not supported
smartctl
, и в случае отсутствия предложит установить smartmontools