Category Archives: Linux Commands

Mounting an image file

To avoid all that faffing around with loopbacks etc, kpartx is your friend.

kpartx -a pi.img

Will create all the loopbacks, and create the devices for you to mount under /dev/mapper.

Advertisements