Pages

Wednesday, August 13, 2014

Mount An Image with Multiple Partitions

If an image is from a hard disk, it may contains multiple partitions for mount. You access an image  with multiple partitions by following commands:

List partitions for a disk image
kpartx -l disk_image

Add and show mapper for a disk image
kpartx -av disk_image

Mount a loop device (e.g. the second partition)

mount /dev/mapper/loop0p2 /mnt

Delete mapper for a disk image
kpart -d disk_image

No comments:

Post a Comment