断电后 SSD 处于只读模式

断电后 SSD 处于只读模式

我有一个SSD NVME 2 TB整个社区停电后,我的 SSD 出现问题。它有 2 个分区:NTFS(390.62 GiB)和 BTRFS(1.44 TiB)。我已检查 Windows 和 Linux 中的系统,一些文件已恢复,一些已修复。已检查 BTRFS,未检测到任何错误。

1 天后显示输入/输出错误。无法长时间挂载:挂载后数据消失,需要卸载并重新挂载。无法删除分区或格式化。它处于只读模式

来自 smartctl 的信息似乎不好。

$ smartctl -a /dev/nvme0n1
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.1.30-1-lts] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       Netac NVMe SSD 2TB
Serial Number:                      AA8226200343
Firmware Version:                   2.1.0.1S
PCI Vendor ID:                      0x1f40
PCI Vendor Subsystem ID:            0x5216
IEEE OUI Identifier:                0x123456
Total NVM Capacity:                 2,000,398,934,016 [2.00 TB]
Unallocated NVM Capacity:           0
Controller ID:                      0
NVMe Version:                       1.4
Number of Namespaces:               1
Namespace 1 Size/Capacity:          2,000,398,934,016 [2.00 TB]
Namespace 1 Formatted LBA Size:     512
Local Time is:                      Fri Aug  4 19:03:41 2023 UTC
Firmware Updates (0x0e):            7 Slots
Optional Admin Commands (0x0017):   Security Format Frmw_DL Self_Test
Optional NVM Commands (0x0014):     DS_Mngmt Sav/Sel_Feat
Log Page Attributes (0x02):         Cmd_Eff_Lg
Maximum Data Transfer Size:         32 Pages
Warning  Comp. Temp. Threshold:     110 Celsius
Critical Comp. Temp. Threshold:     255 Celsius

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +     3.00W       -        -    0  0  0  0        5       5
 1 +     2.80W       -        -    1  1  1  1       50     100
 2 +     2.70W       -        -    2  2  2  2       50     200
 3 -   0.0500W       -        -    3  3  3  3     2000    5000
 4 -   0.0030W       -        -    4  4  4  4     2000   25000

Supported LBA Sizes (NSID 0x1)
Id Fmt  Data  Metadt  Rel_Perf
 0 +     512       0         3

=== 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:                        54 Celsius
Available Spare:                    15%
Available Spare Threshold:          10%
Percentage Used:                    1%
Data Units Read:                    50,930,466 [26.0 TB]
Data Units Written:                 27,868,293 [14.2 TB]
Host Read Commands:                 269,580,731
Host Write Commands:                199,129,081
Controller Busy Time:               25
Power Cycles:                       564
Power On Hours:                     2,161
Unsafe Shutdowns:                   9
Media and Data Integrity Errors:    511
Error Information Log Entries:      0
Warning  Comp. Temperature Time:    0
Critical Comp. Temperature Time:    0
Temperature Sensor 1:               55 Celsius
Temperature Sensor 2:               0 Celsius
Temperature Sensor 3:               43 Celsius

Error Information (NVMe Log 0x01, 16 of 64 entries)
No Errors Logged

free(): invalid pointer
Aborted (core dumped)

有可能恢复这个 SSD 吗?

答案1

您的磁盘已严重损坏。我参考了 smartctl 输出中的以下几行:

SMART overall-health self-assessment test result: FAILED!
- media has been placed in read only mode
[...]
free(): invalid pointer
Aborted (core dumped)

您的磁盘发生故障,固件作为最后的努力将其置于只读状态。磁盘故障非常严重,导致 smartctl 崩溃(这种情况非常罕见)。

保存磁盘上未备份的所有数据。磁盘发生故障之前的备份可能比您可以从磁盘复制的数据更可靠。

然后用新磁盘替换该磁盘。

相关内容