無法安裝 ddrescue 所建立的映像

無法安裝 ddrescue 所建立的映像

我有一個 500GB 的磁碟,我正在嘗試使用GNU ddrescue.

這是fdisk500GB 磁碟的:

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 33553920 bytes
Disk identifier: 0xeea5da13

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1              63   976768064   488384001    7  HPFS/NTFS/exFAT

ddrescue完成了複製運行並正在執行以下操作:

GNU ddrescue 1.21
Press Ctrl-C to interrupt
Initial status (read from mapfile)
  rescued:  481966 MB,     errsize:   70382 kB,  errors:     121

Current status
     ipos:  482180 MB, non-trimmed:        0 B,  current rate:    262 kB/s
     opos:  482180 MB, non-scraped:   17927 MB,  average rate:    614 kB/s
non-tried:        0 B,     errsize:   70382 kB,      run time:      3m 54s
  rescued:  482110 MB,      errors:      121,  remaining time:  1d 10h 58m
percent rescued:  96.40%      time since last successful read:          0s
Scraping failed blocks... (forwards)

上面的步驟現已完成,文件fdisk -l上的內容如下backup.img

Disk /media/victor/New Volume4/backup.img: 497.3 GB, 497334280192 bytes
255 heads, 63 sectors/track, 60464 cylinders, total 971356016 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xeea5da13

                               Device Boot      Start         End      Blocks   Id  System
/media/victor/New Volume4/backup.img1              63   976768064   488384001    7  HPFS/NTFS/exFAT

當我這樣做時,sudo mount -o ro,offset=$((512*63)) backup.img /media/myName/recovery我得到:

Failed to read last sector (976768001): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
   or it was not setup correctly (e.g. by not using mdadm --build ...),
   or a wrong device is tried to be mounted,
   or the partition table is corrupt (partition is smaller than NTFS),
   or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/loop0': Invalid argument
The device '/dev/loop0' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

現在我該怎麼做?

答案1

我懷疑是錯誤的工具。Or the whole disk instead of a partition (e.g. /dev/sda, not /dev/sda1)?是一個有用的指針 - 我的猜測是您對 /dev/sdc 進行了映像,並且 mount 與設備映像混淆了。

使用 kpartx 代替 - 我相信 kpartx -a -v backup.img 會在 /dev/mapper 中添加一系列設備,然後您可以按照正常方式安裝它們。

答案2

我使用 Windows 安裝了該映像OSFMount,並且運行良好。我可以像訪問普通驅動器一樣訪問它,並從中提取文件。

總而言之,我有一個 500GB 的驅動器,用於備份檔案。它被格式化為 NTFS。沒有其他分區。讀寫速度直線下降,所以我花了一週的時間GNU ddrescue在 Linux 中使用整個磁碟進行實體映像。然後我曾經OSFMount將它實際安裝在 Windows 中並從中獲取檔案。

相關內容