r/linuxquestions • • 19d ago

Do I need to replace my SSD?

Twice recently I had to manually fsck the vg-root of mapper (let me know if that’s actually how to refer to it) a few days apart after my drive went into read only mode while I was using it. The first time I fixed it by running fsck on the SSD partition, then the second time on the mapper itself. No issues since after several days of use.
I’m running Debian 13 with a more recent kernel, but otherwise everything is the stable release. I encountered this error while trying to boot into the default kernel attached to the stable release.
Did I fix the issue or is the SSD in need of replacement? It’s a SATA I bought in 2020. Really hoping not given the prices of SSDs recently.

Hardware Details:

CPU – AMD Ryzen 7 3700X 8-Core

GPU – NVIDIA 2080

SSD in question - Team Group GX2 2.5" 1TB SATA III

Other SSD - Crucial m.1 NVMe

MB – Aurous x570 Pro Wifi

RAM – G.SKILL Ripjaws V Series 64GB (4 x 16GB)

Here’s the output:

Inode 12583906 extent tree (at level 1) could be narrower. IGNORED.
debian: Inode 12583908 extent tree (at level 1) could be narrower. IGNORED.
debian: Inode 12583909 extent tree (at level 1) could be narrower. IGNORED.
debian: Inode 12584376 extent tree (at level 1) could be narrower. IGNORED.
debian: Inode 12585293 extent tree (at level 1) could be narrower. IGNORED.
debian: Inode 12585456 extent tree (at level 1) could be narrower. IGNORED.
Debian: Inode 28321045 extent tree (at level 1) could be narrower. IGNORED.
Inode 28588394 extent tree (at level 1) could be narrower. IGNORED.
Inodes that were part of a corrupted orphan linked list found. debian: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
fsck exited with status code 4 done.
Failure: File system check of the root filesystem failed
The root filesystem on /dev/mapper/debian--vg-root requires a manual fsck
BusyBox v1.37.0 (Debian 1:1.37.0-6+b7) built-in shell (ash)
Enter 'help' for a list of built-in commands. (initramfs) fsck -f/dev/mapper/debian--vg-root fsck from util-linux 2,41.5 e2fsck 1.47.2 (1-Jan-2025)
Superblock last mount time is in the future.
(by less than a day, probably due to the hardware clock being incorrectly set)
Pass 1: Checking inodes, blocks, and sizes
Inode 12583906 extent tree (at level 1) could be narrower, Inode 12583908 extent tree (at level 1) could be narrower. optimize<y›? yes

(several rows of the last optimization option but for different Inodes), then:

Inodes that were part of a corrupted orphan linked list found. Fix<y>? yes

(This last one for sure occurred again the second time around).

The second time around I had an fsck error code 2 on the SSD but fixed it by going straight to fixing vg-root.

Thanks in advance!

3 Upvotes

9 comments sorted by

2

u/_Lost-In-The-Weeds_ 19d ago

Possibly, I would pull the smart data and see if its generating errors. 

https://linuxconfig.org/how-to-check-an-hard-drive-health-from-the-command-line-using-smartctl

1

u/CreatedInQuarantine 19d ago

Appreciate the guide!

Here's what I found notable and based on what it suggested to check in the guide:

SMART overall-health self-assessment test result: PASSED

The "RAW_VALUE" of Reallocated_Sector_Ct" and "Current_Pending_Sector" are both 0.

SMART Error Log Version: 1

Warning: ATA error count 0 inconsistent with error log pointer 2

Error 0 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

-- -- -- -- -- -- --

00 00 00 00 00 00 00

Commands leading to the command that caused the error were:

CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name

-- -- -- -- -- -- -- -- ---------------- --------------------

e5 00 00 00 00 00 00 08 00:00:00.000 CHECK POWER MODE

b0 da 00 00 4f c2 00 08 00:00:00.000 SMART RETURN STATUS

b0 d0 01 00 4f c2 00 08 00:00:00.000 SMART READ DATA

b0 d5 01 06 4f c2 00 08 00:00:00.000 SMART READ LOG

b0 d5 01 01 4f c2 00 08 00:00:00.000 SMART READ LOG

Error -4 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

-- -- -- -- -- -- --

00 00 00 00 00 00 00

Commands leading to the command that caused the error were:

CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name

-- -- -- -- -- -- -- -- ---------------- --------------------

b0 d0 01 00 4f c2 00 08 00:00:00.000 SMART READ DATA

b0 d1 01 01 4f c2 00 08 00:00:00.000 SMART READ ATTRIBUTE THRESHOLDS [OBS-4]

b0 da 00 00 4f c2 00 08 00:00:00.000 SMART RETURN STATUS

b0 d5 01 00 4f c2 00 08 00:00:00.000 SMART READ LOG

b0 d5 01 01 4f c2 00 08 00:00:00.000 SMART READ LOG

Short and long tests completed without error.
Seems like it is fine, but thought I'd run it by someone who knows better.

1

u/_Lost-In-The-Weeds_ 19d ago

That is quite unfriendly smart data. what command was issued?

what I was expecting:

dad@RatRod:~$ sudo smartctl -a /dev/sdc
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.12.116+deb13-amd64] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Samsung based SSDs
Device Model:     Samsung SSD 870 EVO 2TB
Serial Number:    S753NS0W903657Y
LU WWN Device Id: 5 002538 f3390144b
Firmware Version: SVT03B6Q
User Capacity:    2,000,398,934,016 bytes [2.00 TB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      2.5 inches
TRIM Command:     Available, deterministic, zeroed
Device is:        In smartctl database 7.3/5528
ATA Version is:   ACS-4 T13/BSR INCITS 529 revision 5
SATA Version is:  SATA 3.3, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Mon Nov  9 13:53:33 2026 CST
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: 		(    0) seconds.
Offline data collection
capabilities: 			 (0x53) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					No Offline surface scan supported.
					Self-test supported.
					No 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: 	 ( 160) minutes.
SCT capabilities: 	       (0x003d)	SCT Status supported.
					SCT Error Recovery Control supported.
					SCT Feature Control supported.
					SCT Data Table supported.

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
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0032   097   097   000    Old_age   Always       -       12754
 12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       737
177 Wear_Leveling_Count     0x0013   098   098   000    Pre-fail  Always       -       19
179 Used_Rsvd_Blk_Cnt_Tot   0x0013   100   100   010    Pre-fail  Always       -       0
181 Program_Fail_Cnt_Total  0x0032   100   100   010    Old_age   Always       -       0
182 Erase_Fail_Count_Total  0x0032   100   100   010    Old_age   Always       -       0
183 Runtime_Bad_Block       0x0013   100   100   010    Pre-fail  Always       -       0
187 Uncorrectable_Error_Cnt 0x0032   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0032   074   043   000    Old_age   Always       -       26
195 ECC_Error_Rate          0x001a   200   200   000    Old_age   Always       -       0
199 CRC_Error_Count         0x003e   100   100   000    Old_age   Always       -       0
235 POR_Recovery_Count      0x0012   099   099   000    Old_age   Always       -       163
241 Total_LBAs_Written      0x0032   099   099   000    Old_age   Always       -       44298127495
252 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       51

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  Short offline       Completed without error       00%     12754         -
# 2  Short offline       Completed without error       00%      6021         -

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
  256        0    65535  Read_scanning was never started
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.

The above only provides legacy SMART information - try 'smartctl -x' for more

1

u/CreatedInQuarantine 19d ago

I was trying to pull out the highlights of running the code you just used: "sudo smartctl -a /dev/sdb"

Don't know how to post in the kind of grey box you have for your code, so here's a copy and paste.

Here's the output of that command, minus serial number:

smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.17.13+deb13-amd64] (local build)

Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===

Device Model: TEAM T253X2001T

Serial Number: xxxxxxxxxxxxxxxxxxx

Firmware Version: S1024A0

User Capacity: 1,024,209,543,168 bytes [1.02 TB]

Sector Size: 512 bytes logical/physical

Rotation Rate: Solid State Device

Form Factor: 2.5 inches

TRIM Command: Available, deterministic, zeroed

Device is: Not in smartctl database 7.3/5528

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: Mon Nov 9 13:55:22 2026 MST

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: (0x02) Offline data collection activity

was completed without error.

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 - 12666

12 Power_Cycle_Count 0x0032 100 100 050 Old_age Always - 6789

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 - 14

164 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 170845

165 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 252

166 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 10

167 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 59

168 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 5050

169 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 99

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 - 557

194 Temperature_Celsius 0x0022 100 100 050 Old_age Always - 0

195 Hardware_ECC_Recovered 0x0032 100 100 050 Old_age Always - 0

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 - 406031

242 Total_LBAs_Read 0x0030 100 100 050 Old_age Offline - 488350

245 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 521950

SMART Error Log Version: 1

Warning: ATA error count 0 inconsistent with error log pointer 2

ATA Error Count: 0

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 0 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

-- -- -- -- -- -- --

00 00 00 00 00 00 00

Commands leading to the command that caused the error were:

CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name

-- -- -- -- -- -- -- -- ---------------- --------------------

e5 00 00 00 00 00 00 08 00:00:00.000 CHECK POWER MODE

b0 da 00 00 4f c2 00 08 00:00:00.000 SMART RETURN STATUS

b0 d0 01 00 4f c2 00 08 00:00:00.000 SMART READ DATA

b0 d5 01 06 4f c2 00 08 00:00:00.000 SMART READ LOG

b0 d5 01 01 4f c2 00 08 00:00:00.000 SMART READ LOG

Error -4 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

-- -- -- -- -- -- --

00 00 00 00 00 00 00

Commands leading to the command that caused the error were:

CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name

-- -- -- -- -- -- -- -- ---------------- --------------------

b0 d0 01 00 4f c2 00 08 00:00:00.000 SMART READ DATA

b0 d1 01 01 4f c2 00 08 00:00:00.000 SMART READ ATTRIBUTE THRESHOLDS [OBS-4]

b0 da 00 00 4f c2 00 08 00:00:00.000 SMART RETURN STATUS

b0 d5 01 00 4f c2 00 08 00:00:00.000 SMART READ LOG

b0 d5 01 01 4f c2 00 08 00:00:00.000 SMART READ LOG

SMART Self-test log structure revision number 1

Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error

# 1 Extended offline Completed without error 00% 12664 -

# 2 Short offline Completed without error 00% 12663 -

Selective Self-tests/Logging not supported

The above only provides legacy SMART information - try 'smartctl -x' for more

1

u/_Lost-In-The-Weeds_ 19d ago

That last section is not one I have seen before, possibly because your ssd in not in smartctrls database it is putting out data smartctrl does not know how to format. 

For a code block switch to markdown mode and start and stop, with 3x back ticks, back ticks are on the tilde key near the ESC key

So 

'''

Code        Block

'''

Code        Block

This first one I subbed in single quotes for back ticks 

1

u/CreatedInQuarantine 19d ago

Huh. Is there another SMART-esque tool out there for checking SSD health? Not sure how else to check it out.

Thanks again for another guide!

1

u/_Lost-In-The-Weeds_ 19d ago

Gnome disks has smart data, but it may just be a gui for smartctl? I do not know.

Are you using a desktop? if so which? there may be something there also.

I am sure there are others, but those are the two I know.

1

u/_Lost-In-The-Weeds_ 19d ago

Oh and a destructive test badblocks, different style, it does not look at smart data, it actually writes to the entire disk and then reads it back in 4 different patterns.

https://wiki.archlinux.org/title/Badblocks

Its already installed in Debian.

1

u/es20490446e Develops Zenned OS 19d ago

Use gsmartcontrol.