Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
topics:disk-image-mount-partition [2017/03/26 05:51] orzfly |
topics:disk-image-mount-partition [2017/03/26 06:15] (current) orzfly [Mounting] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Mount Partitions in Disk Image ====== | ====== Mount Partitions in Disk Image ====== | ||
| + | |||
| + | * [[# | ||
| + | * [[# | ||
| + | * [[# | ||
| + | * [[# | ||
| ===== losetup partscan ===== | ===== losetup partscan ===== | ||
| Line 84: | Line 89: | ||
| ==== Mounting ==== | ==== Mounting ==== | ||
| - | - Mount image as loop device< | + | - Get partition details< |
| - | # losetup /dev/loop0 rpool.img | + | # fdisk -l rpool.img |
| + | Disk rpool.img: 21 GiB, 22548578304 bytes, 44040192 sectors | ||
| + | Units: sectors of 1 * 512 = 512 bytes | ||
| + | Sector size (logical/ | ||
| + | I/O size (minimum/ | ||
| + | Disklabel type: gpt | ||
| + | Disk identifier: B37248EB-F1D7-DA47-A42D-4C42AF20D328 | ||
| + | |||
| + | Device | ||
| + | rpool.img1 | ||
| + | rpool.img9 44021760 44038143 | ||
| + | </ | ||
| + | - Setup loop device< | ||
| + | # losetup /dev/loop0 rpool.img | ||
| </ | </ | ||
| - | |||
| ==== Unmounting ==== | ==== Unmounting ==== | ||