How to mount partitions in an image mounted on the loop device.
I'm long accustomed to mounting ISOs on the loop device as a convenient way of examining and modifying them. I'm now faced with the next step.
I downloaded the latest Raspian image for my Rpi - 1.3GB - then dd'd it to an SD card which booted badly. It contains two partitions, the FAT boot and the EXT4 OS. I'd like to examine the image, maybe even copy out the OS partition whilst leaving the boot partition alone, but this is a step I've not tried before. My first attempts failed - does the system recognize such device names as loop01 and loop02 for the partitions on loop0? Dunno.
Does anyone know how to do this?
|