系統 - Debian - QEMU - 如何掛載QCOW2



參考資訊:
https://archive.org/details/windows-98-se-isofile
https://www.lysator.liu.se/~jonass/qemu_win98.html

Mount

$ sudo modprobe nbd max_part=8
$ sudo qemu-nbd --connect=/dev/nbd0 xxx.qcow2 
$ sudo mount /dev/nbd0p1 /mnt

Unmount

$ sudo umount /mnt
$ sudo qemu-nbd --disconnect /dev/nbd0
$ sudo rmmod nbd