It pretty strait forward. From the below the first partition starts at 63 and the sector size is 512. To mount it use an offset of 63*512. The same goes for second partition. The offset will 499968*512.
mount -o loop,offset=32256 imagefile.img /mnt
Code:
foo@bar:~$ fdisk -ul imagefile.img
You must set cylinders.
You can do this from the extra functions menu.
Disk imagefile.img: 0 MB, 0 bytes
32 heads, 63 sectors/track, 0 cylinders, total 0 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x07443446
Device Boot Start End Blocks Id System
imagefile.img1 * 63 499967 249952+ 83 Linux
imagefile.img2 499968 997919 248976 83 Linux
Bookmarks