Attach image
#Load nbd drivermodprobe nbd max_part=8
#Attach system image
qemu-nbd --connect=/dev/nbd0 System.img
#Mount Second partition
mount /dev/nbd0p2 /media
Release image
#Umount partition
umount /media/
#Remove image
qemu-nbd -d /dev/nbd0
#Remove driver
modprobe -r nbd
No comments:
Post a Comment