LoginSignup
3
1

More than 3 years have passed since last update.

vdi仮想ディスクイメージのマウント方法

Last updated at Posted at 2019-08-13

1. はじめに

実行には下記のパッケージを導入する必要があります

qemu

1. マウント


# modprobe nbd max_part=16
# qemu-nbd -c /dev/nbd0 イメージファイル.vdi
# mount /dev/nbd0p1 /mnt

1. chroot


# mount --bind /dev /mnt/dev
# mount --bind /proc /mnt/proc
# mount --bind /sys /mnt/sys
# chroot /mnt

1. アンマウント


# umount /mnt/*
# umount /mnt
# qemu-nbd -d /dev/nbd0

3
1
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
3
1