You should be able to use -o loop,offset=nnnnn option, where nnnn is the address of the start of the partition in bytes. You can use offset=$((sec * 512)), in a script or on the command line, where sec is the starting sector number when using 512 byte sectors.I've not tried mount -o loop with a partitioned image but I'd expect that not to work as you might expect (the loop device will start with the partition table etc not with the first partition's data).
Statistics: Posted by rpdom — Sat Jan 17, 2026 11:44 pm