Opened 4 months ago
Closed 4 months ago
#1875 closed defect (invalid)
smartctl -o off does not work for some SSDs
Reported by: | lockywolf | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | smartctl | Version: | 7.4 |
Keywords: | ata | Cc: |
Description (last modified by )
The following is the command log.
smartctl -o off /dev/sdg ; smartctl -c /dev/sdg | grep 'Auto Offline' ; smartctl -a /dev/sdg | head smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.6.23] (local build) Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org === START OF ENABLE/DISABLE COMMANDS SECTION === SMART Automatic Offline Testing Disabled. Auto Offline Data Collection: Enabled. Auto Offline data collection on/off support. smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.6.23] (local build) Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Crucial/Micron Client SSDs Device Model: CT2000MX500SSD1 Serial Number: 2037E4AF6329 LU WWN Device Id: 5 00a075 1e4af6329 Firmware Version: M3CR032 User Capacity: 2,000,398,934,016 bytes [2.00 TB]
I understand that some drives are irregular and refuse to enable/disable some features, but if a drive refuses, it would be at least nice to set exit status to non-0.
Change History (6)
comment:1 by , 4 months ago
Description: | modified (diff) |
---|
comment:2 by , 4 months ago
Keywords: | ata added; ssd offline removed |
---|---|
Milestone: | → undecided |
follow-up: 5 comment:4 by , 4 months ago
smartctl -r ioctl,2 -o on /dev/sdg
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.6.23] (local build) Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org Found idVendor in: /sys/block/sdg/device/../../../.. realpath: /sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4/3-3.4.3 USB ID = 0x174c:0x55aa (0x100) REPORT-IOCTL: Device=/dev/sdg Command=IDENTIFY DEVICE Input: FR=...., SC=0x01, LL=...., LM=...., LH=...., DEV=...., CMD=0xec IN [Duration: 0.000862s] REPORT-IOCTL: Device=/dev/sdg Command=IDENTIFY DEVICE returned 0 ===== [IDENTIFY DEVICE] DATA START (BASE-16) ===== 000-015: 40 00 ff 3f 37 c8 10 00 00 00 00 00 3f 00 00 00 |@..?7.......?...| 016-031: 00 00 00 00 30 32 37 33 34 45 46 41 33 36 39 32 |....02734EFA3692| 032-047: 20 20 20 20 20 20 20 20 00 00 00 00 00 00 33 4d | ......3M| 048-063: 52 43 33 30 20 32 54 43 30 32 30 30 58 4d 30 35 |RC30 2TC0200XM05| 064-079: 53 30 44 53 20 31 20 20 20 20 20 20 20 20 20 20 |S0DS 1 | 080-095: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 01 80 | ..| 096-111: 01 40 00 2f 01 40 00 00 00 00 06 00 ff 3f 10 00 |.@./.@.......?..| 112-127: 3f 00 10 fc fb 00 01 bd ff ff ff 0f 00 00 07 00 |?...............| 128-143: 03 00 78 00 78 00 78 00 78 00 98 0d 00 00 00 00 |..x.x.x.x.......| 144-159: 00 00 00 00 00 00 1f 00 0e 85 86 00 4c 01 40 00 |............L.@.| 160-175: f0 07 6d 00 6b 70 09 74 63 41 69 70 09 b4 63 41 |..m.kp.tcAip..cA| 176-191: 7f 40 01 00 01 00 fe 00 fe ff 00 00 00 00 00 00 |.@..............| 192-207: 00 00 00 00 00 00 00 00 b0 88 e0 e8 00 00 00 00 |................| 208-223: 00 00 08 00 03 60 00 00 0a 50 51 07 af e4 29 63 |.....`...PQ...)c| 224-239: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1c 41 |...............A| 240-255: 1c 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |.@..............| 256-271: 21 00 72 43 63 75 61 69 20 6c 00 00 00 00 00 00 |!.rCcuai l......| 272-287: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 288-303: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 304-319: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 320-335: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 336-351: 03 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 352-367: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 368-383: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 384-399: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 400-415: 00 00 00 00 00 00 00 00 00 00 00 00 31 00 00 00 |............1...| 416-431: 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 |...@............| 432-447: 00 00 01 00 00 00 00 00 00 00 00 00 ff 11 00 00 |................| 448-463: 00 00 00 00 00 00 00 00 00 00 00 00 b0 88 e0 e8 |................| 464-479: 00 00 00 00 01 00 00 02 00 00 00 00 00 00 00 00 |................| 480-495: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 496-511: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a5 95 |................| ===== [IDENTIFY DEVICE] DATA END (512 Bytes) ===== === START OF ENABLE/DISABLE COMMANDS SECTION === REPORT-IOCTL: Device=/dev/sdg Command=SMART READ ATTRIBUTE VALUES Input: FR=0xd0, SC=0x01, LL=...., LM=0x4f, LH=0xc2, DEV=...., CMD=0xb0 IN [Duration: 0.001664s] REPORT-IOCTL: Device=/dev/sdg Command=SMART READ ATTRIBUTE VALUES returned 0 ===== [SMART READ ATTRIBUTE VALUES] DATA START (BASE-16) ===== 000-015: 10 00 01 2f 00 64 64 00 00 00 00 00 00 00 05 32 |.../.dd........2| 016-031: 00 64 64 00 00 00 00 00 00 00 09 32 00 64 64 f8 |.dd........2.dd.| 032-047: 1d 00 00 00 00 00 0c 32 00 64 64 fc 09 00 00 00 |.......2.dd.....| 048-063: 00 00 ab 32 00 64 64 00 00 00 00 00 00 00 ac 32 |...2.dd........2| 064-079: 00 64 64 00 00 00 00 00 00 00 ad 32 00 5a 5a a0 |.dd........2.ZZ.| 080-095: 00 00 00 00 00 00 ae 32 00 64 64 d0 00 00 00 00 |.......2.dd.....| 096-111: 00 00 b4 33 00 00 00 41 00 00 00 00 00 00 b7 32 |...3...A.......2| 112-127: 00 64 64 b7 01 00 00 00 00 00 b8 32 00 64 64 00 |.dd........2.dd.| 128-143: 00 00 00 00 00 00 bb 32 00 64 64 00 00 00 00 00 |.......2.dd.....| 144-159: 00 00 c2 22 00 49 22 1b 00 00 00 42 00 00 c4 32 |...".I"....B...2| 160-175: 00 64 64 00 00 00 00 00 00 00 c5 32 00 64 64 00 |.dd........2.dd.| 176-191: 00 00 00 00 00 00 c6 30 00 64 64 00 00 00 00 00 |.......0.dd.....| 192-207: 00 00 c7 32 00 64 64 ff 01 00 00 00 00 00 ca 30 |...2.dd........0| 208-223: 00 5a 5a 0a 00 00 00 00 00 00 ce 0e 00 64 64 00 |.ZZ..........dd.| 224-239: 00 00 00 00 00 00 d2 32 00 64 64 00 00 00 00 00 |.......2.dd.....| 240-255: 00 00 f6 32 00 64 64 e1 f1 e0 4b 24 00 00 f7 32 |...2.dd...K$...2| 256-271: 00 64 64 b1 09 c9 55 00 00 00 f8 32 00 64 64 6e |.dd...U....2.ddn| 272-287: 7a c0 bf 00 00 00 00 00 00 00 00 00 00 00 00 00 |z...............| 288-303: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 304-319: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 320-335: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 336-351: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 352-367: 00 00 00 00 00 00 00 00 00 00 82 00 00 00 01 7b |...............{| 368-383: 03 00 01 00 02 1e 02 00 00 00 00 00 00 00 00 00 |................| 384-399: 00 00 4d 33 43 52 30 33 32 20 00 00 00 00 00 00 |..M3CR032 ......| 400-415: 53 4d 32 32 35 39 42 32 37 41 52 00 00 00 00 00 |SM2259B27AR.....| 416-431: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 432-447: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 448-463: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 464-479: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 480-495: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 496-511: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 47 |...............G| ===== [SMART READ ATTRIBUTE VALUES] DATA END (512 Bytes) ===== REPORT-IOCTL: Device=/dev/sdg Command=SMART AUTO OFFLINE InputParameter=248 Input: FR=0xdb, SC=0xf8, LL=...., LM=0x4f, LH=0xc2, DEV=...., CMD=0xb0 [Duration: 0.003335s] REPORT-IOCTL: Device=/dev/sdg Command=SMART AUTO OFFLINE returned 0 SMART Automatic Offline Testing Enabled every four hours. REPORT-IOCTL: Device=/dev/sdg Command=SMART READ ATTRIBUTE VALUES Input: FR=0xd0, SC=0x01, LL=...., LM=0x4f, LH=0xc2, DEV=...., CMD=0xb0 IN [Duration: 0.001088s] REPORT-IOCTL: Device=/dev/sdg Command=SMART READ ATTRIBUTE VALUES returned 0 ===== [SMART READ ATTRIBUTE VALUES] DATA START (BASE-16) ===== 000-015: 10 00 01 2f 00 64 64 00 00 00 00 00 00 00 05 32 |.../.dd........2| 016-031: 00 64 64 00 00 00 00 00 00 00 09 32 00 64 64 f8 |.dd........2.dd.| 032-047: 1d 00 00 00 00 00 0c 32 00 64 64 fc 09 00 00 00 |.......2.dd.....| 048-063: 00 00 ab 32 00 64 64 00 00 00 00 00 00 00 ac 32 |...2.dd........2| 064-079: 00 64 64 00 00 00 00 00 00 00 ad 32 00 5a 5a a0 |.dd........2.ZZ.| 080-095: 00 00 00 00 00 00 ae 32 00 64 64 d0 00 00 00 00 |.......2.dd.....| 096-111: 00 00 b4 33 00 00 00 41 00 00 00 00 00 00 b7 32 |...3...A.......2| 112-127: 00 64 64 b7 01 00 00 00 00 00 b8 32 00 64 64 00 |.dd........2.dd.| 128-143: 00 00 00 00 00 00 bb 32 00 64 64 00 00 00 00 00 |.......2.dd.....| 144-159: 00 00 c2 22 00 49 22 1b 00 00 00 42 00 00 c4 32 |...".I"....B...2| 160-175: 00 64 64 00 00 00 00 00 00 00 c5 32 00 64 64 00 |.dd........2.dd.| 176-191: 00 00 00 00 00 00 c6 30 00 64 64 00 00 00 00 00 |.......0.dd.....| 192-207: 00 00 c7 32 00 64 64 ff 01 00 00 00 00 00 ca 30 |...2.dd........0| 208-223: 00 5a 5a 0a 00 00 00 00 00 00 ce 0e 00 64 64 00 |.ZZ..........dd.| 224-239: 00 00 00 00 00 00 d2 32 00 64 64 00 00 00 00 00 |.......2.dd.....| 240-255: 00 00 f6 32 00 64 64 e1 f1 e0 4b 24 00 00 f7 32 |...2.dd...K$...2| 256-271: 00 64 64 b1 09 c9 55 00 00 00 f8 32 00 64 64 6f |.dd...U....2.ddo| 272-287: 7a c0 bf 00 00 00 00 00 00 00 00 00 00 00 00 00 |z...............| 288-303: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 304-319: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 320-335: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 336-351: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 352-367: 00 00 00 00 00 00 00 00 00 00 82 00 00 00 01 7b |...............{| 368-383: 03 00 01 00 02 1e 02 00 00 00 00 00 00 00 00 00 |................| 384-399: 00 00 4d 33 43 52 30 33 32 20 00 00 00 00 00 00 |..M3CR032 ......| 400-415: 53 4d 32 32 35 39 42 32 37 41 52 00 00 00 00 00 |SM2259B27AR.....| 416-431: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 432-447: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 448-463: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 464-479: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 480-495: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 496-511: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 |...............F| ===== [SMART READ ATTRIBUTE VALUES] DATA END (512 Bytes) =====
smartctl -x -a /dev/sdg
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.6.23] (local build) Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Crucial/Micron Client SSDs Device Model: CT2000MX500SSD1 Serial Number: 2037E4AF6329 LU WWN Device Id: 5 00a075 1e4af6329 Firmware Version: M3CR032 User Capacity: 2,000,398,934,016 bytes [2.00 TB] Sector Sizes: 512 bytes logical, 4096 bytes physical Rotation Rate: Solid State Device Form Factor: 2.5 inches TRIM Command: Available Device is: In smartctl database 7.3/5610 ATA Version is: ACS-3 T13/2161-D revision 5 SATA Version is: SATA 3.3, 6.0 Gb/s (current: 6.0 Gb/s) Local Time is: Mon Sep 9 20:30:49 2024 CST SMART support is: Available - device has SMART capability. SMART support is: Enabled AAM feature is: Unavailable APM level is: 254 (maximum performance) Rd look-ahead is: Enabled Write cache is: Enabled DSN feature is: Unavailable ATA Security is: Disabled, NOT FROZEN [SEC1] Wt Cache Reorder: Unknown === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED General SMART Values: Offline data collection status: (0x82)^IOffline data collection activity ^I^I^I^I^Iwas completed without error. ^I^I^I^I^IAuto Offline Data Collection: Enabled. Self-test execution status: ( 0)^IThe previous self-test routine completed ^I^I^I^I^Iwithout error or no self-test has ever ^I^I^I^I^Ibeen run. Total time to complete Offline data collection: ^I^I( 0) seconds. Offline data collection capabilities: ^I^I^I (0x7b) SMART execute Offline immediate. ^I^I^I^I^IAuto Offline data collection on/off support. ^I^I^I^I^ISuspend Offline collection upon new ^I^I^I^I^Icommand. ^I^I^I^I^IOffline surface scan supported. ^I^I^I^I^ISelf-test supported. ^I^I^I^I^IConveyance Self-test supported. ^I^I^I^I^ISelective Self-test supported. SMART capabilities: (0x0003)^ISaves SMART data before entering ^I^I^I^I^Ipower-saving mode. ^I^I^I^I^ISupports SMART auto save timer. Error logging capability: (0x01)^IError logging supported. ^I^I^I^I^IGeneral Purpose Logging supported. Short self-test routine recommended polling time: ^I ( 2) minutes. Extended self-test routine recommended polling time: ^I ( 30) minutes. Conveyance self-test routine recommended polling time: ^I ( 2) minutes. SCT capabilities: ^I (0x0031)^ISCT Status supported. ^I^I^I^I^ISCT Feature Control supported. ^I^I^I^I^ISCT Data Table supported. SMART Attributes Data Structure revision number: 16 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAGS VALUE WORST THRESH FAIL RAW_VALUE 1 Raw_Read_Error_Rate POSR-K 100 100 000 - 0 5 Reallocate_NAND_Blk_Cnt -O--CK 100 100 010 - 0 9 Power_On_Hours -O--CK 100 100 000 - 7672 12 Power_Cycle_Count -O--CK 100 100 000 - 2556 171 Program_Fail_Count -O--CK 100 100 000 - 0 172 Erase_Fail_Count -O--CK 100 100 000 - 0 173 Ave_Block-Erase_Count -O--CK 090 090 000 - 160 174 Unexpect_Power_Loss_Ct -O--CK 100 100 000 - 208 180 Unused_Reserve_NAND_Blk PO--CK 000 000 000 - 65 183 SATA_Interfac_Downshift -O--CK 100 100 000 - 439 184 Error_Correction_Count -O--CK 100 100 000 - 0 187 Reported_Uncorrect -O--CK 100 100 000 - 0 194 Temperature_Celsius -O---K 073 034 000 - 27 (Min/Max 0/66) 196 Reallocated_Event_Count -O--CK 100 100 000 - 0 197 Current_Pending_ECC_Cnt -O--CK 100 100 000 - 0 198 Offline_Uncorrectable ----CK 100 100 000 - 0 199 UDMA_CRC_Error_Count -O--CK 100 100 000 - 511 202 Percent_Lifetime_Remain ----CK 090 090 001 - 10 206 Write_Error_Rate -OSR-- 100 100 000 - 0 210 Success_RAIN_Recov_Cnt -O--CK 100 100 000 - 0 246 Total_LBAs_Written -O--CK 100 100 000 - 155891855841 247 Host_Program_Page_Count -O--CK 100 100 000 - 1439238577 248 FTL_Program_Page_Count -O--CK 100 100 000 - 3217062515 ||||||_ K auto-keep |||||__ C event count ||||___ R error rate |||____ S speed/performance ||_____ O updated online |______ P prefailure warning General Purpose Log Directory Version 1 SMART Log Directory Version 1 [multi-sector log support] Address Access R/W Size Description 0x00 GPL,SL R/O 1 Log Directory 0x01 SL R/O 1 Summary SMART error log 0x02 SL R/O 1 Comprehensive SMART error log 0x03 GPL R/O 1 Ext. Comprehensive SMART error log 0x04 GPL,SL R/O 8 Device Statistics log 0x06 SL R/O 1 SMART self-test log 0x07 GPL R/O 1 Extended self-test log 0x09 SL R/W 1 Selective self-test log 0x10 GPL R/O 1 NCQ Command Error log 0x11 GPL R/O 1 SATA Phy Event Counters log 0x24 GPL R/O 88 Current Device Internal Status Data log 0x25 GPL R/O 128 Saved Device Internal Status Data log 0x30 GPL,SL R/O 9 IDENTIFY DEVICE data log 0x80-0x9f GPL,SL R/W 16 Host vendor specific log 0xe0 GPL,SL R/W 1 SCT Command/Status 0xe1 GPL,SL R/W 1 SCT Data Transfer SMART Extended Comprehensive Error Log Version: 1 (1 sectors) No Errors Logged SMART Error Log Version: 1 Invalid Error Log index = 0x08 (valid range is from 1 to 5) ATA Error Count: 0 (possibly also invalid) SMART Extended Self-test Log Version: 1 (1 sectors) Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Short offline Completed without error 00% 7672 - # 2 Short offline Completed without error 00% 7671 - # 3 Extended offline Completed without error 00% 7671 - # 4 Short offline Completed without error 00% 7670 - # 5 Short offline Completed without error 00% 7669 - # 6 Short offline Completed without error 00% 7668 - # 7 Short offline Completed without error 00% 7668 - # 8 Short offline Completed without error 00% 7667 - # 9 Short offline Completed without error 00% 7667 - #10 Short offline Completed without error 00% 7666 - #11 Extended offline Completed without error 00% 7666 - #12 Short offline Completed without error 00% 7666 - #13 Short offline Completed without error 00% 7665 - #14 Short offline Completed without error 00% 7664 - #15 Short offline Completed without error 00% 7664 - #16 Short offline Completed without error 00% 7663 - #17 Short offline Completed without error 00% 7662 - #18 Short offline Completed without error 00% 7662 - 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% 7672 - # 2 Short offline Completed without error 00% 7671 - # 3 Extended offline Completed without error 00% 7671 - # 4 Short offline Completed without error 00% 7670 - # 5 Short offline Completed without error 00% 7669 - # 6 Short offline Completed without error 00% 7668 - # 7 Short offline Completed without error 00% 7668 - # 8 Short offline Completed without error 00% 7667 - # 9 Short offline Completed without error 00% 7667 - #10 Short offline Completed without error 00% 7666 - #11 Extended offline Completed without error 00% 7666 - #12 Short offline Completed without error 00% 7666 - #13 Short offline Completed without error 00% 7665 - #14 Short offline Completed without error 00% 7664 - #15 Short offline Completed without error 00% 7664 - #16 Short offline Completed without error 00% 7663 - #17 Short offline Completed without error 00% 7662 - #18 Short offline Completed without error 00% 7662 - #19 Extended offline Completed without error 00% 7662 - #20 Short offline Completed without error 00% 7661 - #21 Short offline Completed without error 00% 7660 - 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. SCT Status Version: 3 SCT Version (vendor specific): 1 (0x0001) Device State: Active (0) Current Temperature: 27 Celsius Power Cycle Min/Max Temperature: 24/39 Celsius Lifetime Min/Max Temperature: 0/66 Celsius Under/Over Temperature Limit Count: 0/0 SCT Temperature History Version: 2 Temperature Sampling Period: 1 minute Temperature Logging Interval: 1 minute Min/Max recommended Temperature: 0/100 Celsius Min/Max Temperature Limit: 0/100 Celsius Temperature History Size (Index): 128 (112) Index Estimated Time Temperature Celsius 113 2024-09-09 18:23 27 ******** ... ..( 20 skipped). .. ******** 6 2024-09-09 18:44 27 ******** 7 2024-09-09 18:45 29 ********** 8 2024-09-09 18:46 29 ********** 9 2024-09-09 18:47 27 ******** ... ..(102 skipped). .. ******** 112 2024-09-09 20:30 27 ******** SCT Error Recovery Control command not supported Device Statistics (GP Log 0x04) Page Offset Size Value Flags Description 0x01 ===== = = === == General Statistics (rev 1) == 0x01 0x008 4 2556 --- Lifetime Power-On Resets 0x01 0x010 4 7672 --- Power-on Hours 0x01 0x018 6 1273033185 --- Logical Sectors Written 0x01 0x020 6 3896924838 --- Number of Write Commands 0x01 0x028 6 377446482 --- Logical Sectors Read 0x01 0x030 6 2845026234 --- Number of Read Commands 0x01 0x038 6 1852771678 --- Date and Time TimeStamp 0x04 ===== = = === == General Errors Statistics (rev 1) == 0x04 0x008 4 0 --- Number of Reported Uncorrectable Errors 0x04 0x010 4 240 --- Resets Between Cmd Acceptance and Completion 0x05 ===== = = === == Temperature Statistics (rev 1) == 0x05 0x008 1 27 --- Current Temperature 0x05 0x010 1 26 --- Average Short Term Temperature 0x05 0x018 1 26 --- Average Long Term Temperature 0x05 0x020 1 66 --- Highest Temperature 0x05 0x028 1 0 --- Lowest Temperature 0x05 0x030 1 40 --- Highest Average Short Term Temperature 0x05 0x038 1 26 --- Lowest Average Short Term Temperature 0x05 0x040 1 47 --- Highest Average Long Term Temperature 0x05 0x048 1 26 --- Lowest Average Long Term Temperature 0x05 0x050 4 41 --- Time in Over-Temperature 0x05 0x058 1 70 --- Specified Maximum Operating Temperature 0x05 0x060 4 38 --- Time in Under-Temperature 0x05 0x068 1 0 --- Specified Minimum Operating Temperature 0x06 ===== = = === == Transport Statistics (rev 1) == 0x06 0x008 4 19237 --- Number of Hardware Resets 0x06 0x010 4 1662 --- Number of ASR Events 0x06 0x018 4 511 --- Number of Interface CRC Errors 0x07 ===== = = === == Solid State Device Statistics (rev 1) == 0x07 0x008 1 10 --- Percentage Used Endurance Indicator |||_ C monitored condition met ||__ D supports DSN |___ N normalized value Pending Defects log (GP Log 0x0c) not supported SATA Phy Event Counters (GP Log 0x11) ID Size Value Description 0x0001 2 3 Command failed due to ICRC error 0x0002 2 0 R_ERR response for data FIS 0x0003 2 0 R_ERR response for device-to-host data FIS 0x0004 2 0 R_ERR response for host-to-device data FIS 0x0005 2 0 R_ERR response for non-data FIS 0x0006 2 0 R_ERR response for device-to-host non-data FIS 0x0007 2 0 R_ERR response for host-to-device non-data FIS 0x0008 2 0 Device-to-host non-data FIS retries 0x0009 2 0 Transition from drive PhyRdy to drive PhyNRdy 0x000a 2 4 Device-to-host register FISes sent due to a COMRESET 0x000b 2 0 CRC errors within host-to-device FIS 0x000d 2 0 Non-CRC errors within host-to-device FIS 0x000f 2 0 R_ERR response for host-to-device data FIS, CRC 0x0010 2 0 R_ERR response for host-to-device data FIS, non-CRC 0x0012 2 0 R_ERR response for host-to-device non-data FIS, CRC 0x0013 2 0 R_ERR response for host-to-device non-data FIS, non-CRC
smartctl -r ioctl,2 -o off /dev/sdg
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.6.23] (local build) Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org Found idVendor in: /sys/block/sdg/device/../../../.. realpath: /sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4/3-3.4.3 USB ID = 0x174c:0x55aa (0x100) REPORT-IOCTL: Device=/dev/sdg Command=IDENTIFY DEVICE Input: FR=...., SC=0x01, LL=...., LM=...., LH=...., DEV=...., CMD=0xec IN [Duration: 0.000843s] REPORT-IOCTL: Device=/dev/sdg Command=IDENTIFY DEVICE returned 0 ===== [IDENTIFY DEVICE] DATA START (BASE-16) ===== 000-015: 40 00 ff 3f 37 c8 10 00 00 00 00 00 3f 00 00 00 |@..?7.......?...| 016-031: 00 00 00 00 30 32 37 33 34 45 46 41 33 36 39 32 |....02734EFA3692| 032-047: 20 20 20 20 20 20 20 20 00 00 00 00 00 00 33 4d | ......3M| 048-063: 52 43 33 30 20 32 54 43 30 32 30 30 58 4d 30 35 |RC30 2TC0200XM05| 064-079: 53 30 44 53 20 31 20 20 20 20 20 20 20 20 20 20 |S0DS 1 | 080-095: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 01 80 | ..| 096-111: 01 40 00 2f 01 40 00 00 00 00 06 00 ff 3f 10 00 |.@./.@.......?..| 112-127: 3f 00 10 fc fb 00 01 bd ff ff ff 0f 00 00 07 00 |?...............| 128-143: 03 00 78 00 78 00 78 00 78 00 98 0d 00 00 00 00 |..x.x.x.x.......| 144-159: 00 00 00 00 00 00 1f 00 0e 85 86 00 4c 01 40 00 |............L.@.| 160-175: f0 07 6d 00 6b 70 09 74 63 41 69 70 09 b4 63 41 |..m.kp.tcAip..cA| 176-191: 7f 40 01 00 01 00 fe 00 fe ff 00 00 00 00 00 00 |.@..............| 192-207: 00 00 00 00 00 00 00 00 b0 88 e0 e8 00 00 00 00 |................| 208-223: 00 00 08 00 03 60 00 00 0a 50 51 07 af e4 29 63 |.....`...PQ...)c| 224-239: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1c 41 |...............A| 240-255: 1c 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |.@..............| 256-271: 21 00 72 43 63 75 61 69 20 6c 00 00 00 00 00 00 |!.rCcuai l......| 272-287: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 288-303: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 304-319: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 320-335: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 336-351: 03 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 352-367: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 368-383: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 384-399: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 400-415: 00 00 00 00 00 00 00 00 00 00 00 00 31 00 00 00 |............1...| 416-431: 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 |...@............| 432-447: 00 00 01 00 00 00 00 00 00 00 00 00 ff 11 00 00 |................| 448-463: 00 00 00 00 00 00 00 00 00 00 00 00 b0 88 e0 e8 |................| 464-479: 00 00 00 00 01 00 00 02 00 00 00 00 00 00 00 00 |................| 480-495: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 496-511: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a5 95 |................| ===== [IDENTIFY DEVICE] DATA END (512 Bytes) ===== === START OF ENABLE/DISABLE COMMANDS SECTION === REPORT-IOCTL: Device=/dev/sdg Command=SMART READ ATTRIBUTE VALUES Input: FR=0xd0, SC=0x01, LL=...., LM=0x4f, LH=0xc2, DEV=...., CMD=0xb0 IN [Duration: 0.001623s] REPORT-IOCTL: Device=/dev/sdg Command=SMART READ ATTRIBUTE VALUES returned 0 ===== [SMART READ ATTRIBUTE VALUES] DATA START (BASE-16) ===== 000-015: 10 00 01 2f 00 64 64 00 00 00 00 00 00 00 05 32 |.../.dd........2| 016-031: 00 64 64 00 00 00 00 00 00 00 09 32 00 64 64 f8 |.dd........2.dd.| 032-047: 1d 00 00 00 00 00 0c 32 00 64 64 fc 09 00 00 00 |.......2.dd.....| 048-063: 00 00 ab 32 00 64 64 00 00 00 00 00 00 00 ac 32 |...2.dd........2| 064-079: 00 64 64 00 00 00 00 00 00 00 ad 32 00 5a 5a a0 |.dd........2.ZZ.| 080-095: 00 00 00 00 00 00 ae 32 00 64 64 d0 00 00 00 00 |.......2.dd.....| 096-111: 00 00 b4 33 00 00 00 41 00 00 00 00 00 00 b7 32 |...3...A.......2| 112-127: 00 64 64 b7 01 00 00 00 00 00 b8 32 00 64 64 00 |.dd........2.dd.| 128-143: 00 00 00 00 00 00 bb 32 00 64 64 00 00 00 00 00 |.......2.dd.....| 144-159: 00 00 c2 22 00 49 22 1b 00 00 00 42 00 00 c4 32 |...".I"....B...2| 160-175: 00 64 64 00 00 00 00 00 00 00 c5 32 00 64 64 00 |.dd........2.dd.| 176-191: 00 00 00 00 00 00 c6 30 00 64 64 00 00 00 00 00 |.......0.dd.....| 192-207: 00 00 c7 32 00 64 64 ff 01 00 00 00 00 00 ca 30 |...2.dd........0| 208-223: 00 5a 5a 0a 00 00 00 00 00 00 ce 0e 00 64 64 00 |.ZZ..........dd.| 224-239: 00 00 00 00 00 00 d2 32 00 64 64 00 00 00 00 00 |.......2.dd.....| 240-255: 00 00 f6 32 00 64 64 e1 f1 e0 4b 24 00 00 f7 32 |...2.dd...K$...2| 256-271: 00 64 64 b1 09 c9 55 00 00 00 f8 32 00 64 64 70 |.dd...U....2.ddp| 272-287: 7a c0 bf 00 00 00 00 00 00 00 00 00 00 00 00 00 |z...............| 288-303: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 304-319: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 320-335: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 336-351: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 352-367: 00 00 00 00 00 00 00 00 00 00 82 00 00 00 01 7b |...............{| 368-383: 03 00 01 00 02 1e 02 00 00 00 00 00 00 00 00 00 |................| 384-399: 00 00 4d 33 43 52 30 33 32 20 00 00 00 00 00 00 |..M3CR032 ......| 400-415: 53 4d 32 32 35 39 42 32 37 41 52 00 00 00 00 00 |SM2259B27AR.....| 416-431: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 432-447: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 448-463: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 464-479: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 480-495: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 496-511: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 |...............E| ===== [SMART READ ATTRIBUTE VALUES] DATA END (512 Bytes) ===== REPORT-IOCTL: Device=/dev/sdg Command=SMART AUTO OFFLINE InputParameter=0 Input: FR=0xdb, SC=0x00, LL=...., LM=0x4f, LH=0xc2, DEV=...., CMD=0xb0 [Duration: 0.000091s] REPORT-IOCTL: Device=/dev/sdg Command=SMART AUTO OFFLINE returned 0 SMART Automatic Offline Testing Disabled. REPORT-IOCTL: Device=/dev/sdg Command=SMART READ ATTRIBUTE VALUES Input: FR=0xd0, SC=0x01, LL=...., LM=0x4f, LH=0xc2, DEV=...., CMD=0xb0 IN [Duration: 0.001431s] REPORT-IOCTL: Device=/dev/sdg Command=SMART READ ATTRIBUTE VALUES returned 0 ===== [SMART READ ATTRIBUTE VALUES] DATA START (BASE-16) ===== 000-015: 10 00 01 2f 00 64 64 00 00 00 00 00 00 00 05 32 |.../.dd........2| 016-031: 00 64 64 00 00 00 00 00 00 00 09 32 00 64 64 f8 |.dd........2.dd.| 032-047: 1d 00 00 00 00 00 0c 32 00 64 64 fc 09 00 00 00 |.......2.dd.....| 048-063: 00 00 ab 32 00 64 64 00 00 00 00 00 00 00 ac 32 |...2.dd........2| 064-079: 00 64 64 00 00 00 00 00 00 00 ad 32 00 5a 5a a0 |.dd........2.ZZ.| 080-095: 00 00 00 00 00 00 ae 32 00 64 64 d0 00 00 00 00 |.......2.dd.....| 096-111: 00 00 b4 33 00 00 00 41 00 00 00 00 00 00 b7 32 |...3...A.......2| 112-127: 00 64 64 b7 01 00 00 00 00 00 b8 32 00 64 64 00 |.dd........2.dd.| 128-143: 00 00 00 00 00 00 bb 32 00 64 64 00 00 00 00 00 |.......2.dd.....| 144-159: 00 00 c2 22 00 49 22 1b 00 00 00 42 00 00 c4 32 |...".I"....B...2| 160-175: 00 64 64 00 00 00 00 00 00 00 c5 32 00 64 64 00 |.dd........2.dd.| 176-191: 00 00 00 00 00 00 c6 30 00 64 64 00 00 00 00 00 |.......0.dd.....| 192-207: 00 00 c7 32 00 64 64 ff 01 00 00 00 00 00 ca 30 |...2.dd........0| 208-223: 00 5a 5a 0a 00 00 00 00 00 00 ce 0e 00 64 64 00 |.ZZ..........dd.| 224-239: 00 00 00 00 00 00 d2 32 00 64 64 00 00 00 00 00 |.......2.dd.....| 240-255: 00 00 f6 32 00 64 64 e1 f1 e0 4b 24 00 00 f7 32 |...2.dd...K$...2| 256-271: 00 64 64 b1 09 c9 55 00 00 00 f8 32 00 64 64 71 |.dd...U....2.ddq| 272-287: 7a c0 bf 00 00 00 00 00 00 00 00 00 00 00 00 00 |z...............| 288-303: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 304-319: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 320-335: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 336-351: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 352-367: 00 00 00 00 00 00 00 00 00 00 82 00 00 00 01 7b |...............{| 368-383: 03 00 01 00 02 1e 02 00 00 00 00 00 00 00 00 00 |................| 384-399: 00 00 4d 33 43 52 30 33 32 20 00 00 00 00 00 00 |..M3CR032 ......| 400-415: 53 4d 32 32 35 39 42 32 37 41 52 00 00 00 00 00 |SM2259B27AR.....| 416-431: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 432-447: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 448-463: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 464-479: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 480-495: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 496-511: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 |...............D| ===== [SMART READ ATTRIBUTE VALUES] DATA END (512 Bytes) =====
comment:5 by , 4 months ago
smartctl -r ioctl,2 -o off /dev/sdg... REPORT-IOCTL: Device=/dev/sdg Command=SMART AUTO OFFLINE InputParameter=0 Input: FR=0xdb, SC=0x00, LL=...., LM=0x4f, LH=0xc2, DEV=...., CMD=0xb0 [Duration: 0.000091s] REPORT-IOCTL: Device=/dev/sdg Command=SMART AUTO OFFLINE returned 0 SMART Automatic Offline Testing Disabled.
The device returns success. This suggests that device simply ignores this command.
Note that this S.M.A.R.T. DISABLE AUTOMATIC OFF-LINE (-o off
) command is an optional feature introduced by original SFF-8035i 2.0 Spec (1996). It was obsoleted in ATA/ATAPI-4 (1998). Modern devices may simply ignore this command silently. The same may apply to DISABLE OPERATION (-s off
) and DISABLE ATTRIBUTE AUTOSAVE (-S off
).
comment:6 by , 4 months ago
Milestone: | undecided |
---|---|
Resolution: | → invalid |
Status: | new → closed |
The device returns success but does not disable data collection. This is not a smartctl bug.
Please provide outputs of: