無法將 ddrescue(d) 影像寫回高清,最終變成空白

無法將 ddrescue(d) 影像寫回高清,最終變成空白

我有一個在 Linux 上使用 ddrescue 建立的故障硬碟的映像檔。硬碟是750GB,如果沒記錯的話,只能存大約30MB。我確實還有其他一些有問題的硬碟,但我不記得這個是屬於我的 Windows 還是 Linux 電腦。

我正在嘗試將圖像寫回 2TB HD。無論我將該硬碟格式化為 NTFS 還是 EXT 並將映像寫入新的硬碟,一旦完成,它就會再次顯示為未格式化且空白。我讀到我們應該在寫回圖像之前使用圖像糾錯工具。所以我嘗試使用fsck和ntfsfix,但沒有一個可以識別圖像並糾正它。

如果 ddrescue 能夠從故障的 HD 中保存如此多的數據,為什麼工具不能糾正錯誤並且不能將其寫回?我成功地寫回了另一塊故障的 160GB 硬碟,所以我不知道為什麼這個 750GB 硬碟無法運作。

編輯,寫回我使用的圖像:

sudo ddrescue -f seagate750gb.img /dev/sdb Restore.log

頭-n 16 seagate750gb.log

# Rescue Logfile. Created by GNU ddrescue version 1.17
# Command line: ddrescue -d -r5 -R /dev/sdb seagate750gb.img seagate750gb.log
# current_pos  current_status
0x89B7F4A00     +
#      pos        size  status
0x00000000  0x89B7F4800  +
0x89B7F4800  0x00000200  -
0x89B7F4A00  0x010AA200  +
0x89C89EC00  0x00000200  -
0x89C89EE00  0x21775200  +
0x8BE014000  0x00000200  -
0x8BE014200  0x000DA400  +
0x8BE0EE600  0x00000200  -
0x8BE0EE800  0x00369600  +
0x8BE457E00  0x00000200  -
0x8BE458000  0x002B6000  +

檔案 Seagate750gb.img

seagate750gb.img: x86 boot sector

gdisk -l seagate750gb.img

GPT fdisk (gdisk) version 0.8.8

Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: not present


***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. 
***************************************************************

Disk seagate750gb.img: 1465149168 sectors, 698.6 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 2891CCD9-92FB-4380-AB03-801E0E4F90CC
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1465149134
Partitions will be aligned on 2048-sector boundaries
Total free space is 1465149101 sectors (698.6 GiB)

Number  Start (sector)    End (sector)  Size       Code  Name

sudo gdisk -l /dev/sdb

(這是我的 2TB HD,在圖像寫入之後)

GPT fdisk (gdisk) version 0.8.8

Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: not present


***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. 
***************************************************************

Disk /dev/sdb: 3907029168 sectors, 1.8 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 59784077-576E-4CC1-918D-773D10916B46
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 3907029134
Partitions will be aligned on 2048-sector boundaries
Total free space is 3907029101 sectors (1.8 TiB)

Number  Start (sector)    End (sector)  Size       Code  Name

答案1

在猜測之前,請檢查以下幾點:

  • 確保磁碟映像確實有資料。嘗試類似的方法:

    lzop < disk.img | wc -c - disk.img
    

    這將需要幾分鐘的時間來計算圖像和稍微壓縮的lzop圖像流中的字元。如果影像全為零,lzop數字會相對較小。

    如果lzop數量至少為10%原始影像大小,有一些數據磁碟映像

  • 如果似乎有數據,請查看一些標準實用程式對此的說明:

    file disk.img
    

    ……應該告訴那裡有什麼。如果是分區表,請嘗試:

    gpart -v disk.img
    

相關內容