0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

パーティショニングされたディスクイメージファイルのmount方法

Last updated at Posted at 2014-07-31

fsiskで情報確認

usr@host # fdisk -lu vm3-boot
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000babc7

   Device Boot      Start         End      Blocks   Id  System
vm3-boot1   *        2048      524287      261120   83  Linux
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(0, 32, 33) logical=(6, 46, 1)
Partition 1 has different physical/logical endings:
     phys=(32, 162, 2) logical=(1608, 39, 2)

→start位置=2048 に512を乗じたもの(2048*512=1048576)offsetとして、以下のようにmount

usr@host # mount -o loop,ro,offset=$((2048*512)) /vol1/kvm/vm3/vm3-root /mnt
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?