User Tools

Site Tools


docu:csheet:sysadm:disks:img_mount_loop

Mount .img partitions to separate loops so you can mount any partition inside image

$ sudo kpartx -v -a file.iso
add map loop0p1 (253:17): 0 8382464 linear 7:1 2048
$ mount /dev/mapper/loop0p1 ./mnt_point
...  do something with the partition  ...
$ umount ./mnt_point
$ kpartx -d -v file.iso
del devmap : loop0p1
loop deleted : /dev/loop0

Source: https://superuser.com/questions/211338/how-to-mount-a-multi-partition-disk-image-in-linux

docu/csheet/sysadm/disks/img_mount_loop.txt · Last modified: 2022/03/17 21:10 by admin