Comments on: Mount Raw Images Linux. GNU. Freedom. Thu, 15 Feb 2018 18:04:15 +0000 hourly 1 By: Cool Kid Tue, 13 May 2014 22:06:07 +0000 No one on the internet has described this better. Thank you so much.

By: Vangelis Fri, 20 Apr 2012 16:36:26 +0000 sudo rmmod loop
sudo modprobe loop max_part=63 max_loop=8

Then if you mount your image with losetup /dev/loop0 my-image.img will have the partitions exposed in /dev/loop0p1 and /dev/loop0p2
I always add a file with the options under /etc/modprobe.d/loop.conf so that the extra options are loaded automatically upon boot:

sudo echo "options loop max_part=63 max_loop=8" > /etc/modprobe.d/loop.conf

By: sileht Tue, 17 Apr 2012 17:06:17 +0000 You can do that using Qemu/nbd-client:
qemu-nbd -n virt01.img -P2
nbd-client localhost 10809 /dev/nbd0
mount /dev/nbd0 /mnt

By: glandium Mon, 16 Apr 2012 21:23:19 +0000 libguestfs's guestmount might come handy, too.

By: textshell Mon, 16 Apr 2012 21:14:10 +0000 using the small tool kpartx (not KDE or X11) does automate that quite a bit with using the device mapper.