For the last couple of years, I've used a rather manual process, involving losetup, fdisk, calculating the byte offset into the image of each partition, losetup again, and then mount.
Many times, it crossed my mind that there must be an easier way. But, meh, it worked ;-)
In the process of answering pitti's question, I stumbled across:
http://equivocation.org/node/107Much cleaner! It amounts to:
# losetup /dev/loop0 foo.img:-Dustin
# kpartx -av /dev/loop0
# mount /dev/mapper/loop0p1 /mnt
...
# unmount /mnt
# kpartx -dv /dev/loop0
# losetup -d /dev/loop0


10 comments:
Please do not use blog comments for support requests! Blog comments do not scale well to this effect.
Instead, please use Launchpad for Bugs and Questions.
* bugs.launchpad.net
* answers.launchpad.net
Thanks,
:-Dustin