Mounting a partitioned image in linux
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
To find and make available partitions in an image file of a partitioned medium:
losetup /dev/loop0 filename.img kpartx -av /dev/loop0
this will create /dev/mapper/loop0pN...M (not in /dev!)
To clean up afterward, unmount any mounted partitions, then
kpartx -vd /dev/loop0 losetup -d /dev/loop0