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/
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
Post a Comment