LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Check health of SSD in Raspberry Pi (https://www.linuxquestions.org/questions/linux-hardware-18/check-health-of-ssd-in-raspberry-pi-4175733954/)

mackowiakp 02-17-2024 01:25 AM

Check health of SSD in Raspberry Pi
 
I have Raspberry Pi nano with USB SSD drive connected.
Ubuntu 16.04.7 LTS.
How to check health od SSD drive?
smartmon already installed.

Code:

root@NanoPi-NEO:/home/pi/Pobrane# smartctl -a -d sat /dev/sda
smartctl 6.5 2016-01-24 r4214 [armv7l-linux-4.14.0] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:    Intel X18-M/X25-M/X25-V G2 SSDs
Device Model:    INTEL SSDSA2M080G2HP
Serial Number:    CVPO051202FJ080JGN
LU WWN Device Id: 5 001517 9594a1909
Firmware Version: 2CV102HA
User Capacity:    80,026,361,856 bytes [80,0 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Device is:        In smartctl database [for details use: -P show]
ATA Version is:  ATA/ATAPI-7 T13/1532D revision 1
SATA Version is:  SATA 2.6, 3.0 Gb/s
Local Time is:    Sat Feb 17 08:33:40 2024 CET

==> WARNING: This drive may require a firmware update to
fix possible drive hangs when reading SMART self-test log:
http://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=18363

SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART Status command failed: scsi error unsupported scsi opcode
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.

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:                (    1) seconds.
Offline data collection
capabilities:                    (0x75) SMART execute Offline immediate.
                                        No Auto Offline data collection support.
                                        Abort Offline collection upon new
                                        command.
                                        No 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:        (  1) minutes.
Extended self-test routine
recommended polling time:        (  5) minutes.
Conveyance self-test routine
recommended polling time:        (  1) minutes.

SMART Attributes Data Structure revision number: 5
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG    VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  3 Spin_Up_Time            0x0020  100  100  000    Old_age  Offline      -      0
  4 Start_Stop_Count        0x0030  100  100  000    Old_age  Offline      -      0
  5 Reallocated_Sector_Ct  0x0032  100  100  000    Old_age  Always      -      18
  9 Power_On_Hours          0x0032  100  100  000    Old_age  Always      -      59739
 12 Power_Cycle_Count      0x0032  100  100  000    Old_age  Always      -      4137
192 Unsafe_Shutdown_Count  0x0032  100  100  000    Old_age  Always      -      245
225 Host_Writes_32MiB      0x0030  200  200  000    Old_age  Offline      -      114952
226 Workld_Media_Wear_Indic 0x0032  100  100  000    Old_age  Always      -      18017
227 Workld_Host_Reads_Perc  0x0032  100  100  000    Old_age  Always      -      0
228 Workload_Minutes        0x0032  100  100  000    Old_age  Always      -      1898422871
232 Available_Reservd_Space 0x0033  099  099  010    Pre-fail  Always      -      0
233 Media_Wearout_Indicator 0x0032  097  097  000    Old_age  Always      -      0
184 End-to-End_Error        0x0033  100  100  099    Pre-fail  Always      -      0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Offline            Completed without error      00%        12        -

SMART Selective self-test log data structure revision number 0
Note: revision number not 1 implies that no selective self-test has ever been run
 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.

Any idea? Another tool?

beachboy2 02-17-2024 03:11 AM

mackowiakp,

Did you run the Long test?

Code:

sudo smartctl -t long /dev/sda
The following indicators should ideally be zero:

#5 Reallocated_Sector_Ct (yours is 18)

#197 Current_Pending_Sector

#200 Multi_Zone_Error_Rate

mackowiakp 02-17-2024 03:19 AM

OK. what is max numer of Reallocated_Sector_Ct ?

pan64 02-17-2024 03:22 AM

the first hit: https://www.partitionwizard.com/disk...tor-count.html

beachboy2 02-17-2024 06:26 AM

mackowiakp,

There is no "max number" for Reallocated_Sector_Ct.

You need to make sure that all your personal data on that drive is backed up elsewhere and then keep an eye on the Reallocated_Sector_Ct figure by SMART testing (Long test) periodically.

Your SSD will probably be okay for a while, but it is going to fail, so budget for a replacement SSD.


All times are GMT -5. The time now is 06:36 PM.