挂载 *.img(dd 救援的图像文件)

挂载 *.img(dd 救援的图像文件)

我使用 DD-Rescue-GUI 恢复了 1TB 的外部硬盘。映像存储在 2TB 的外部硬盘中。我尝试安装它,但没有成功。我也尝试了以 Raw 格式安装磁盘映像,并得到以下结果。

-o在下面的脚本中,行中的参数sudo losetup -o 991369929728按照上面的链接计算,即512 bytes * Starting sector = 512 * 1936269394 = 991369929728

rauf@rauf-Latitude-E5420:~$ sudo fdisk -lu /media/rauf/My\ Passport/Old\ 1\ TB\ Disk/onetb.img
[sudo] password for rauf: 
Disk /media/rauf/My Passport/Old 1 TB Disk/onetb.img: 931.49 GiB, 1000169537536 bytes, 1953456128 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
Disklabel type: dos
Disk identifier: 0x6e697373`

Device                                           Boot      Start        End    Sectors   Size Id Type
/media/rauf/My Passport/Old 1 TB Disk/onetb.img1      1936269394 3772285809 1836016416 875.5G 4f QNX4.x 3rd part
/media/rauf/My Passport/Old 1 TB Disk/onetb.img2      1917848077 2462285169  544437093 259.6G 73 unknown
/media/rauf/My Passport/Old 1 TB Disk/onetb.img3      1818575915 2362751050  544175136 259.5G 2b unknown
/media/rauf/My Passport/Old 1 TB Disk/onetb.img4      2844524554 2844579527      54974  26.9M 61 SpeedStor

Partition table entries are not in disk order.
rauf@rauf-Latitude-E5420:~$ sudo losetup -o 991369929728 /media/rauf/My\ Passport/Old\ 1\ TB\ Disk/onetb.img
losetup: /media/rauf/My Passport/Old 1 TB Disk/onetb.img: failed to use device: No such device
rauf@rauf-Latitude-E5420:~$ sudo losetup -o 991369929728 /media/rauf/My\ Passport/Old\ 1\ TB\ Disk/onetb.img
losetup: /media/rauf/My Passport/Old 1 TB Disk/onetb.img: failed to use device: No such device
rauf@rauf-Latitude-E5420:~$ 

答案1

你必须使用kpartx公用事业。

使用以下命令将分区附加到循环设备:

sudo kpartx -a -v onetb.img

然后使用来自的设备/dev/mapper/...

相关内容