QEMU image mounting
Published (last updated )
You have to use an offset. The first ~31.5KB of a disk is used for MBR, partition tables, etc, which confuses the loopback mounter. The following command should work:
mkdir /mnt/loop
mount /tmp/diskC.img /mnt/loop -o loop,offset=32256 -t vfat
Your offset may vary a bit; to check, run the fdisk command on the image file. It should show the first partition starting at block 63. If it shows it as some other number, multiply that number by:
512 (63*512=32256)
to get the offset needed for loopback mounting.