$ file mydebian.img
mydebian.img: DOS/MBR boot sector
$ fdisk -l mydebian.img
Disk mydebian.img.141022: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders, total 83886080 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: 0x00094e94
Device Boot Start End Blocks Id System
mydebian.img.p1 2048 81790975 40894464 83 Linux
mydebian.img.p2 81793022 83884031 1045505 5 Extended
mydebian.img.p5 81793024 83884031 1045504 82 Linux swap / Solaris
$ mount -o loop,offset=$((2048 * 512)) mydebian.img /mnt
References :
Mounting a hard disk image including partitions using Linux | andremiller.net
Loop-mounting partitions from a disk image
沒有留言:
張貼留言