Hi, Chaz - you need to specify an offset. This is the boot sector getting in your way.
Run 'fdisk -ul' on your .img file. It will show you where the partitions start:
fdisk -ul /dev/sda
Disk /dev/sda: 6442 MB, 6442450944 bytes
255 heads, 63 sectors/track, 783 cylinders, total 12582912 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d4ee3
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 1026048 12582911 5778432 8e Linux LVM
Partition 2 does not end on cylinder boundary.
That "Start" column is important.
Now, run "losetup -f -o $(( 512 * [offset] )) [file.img]" (don't copy those square brackets literally). This will give you a loop device to the acutal partition you're interested in.
i.e.: losetup -f -o $(( 512 * 2048 )) /dev/sda
Now, you'll see:
losetup -a
/dev/loop0: [0005]:6094 (/dev/sda), offset 1048576
A note: I did this on /dev/sda. That's not going to do anything useful, since /dev/sda1 is now the same as /dev/loop0. I could probably get myself into some fun problems with this setup.
--
Daniel