gddrescue 만든 원시 디스크 이미지가 있습니다 . 복잡한 파티션 구조이기 때문에 마운트에 실패했습니다.
losetup
포트 캔 옵션으로 먼저 시도했습니다 .
# losetup -Pf --show -v silvio-extern.iso
/dev/loop0
# fdisk -lu /dev/loop0
Disk /dev/loop0: 298,1 GiB, 320072933376 bytes, 625142448 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: 0x88c8fbd4
Device Boot Start End Sectors Size Id Type
/dev/loop0p1 63 625137344 625137282 298,1G 7 HPFS/NTFS/exFAT
# fdisk -lu /dev/loop0p1
Disk /dev/loop0p1: 298,1 GiB, 320070288384 bytes, 625137282 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: 0x444c544e
Device Boot Start End Sectors Size Id Type
/dev/loop0p1p1 ? 1768778098 1776409558 7631461 3,7G 6b unknown
/dev/loop0p1p2 ? 1830843506 3225479386 1394635881 665G 75 PC/IX
/dev/loop0p1p3 ? 1718906437 1718909009 2573 1,3M 41 PPC PReP Boot
/dev/loop0p1p4 2827157504 2827210421 52918 25,9M 0 Empty
Partition table entries are not in disk order.
# fdisk -lu /dev/loop0p1p2
fdisk: cannot open /dev/loop0p1p2: No such file or directory
파티션 크기는 / dev / loop0p1p2에 관심이 있다는 것을 알려줍니다.
루프 장치 설명서를 만들려고했습니다. 내가 올바르게 얻은 경우 Start
* Sector size
(1830843506 * 512 = 937391875072)와 Sectors
* Sector size
(1394635881 * 512 = 714053571072)의 크기가 필요합니다. 그러나 작동하지 않습니다.
# losetup -o 937391875072 --sizelimit 714053571072 --show -v -f /dev/loop0p1
/dev/loop1
# fdisk -lu /dev/loop1
fdisk: cannot open /dev/loop1: Inappropriate ioctl for device
# mount /dev/loop1 content/
mount: /dev/loop1 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/loop1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
그래서 나는 kpartx
변화를 주었습니다 . 그러나 동일했습니다.
# kpartx -av silvio-extern.iso
add map loop0p1 (253:2): 0 625137282 linear /dev/loop0 63
# fdisk -lu /dev/loop0p1
Disk /dev/loop0p1: 298.1 GiB, 320070288384 bytes, 625137282 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: 0x444c544e
Device Boot Start End Sectors Size Id Type
/dev/loop0p1p1 ? 1768778098 1776409558 7631461 3.7G 6b unknown
/dev/loop0p1p2 ? 1830843506 3225479386 1394635881 665G 75 PC/IX
/dev/loop0p1p3 ? 1718906437 1718909009 2573 1.3M 41 PPC PReP Boot
/dev/loop0p1p4 2827157504 2827210421 52918 25.9M 0 Empty
Partition table entries are not in disk order.
# fdisk -lu /dev/loop0p1p2
fdisk: cannot open /dev/loop0p1p2: No such file or directory
그런 다음 losetup
portscan 옵션 으로 실행하려고했지만 성공하지 못했습니다.
# losetup -Pf --show -v /dev/loop0p1
/dev/loop1
# fdisk -lu /dev/loop1
Disk /dev/loop1: 298.1 GiB, 320070288384 bytes, 625137282 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: 0x444c544e
Device Boot Start End Sectors Size Id Type
/dev/loop1p1 ? 1768778098 1776409558 7631461 3.7G 6b unknown
/dev/loop1p2 ? 1830843506 3225479386 1394635881 665G 75 PC/IX
/dev/loop1p3 ? 1718906437 1718909009 2573 1.3M 41 PPC PReP Boot
/dev/loop1p4 2827157504 2827210421 52918 25.9M 0 Empty
Partition table entries are not in disk order.
# fdisk -lu /dev/loop1p2
fdisk: cannot open /dev/loop1p2: No such file or directory
내가 준 kpartx
에 대한 시도 /dev/loop0p1
및 일부 오류 메시지를 가지고 :
# kpartx -av /dev/loop0p1
device-mapper: reload ioctl on loop0p1p1 failed: Invalid argument
create/reload failed on loop0p1p1
add map loop0p1p1 (0:0): 0 7631461 linear /dev/loop0p1 1768778098
device-mapper: reload ioctl on loop0p1p2 failed: Invalid argument
create/reload failed on loop0p1p2
add map loop0p1p2 (0:0): 0 1394635881 linear /dev/loop0p1 1830843506
device-mapper: reload ioctl on loop0p1p3 failed: Invalid argument
create/reload failed on loop0p1p3
add map loop0p1p3 (0:0): 0 2573 linear /dev/loop0p1 1718906437
device-mapper: reload ioctl on loop0p1p4 failed: Invalid argument
create/reload failed on loop0p1p4
add map loop0p1p4 (0:0): 0 52918 linear /dev/loop0p1 2827157504
참고 : Ubuntu 16.04의 자동 마운트는 원본 디스크와 잘 작동합니다.
누구든지 어떤 아이디어가 있습니까?
데비안 8로 디스크 이미지를 마운트하려고합니다.
@ Kamil Maciorowski가 제안한 것처럼 offset
옵션으로 이미지 파일을 직접 마운트하려고했습니다 . 이것은 Input/output error
내용을 나열 할 때 나에게 제공 합니다.
# mount -o offset=$((512*63)) silvio-extern.iso content/
# ls -l content/
ls: reading directory content/: Input/output error
total 0
fdisk
이미지 파일 과 오프셋을 두 번 확인했습니다 .
# fdisk -lu silvio-extern.iso
Disk silvio-extern.iso: 298.1 GiB, 320072933376 bytes, 625142448 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: 0x88c8fbd4
Device Boot Start End Sectors Size Id Type
silvio-extern.iso1 63 625137344 625137282 298.1G 7 HPFS/NTFS/exFAT