SSD 出現 SMART 錯誤,如何存取資料進行備份?

SSD 出現 SMART 錯誤,如何存取資料進行備份?

我在運行 Ubuntu 的英特爾 NUC 中安裝了相對較新的金士頓 1TB SSD。這是一個只有 2 個月歷史的新建築。今天啟動時,我看到一個 SMART 錯誤,建議我備份並更換設備。聯繫了金士頓,我有一個新的 SSD 正在路上。我設法使用用於安裝的 Live USB 啟動,以便獲得一些診斷資訊。

但是,我無法存取驅動器上的資料來備份它。

運行 smartctl 顯示驅動器有問題。我嘗試使用各種超級塊進行安裝,但看​​起來它們都已損壞。我只需要讓驅動器進入只讀狀態,這樣我就可以從中提取任何資料。

如何按照啟動期間 SMART 訊息的建議從此裝置取得備份?

ubuntu@ubuntu:~$ sudo smartctl /dev/nvme0n1p1 -x
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-26-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       KINGSTON SA2000M81000G
Serial Number:                      50026B7683CFB158
Firmware Version:                   S5Z42105
PCI Vendor/Subsystem ID:            0x2646
IEEE OUI Identifier:                0x0026b7
Controller ID:                      1
Number of Namespaces:               1
Namespace 1 Size/Capacity:          1,000,204,886,016 [1.00 TB]
Namespace 1 Utilization:            22,138,441,728 [22.1 GB]
Namespace 1 Formatted LBA Size:     512
Namespace 1 IEEE EUI-64:            0026b7 683cfb1585
Local Time is:                      Mon Aug 10 10:23:53 2020 UTC
Firmware Updates (0x14):            2 Slots, no Reset required
Optional Admin Commands (0x0017):   Security Format Frmw_DL Self_Test
Optional NVM Commands (0x005f):     Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat Timestmp
Maximum Data Transfer Size:         32 Pages
Warning  Comp. Temp. Threshold:     75 Celsius
Critical Comp. Temp. Threshold:     80 Celsius

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +     9.00W       -        -    0  0  0  0        0       0
 1 +     4.60W       -        -    1  1  1  1        0       0
 2 +     3.80W       -        -    2  2  2  2        0       0
 3 -   0.0450W       -        -    3  3  3  3     2000    2000
 4 -   0.0040W       -        -    4  4  4  4    15000   15000

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:                        25 Celsius
Available Spare:                    100%
Available Spare Threshold:          10%
Percentage Used:                    0%
Data Units Read:                    45,116 [23.0 GB]
Data Units Written:                 373,748 [191 GB]
Host Read Commands:                 852,421
Host Write Commands:                3,762,237
Controller Busy Time:               70
Power Cycles:                       45
Power On Hours:                     77
Unsafe Shutdowns:                   22
Media and Data Integrity Errors:    46,979
Error Information Log Entries:      31,278
Warning  Comp. Temperature Time:    0
Critical Comp. Temperature Time:    0

Error Information (NVMe Log 0x01, max 256 entries)
Num   ErrCount  SQId   CmdId  Status  PELoc          LBA  NSID    VS
  0      31278     1  0x0188  0x0280      -         2856     1     -
  1      31277     1  0x0188  0x0280      -         3112     1     -
  2      31276     1  0x0188  0x0280      -         3112     1     -
  3      31275     1  0x0188  0x0280      -         2856     1     -
  4      31274     1  0x0188  0x0280      -         2856     1     -
  5      31273     1  0x0188  0x0280      -         3112     1     -
  6      31272     1  0x0188  0x0280      -         3112     1     -
  7      31271     1  0x0188  0x0280      -         2856     1     -
  8      31270     1  0x0188  0x0280      -         2856     1     -
  9      31269     1  0x0188  0x0280      -         3112     1     -
 10      31268     1  0x0188  0x0280      -         3112     1     -
 11      31267     1  0x0188  0x0280      -         2856     1     -
 12      31266     1  0x0188  0x0280      -         2600     1     -
 13      31265     1  0x0188  0x0280      -         2600     1     -
 14      31264     1  0x0188  0x0280      -         2600     1     -
 15      31263     1  0x0188  0x0280      -         2600     1     -
... (240 entries not shown)

答案1

所以對於任何偶然發現這一點的人來說,我確實設法弄清楚了。您可以從 Ubuntu Live 磁碟(我使用安裝 USB)啟動,然後使用 ddrescue 將磁碟機複製到備份或替換磁碟上。我使用了一個外部 USB 驅動器並管理了一個完整的克隆,這讓我可以愉快地啟動。等待 SSD 更換,以便我可以克隆回來。

相關內容