How to Mount and Unmount QEMU Images (Updated 23 Feb 2020)

How to Mount QEMU Images

sudo losetup /dev/loop18 win10.img

sudo kpartx -a /dev/loop18

sudo ntfsfix /dev/mapper/loop18p4

sudo mount -t ntfs -o remove_hiberfile /dev/mapper/loop18p4 /mnt/cdrive

How to Unmount QEMU Images

sudo umount /mnt/cdrive

sudo kpartx -d /dev/loop18

sudo losetup -d /dev/loop18

Reference

http://blog.siphos.be/2016/09/mounting-qemu-images/

Comments

Popular posts from this blog

[24 Mar 2022 Thursday] Erectile Dysfunction and Viagra

Patching Linux Kernel 5.5.7 to Add Support for AUFS Filesystem