Hello folks,
I am having trouble saving a moderately old nvme SSD drive - I was previously using this as a backup disk on a desktop PC, and later as a swap drive. Around the time I started using it for swap, it suddenly stopped working, and would intermittently be detected by the OS, if at all.
I took off the SSD’s heat sink, popped it into a USB adapter hub, and have started the process of trying to figure out what’s wrong. When plugged into my PC via the USB adapter, it is recognized immediately every time by Gnome Disks and Gparted, with full information about the drive being available. However, I can’t mount the old partition on it, nor can I alter the drive in any way. I can’t format it either.
I ran Smartmontools on the drive and received the following output:
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Number: PLEXTOR PX-128M8SeG
Serial Number: P02721136456
Firmware Version: 1.00
PCI Vendor ID: 0x14a4
PCI Vendor Subsystem ID: 0x1b4b
IEEE OUI Identifier: 0x002303
Total NVM Capacity: 128,035,676,160 [128 GB]
Unallocated NVM Capacity: 0
Controller ID: 1
NVMe Version: 1.2
Number of Namespaces: 1
Namespace 1 Size/Capacity: 128,035,676,160 [128 GB]
Namespace 1 Formatted LBA Size: 512
Namespace 1 IEEE EUI-64: 002303 563001884a
Local Time is: Thu Nov 3 18:15:30 2022 +04
Firmware Updates (0x14): 2 Slots, no Reset required
Optional Admin Commands (0x001f): Security Format Frmw_DL NS_Mngmt Self_Test
Optional NVM Commands (0x001f): Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat
Log Page Attributes (0x03): S/H_per_NS Cmd_Eff_Lg
Maximum Data Transfer Size: 32 Pages
Warning Comp. Temp. Threshold: 85 Celsius
Critical Comp. Temp. Threshold: 95 Celsius
Supported Power States
St Op Max Active Idle RL RT WL WT Ent_Lat Ex_Lat
0 + 8.00W - - 0 0 0 0 0 0
1 + 4.50W - - 1 1 1 1 5 5
2 + 3.00W - - 2 2 2 2 5 5
3 - 0.1000W - - 3 3 3 3 1000 8000
4 - 0.0100W - - 4 4 4 4 5000 50000
Supported LBA Sizes (NSID 0x1)
Id Fmt Data Metadt Rel_Perf
0 - 512 0 0
=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: FAILED!
- media has been placed in read only mode
SMART/Health Information (NVMe Log 0x02)
**Critical Warning: 0x08**
Temperature: 31 Celsius
Available Spare: 100%
Available Spare Threshold: 0%
Percentage Used: 8%
Data Units Read: 95,087,893 [48.6 TB]
Data Units Written: 23,141,499 [11.8 TB]
Host Read Commands: 1,794,339,868
Host Write Commands: 140,166,770
Controller Busy Time: 64,648
Power Cycles: 316
Power On Hours: 20,550
Unsafe Shutdowns: 137
Media and Data Integrity Errors: 0
Error Information Log Entries: 0
Warning Comp. Temperature Time: 0
Critical Comp. Temperature Time: 0
Temperature Sensor 1: 31 Celsius
Warning: NVMe Get Log truncated to 0x200 bytes, 0x200 bytes zero filled
Error Information (NVMe Log 0x01, 16 of 64 entries)
No Errors Logged
What I noticed first is that the drive is reporting a critical error: 0x08 - drive LOCKED IN READ ONLY MODE.
I then used a Windows machine’s Diskpart to try and force it out of read-only mode, which didn’t work. Taking it back to Linux, I tried wiping the drive with sudo privileges from terminal (dd, cat, mkfs, fdisk, badblocks -wsv, and more). Absolutely nothing works as it seems the drive is rejecting all attempts to write to it. I tried doing a hardware level ATA reset and that also failed.
The drive is not very old, hasn’t been used much, and SMART reports NO errors on the drive. Does anyone have recommendations on how to force-unlock this drive and salvage it? No critical data is on the drive but I’m trying to avoid throwing it away just because the controller freaked out due to a previous power loss.
Please advise, thank you!