尝试从崩溃的 1TB ntfs 驱动器安装 ddrescue 映像

尝试从崩溃的 1TB ntfs 驱动器安装 ddrescue 映像

是时候了,五年后,我的 1TB 外置硬盘(里面有我所有的家庭照片和音乐)崩溃了。愚蠢的是,我没有在 RAID 中安装两个硬盘,以后我会这样做。

我成功地使用 dd_rescue 将文件救援到我服务器上的另一个 2tb 电影驱动器中,但是我似乎无法理解如何安装这个 .img 文件。

我正在使用 GNU ddrescue

我真的需要解决这个问题,否则我就完蛋了

以下是我执行 ddrescue 命令的方法

sudo ddrescue /dev/sdh1 /media/external/rescue/rescue.img /media/external/rescue/rescuelog

Initial status (read from logfile)
rescued:        1 TB,  errsize:  30944 kB,  errors:     345
Finished

这是我的测试命令

文件图像.img

image.img: x86 boot sector, code offset 0x52, OEM-ID "NTFS    ", sectors/cluster 8, reserved sectors 0, Media descriptor 0xf8, heads 255, hidden sectors 2048, dos < 4.0 BootSector (0x80)

fdisk -l 映像.img

Disk image.img: 1000.2 GB, 1000203091968 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953521664 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: 0x2052474d

This doesn't look like a partition table
Probably you selected the wrong device.

    Device Boot      Start         End      Blocks   Id  System
image.img1   ?     6579571  1924427647   958924038+  70  DiskSecure Multi-Boot
image.img2   ?  1953251627  3771827541   909287957+  43  Unknown
image.img3   ?   225735265   225735274           5   72  Unknown
image.img4      2642411520  2642463409       25945    0  Empty

Partition table entries are not in disk order

我完全不知道为什么 fdisk 会显示所有这些奇怪的分区,例如“DiskSecure Multi-Boot”和两个“未知”分区,但 parted 命令给了我看似正确的信息

parted image.img 打印

WARNING: You are not superuser.  Watch out for permissions.
Model:  (file)
Disk /media/external/Rescue/image.img: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number  Start  End     Size    File system  Flags
 1      0.00B  1000GB  1000GB  ntfs

我不确定我是否有正确的标志等,但我在这里尝试安装驱动器

sudo mount -r -o loop 镜像.img /mnt

ntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 4096   usa_ofs: 0  usa_count: 65535: Invalid argument
Index buffer (VCN 0x0) of directory inode 0x5 has a size (24) differing from the directory specified size (4096).
ntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 4096   usa_ofs: 0  usa_count: 65535: Invalid argument
Index buffer (VCN 0x0) of directory inode 0x5 has a size (24) differing from the directory specified size (4096).
ntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 4096   usa_ofs: 0  usa_count: 65535: Invalid argument
Index buffer (VCN 0x0) of directory inode 0x5 has a size (24) differing from the directory specified size (4096).

提前谢谢大家!

答案1

您的分区表已损坏,您必须使用 Windows 并chkdsk /f在该损坏的映像文件上运行。检查此问答以获得一些说明。

相关内容