This shows you the differences between two versions of the page.
— |
docu:csheet:sysadm:disks:img_mount_loop [2022/03/17 21:10] (current) admin created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ==== Mount .img partitions to separate loops so you can mount any partition inside image ==== | ||
+ | <code bash> | ||
+ | $ sudo kpartx -v -a file.iso | ||
+ | add map loop0p1 (253:17): 0 8382464 linear 7:1 2048 | ||
+ | $ mount / | ||
+ | ... do something with the partition | ||
+ | $ umount ./mnt_point | ||
+ | $ kpartx -d -v file.iso | ||
+ | del devmap : loop0p1 | ||
+ | loop deleted : /dev/loop0 | ||
+ | </ | ||
+ | |||
+ | Source: https:// |