Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-17-2024, 01:25 AM
|
#1
|
Member
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 376
Rep:
|
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?
Last edited by mackowiakp; 02-17-2024 at 01:34 AM.
|
|
|
02-17-2024, 03:11 AM
|
#2
|
Senior Member
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 22 MATE, Peppermint OS-Devuan, EndeavourOS
Posts: 4,312
|
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
|
|
1 members found this post helpful.
|
02-17-2024, 03:19 AM
|
#3
|
Member
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 376
Original Poster
Rep:
|
OK. what is max numer of Reallocated_Sector_Ct ?
|
|
|
02-17-2024, 03:22 AM
|
#4
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,987
|
|
|
1 members found this post helpful.
|
02-17-2024, 06:26 AM
|
#5
|
Senior Member
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 22 MATE, Peppermint OS-Devuan, EndeavourOS
Posts: 4,312
|
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.
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 12:50 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|