ตรวจสอบอายุการใช้งาน ssd ยังไงคะ บน os ubuntu 16.04

สอบถามเรื่องทั่วไป กับ การใช้คอมพิวเตอร์โดยทั่วไป แนะนำข่าวสารไวรัสคอม เทคนิคเล็กน้อยๆ กับ การใช้ คอมพิวเตอร์ ให้มีประสิทธิภาพมากที่สุด ฝากคำถามไว้ได้นะค่ะ

Moderator: mindphp, ผู้ดูแลกระดาน

ภาพประจำตัวสมาชิก
MBMoo
PHP VIP Members
PHP VIP Members
โพสต์: 25342
ลงทะเบียนเมื่อ: 04/06/2020 10:05 am

ตรวจสอบอายุการใช้งาน ssd ยังไงคะ บน os ubuntu 16.04

โพสต์ที่ยังไม่ได้อ่าน โดย MBMoo »

ตรวจสอบอายุการใช้งาน ssd ยังไงคะบน os ubuntu 16.04

ตัวกล่อง ssd ที่ซื้อมาก็ไม่มีบอก

TBW (Terabytes Written) สำหรับตรวจสอบอายุของ SSD คืออะไร ?

จากลิ้งด้านบนเหมือนจะตรวจสอบจาก tbw แต่ลองใช้คำสั่ง smartctl ดูข้อมูลในเครื่องแล้วไม่มีอะไรเกี่ยวกับ tbw เลย

ในเครื่องจะติตตั้ง ssd ทั้งหมด 2 ตัว

โค้ด: เลือกทั้งหมด

root@com015-Inspiron-5570:/home/com015# sudo smartctl -i /dev/sda1
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.15.0-142-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     Lexar SSD NS100 512GB
Serial Number:    MMV052Q0119470S302
LU WWN Device Id: 5 3a5a27 0520227f8
Firmware Version: SN11035
User Capacity:    512,110,190,592 bytes [512 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      2.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   Unknown(0x0bf8) (minor revision not indicated)
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Mon Apr 17 16:27:50 2023 +07
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

root@com015-Inspiron-5570:/home/com015# sudo smartctl -i /dev/sdb1
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.15.0-142-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     TOSHIBA KSG60ZMV256G M.2 2280 256GB
Serial Number:    682F70F8F5WP
LU WWN Device Id: 5 00080d 8001d8626
Firmware Version: ABDA4102
User Capacity:    256,060,514,304 bytes [256 GB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    Solid State Device
Form Factor:      M.2
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   Unknown(0x0ff8) (minor revision not indicated)
SATA Version is:  SATA >3.2 (0x1ff), 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Mon Apr 17 16:29:01 2023 +07
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

มีคำสั่งอื่นแนะนำไหมคะ
ภาพประจำตัวสมาชิก
eange08
PHP VIP Members
PHP VIP Members
โพสต์: 16015
ลงทะเบียนเมื่อ: 22/12/2020 10:09 am

Re: ตรวจสอบอายุการใช้งาน ssd ยังไงคะ บน os ubuntu 16.04

โพสต์ที่ยังไม่ได้อ่าน โดย eange08 »

ลองเปลี่ยนจาก i เป็น all ดูค่ะ
viewtopic.php?p=235712#p235712

โค้ด: เลือกทั้งหมด

sudo smartctl --all /dev/sda
ภาพประจำตัวสมาชิก
MBMoo
PHP VIP Members
PHP VIP Members
โพสต์: 25342
ลงทะเบียนเมื่อ: 04/06/2020 10:05 am

Re: ตรวจสอบอายุการใช้งาน ssd ยังไงคะ บน os ubuntu 16.04

โพสต์ที่ยังไม่ได้อ่าน โดย MBMoo »

สามารถใช้ smartctl ทดสอบสุขภาพ ssd ได้

โค้ด: เลือกทั้งหมด

sudo smartctl -d ata -H /dev/sdb1

โค้ด: เลือกทั้งหมด

root@com015-Inspiron-5570:/home/com015# sudo smartctl -d ata -H /dev/sdb1
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.15.0-142-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

ภาพประจำตัวสมาชิก
MBMoo
PHP VIP Members
PHP VIP Members
โพสต์: 25342
ลงทะเบียนเมื่อ: 04/06/2020 10:05 am

Re: ตรวจสอบอายุการใช้งาน ssd ยังไงคะ บน os ubuntu 16.04

โพสต์ที่ยังไม่ได้อ่าน โดย MBMoo »

eange08 เขียน: 17/04/2023 4:46 pm ลองเปลี่ยนจาก i เป็น all ดูค่ะ
viewtopic.php?p=235712#p235712

โค้ด: เลือกทั้งหมด

sudo smartctl --all /dev/sda
ทดสอบแล้วมีขึ้นมาหมดเลย

แต่ไม่แน่ใจว่าคือตัวไหรค่ะ

โค้ด: เลือกทั้งหมด

root@com015-Inspiron-5570:/home/com015# sudo smartctl --all /dev/sda
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.15.0-142-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     Lexar SSD NS100 512GB
Serial Number:    MMV052Q0119470S302
LU WWN Device Id: 5 3a5a27 0520227f8
Firmware Version: SN11035
User Capacity:    512,110,190,592 bytes [512 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      2.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   Unknown(0x0bf8) (minor revision not indicated)
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Mon Apr 17 16:47:00 2023 +07
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: 		(   33) 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: 	 (  85) minutes.
Conveyance self-test routine
recommended polling time: 	 (   2) minutes.
SCT capabilities: 	       (0x0031)	SCT Status supported.
					SCT Feature Control supported.
					SCT Data Table supported.

SMART Attributes Data Structure revision number: 20
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  5 Reallocated_Sector_Ct   0x0013   100   100   010    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0012   100   100   000    Old_age   Always       -       81
 12 Power_Cycle_Count       0x0012   100   100   000    Old_age   Always       -       30
164 Unknown_Attribute       0x0000   100   100   000    Old_age   Offline      -       12885164035
165 Unknown_Attribute       0x0000   100   100   000    Old_age   Offline      -       4
166 Unknown_Attribute       0x0000   100   100   000    Old_age   Offline      -       3
167 Unknown_Attribute       0x0022   100   100   000    Old_age   Always       -       3
194 Temperature_Celsius     0x0022   037   037   000    Old_age   Always       -       37 (Min/Max 19/40)
199 UDMA_CRC_Error_Count    0x0012   100   100   000    Old_age   Always       -       0
241 Total_LBAs_Written      0x0032   100   100   000    Old_age   Always       -       292
242 Total_LBAs_Read         0x0032   100   100   000    Old_age   Always       -       130

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.
ภาพประจำตัวสมาชิก
eange08
PHP VIP Members
PHP VIP Members
โพสต์: 16015
ลงทะเบียนเมื่อ: 22/12/2020 10:09 am

Re: ตรวจสอบอายุการใช้งาน ssd ยังไงคะ บน os ubuntu 16.04

โพสต์ที่ยังไม่ได้อ่าน โดย eange08 »

ค่า Power_On_Hours จะเป็นชม. ที่ใช้ไป ให้เอาเลขในคอลลัม RAW_VALUE เอามาหาร 24 ก็จะได้จำนวนวันมาอีกทีค่ะ :-o

โค้ด: เลือกทั้งหมด

ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  9 Power_On_Hours          0x0012   100   100   000    Old_age   Always       -       81
ตอบกลับโพส
  • Similar Topics
    ตอบกลับ
    แสดง
    โพสต์ล่าสุด

ผู้ใช้งานขณะนี้

สมาชิกกำลังดูบอร์ดนี้: facebook.com [Crawler] และบุคลทั่วไป 36