You first need to determine the byte offset of the partition you want to mount. To do this, as root, attach your disk image to a loopback device (like /dev/loop0), print the partition table, and then detach the loopback device.
Code:
losetup /dev/loop0 /path/to/diskimage
fdisk -l /dev/loop0
losetup -d /dev/loop0
(NOTE: You need an unused loopback device for this, so if /dev/loop0 is being used, and you want to quickly find an unused loopback device, run losetup -f
)
Next, find the partition you want to mount in the partition table that was printed, and multiply the starting number by the unit size in bytes (which should also have been printed in the same listing, towards the top). After that, all you need to do is mount it as you would any partition image, but also specifying the offset that you just calculated.
Code:
mount -o loop,offset=OFFSET_IN_BYTES /path/to/mountpoint
This is all based on a FAQ that I found on google:
http://www.mega-tokyo.com/osfaq2/ind...0Under%20Linux
But I think these steps are a bit easier to follow, and more specific.