Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
topics:disk-image-mount-partition [2017/03/26 05:56]
orzfly [Mounting]
topics:disk-image-mount-partition [2017/03/26 05:58]
orzfly
Line 1: Line 1:
 ====== Mount Partitions in Disk Image ====== ====== Mount Partitions in Disk Image ======
 +
 +  * [[#losetup_partscan]]: If you have util-linux v2.21 or higher (for example, Ubuntu 16.04).
 +  * [[#partprobe]]: If you have a recent kernel, and pass loop.max_part=63 on boot (if loop is built-in) or to modprobe (if loop is a module).
 +  * [[#kpartx]]: ''apt install kpartx''
 +  * [[#losetup_offsetsizelimit]]: AlwaysWorks™
  
 ===== losetup partscan ===== ===== losetup partscan =====
Line 97: Line 102:
 rpool.img9 44021760 44038143    16384   8M Solaris reserved 1 rpool.img9 44021760 44038143    16384   8M Solaris reserved 1
 </code> </code>
-  - Mount partition<code> +  - Mount partition<code bash
-losetup /dev/loop0 rpool.img --offset $((512 * 2048)) --sizelimit $((512 * 44019712))+losetup /dev/loop0 rpool.img --offset $((512 * 2048)) --sizelimit $((512 * 44019712))
 </code> </code>
 ==== Unmounting ==== ==== Unmounting ====