SSD Read Write Error during install

Hi,
my PC has a Crucial MX500 SSD (with 1 TB capacity) bought less than one year ago. On this drive I have an openSUSE Linux 15.0 partition (EXT4 / ) and a Windows partition. Everything worked fine until a couple of months ago.

Recently openSUSE started to give me Read/Write errors while performing massive writing operations like Linux ISO images download, or Steam/GoG games install/update. When this happens, the entire Desktop Environment (KDE in my case) almost freeze completely, but the mouse still works, and I can go to the TTY with CTRL + ALT + F1.
Sadly from the TTY I’m unable to login, because it ask me a username without letting me type, so I think the entire system is in a strange status of non kernel panic, but unable to give it commands.

After an hard reset, the operating system works fine unless you perform big write operations like downloading the openSUSE ISO image file.

SMART parameters are ok and even the Crucial SSD Utility for Windows says everything is fine (Windows itself works fine).

Since I thought it was an openSUSE failure, i tried to re-install it, taking the opportunity to jump to version 15.1, but happened the same thing almost at the end of the installing procedure:

Subprocess failed. Error: RPM non riuscito: error: rpmdb: fsync
error: db4 error(30) from db->sync: Read-only file system
error: rpmdb: write: 0x1ecab18, 4096: Read-only file system
error: rpmdb: Name: write failed for page 2
error: rpmdb: Name: unable to flush page: 2
...]
error: db4 error (30) from dbenv->close: Read-only file system

Same problem happens with KUbuntu, so I think it should be an hardware problem, but Windows is still working correctly and the Crucial SSD Tool says everything is fine.

Does someone have an idea about that? Does it could be a filesystem (EXT4) problem?

Thanks in advance,

Best Regards,
hawake

run fschk to check for file system problems. Note to fix the partition has to be off line ie not mounted.

Hi,
since the installation process has been interrupted, I’m launching commands from an Elementary OS Linux box I have on a second (mechanical) hard disk. This is the output:

$ sudo fsck /dev/sdb2
fsck da util-linux 2.31.1
e2fsck 1.44.1 (24-Mar-2018)
/dev/sdb2: ripristino del journal
Setting free inodes count to 32222962 (was 32251893)
Setting free bloccos count to 126172418 (was 126685055)
/dev/sdb2: clean, 28942/32251904 files, 2817972/128990390 blocks
$

So, now should i try again to install oS 15.1?

Thanks,

Best Regards,
hawake

Hi
Also check smartctl output on the disk;


su -
smartctl -a /dev/sdb

Hi,
this is the output of smartctl:

$ sudo smartctl -a /dev/sdb
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-88-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     CT1000MX500SSD1
Serial Number:    1910E1EFD557
LU WWN Device Id: 5 00a075 1e1efd557
Firmware Version: M3CR023
User Capacity:    1.000.204.886.016 bytes [1,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes 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:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA >3.2 (0x1ff), 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Sun Mar 15 16:56:46 2020 CET
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:  (0x82)    Offline data collection activity
                    was completed without error.
                    Auto Offline Data Collection: Enabled.
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:              (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:      (  30) 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: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   100   100   000    Pre-fail  Always       -       0
  5 Reallocated_Sector_Ct   0x0032   100   100   010    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       736
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       274
171 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
172 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
173 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       7
174 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
180 Unused_Rsvd_Blk_Cnt_Tot 0x0033   000   000   000    Pre-fail  Always       -       47
183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       8
184 End-to-End_Error        0x0032   100   100   000    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
194 Temperature_Celsius     0x0022   067   034   000    Old_age   Always       -       33 (Min/Max 0/66)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   100   100   000    Old_age   Always       -       1014
202 Unknown_SSD_Attribute   0x0030   100   100   001    Old_age   Offline      -       0
206 Unknown_SSD_Attribute   0x000e   100   100   000    Old_age   Always       -       0
210 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
246 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       4558688226
247 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       74569057
248 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       74202851

Read SMART Error Log failed: scsi error badly formed scsi parameters

Read SMART Self-test Log failed: scsi error badly formed scsi parameters

Read SMART Selective Self-test Log failed: scsi error badly formed scsi parameters

$

.

Thank you again,

Bye
hawake

Hi
I have a Crucial Crucial_CT120M500SSD1, I note your missing attributes are as follows;


171 Program_Fail_Count
172 Erase_Fail_Count
173 Ave_Block-Erase_Count
174 Unexpect_Power_Loss_Ct

202 Percent_Lifetime_Remain
206 Write_Error_Rate
210 Success_RAIN_Recov_Cnt
246 Total_LBAs_Written
247 Host_Program_Page_Count
248 FTL_Program_Page_Count

I see the following which may be of concern given the low hours on the device (736Hrs), you might wish to contact Crucial support and ask them?


183 Runtime_Bad_Block = 8
199 UDMA_CRC_Error_Count = 1014

On my device I have 23990Hrs and both are zero.

Ok, thank you very much for your help, I’ll try asking directly to Crucial.

Best Regards,
hawake

Hi,
Since the Crucial Tool says that the SSD is healty, Support Team suggested me to try to use it in AHCI mode instead of IDE mode.

@malcolmlewis: does your SSD is configured in AHCI mode? If yes are there problems related to using Linux with this kind of BIOS configuration?

Thanks again,

Best Regards,
hawake

Hi
I run all mine in AHCI mode and no issues whatsoever :slight_smile: