Ben Stienstra

Linux, Unix, network, radio and more...

User Tools

Site Tools


kvm_repair_qcow2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
kvm_repair_qcow2 [2015/05/22 13:29]
admin [KVM repair qcow2 image]
kvm_repair_qcow2 [2015/05/22 15:59] (current)
admin [KVM repair qcow2 image]
Line 22: Line 22:
 Image end offset: 27071414272</​code>​ Image end offset: 27071414272</​code>​
   * Check again, if you're lucky you might try to boot the VM in rescue mode and repair the fileystem there.   * Check again, if you're lucky you might try to boot the VM in rescue mode and repair the fileystem there.
-  * If not, try to mount the image with nbd and fix it:<​code>​modprobe nbd max_part=16+  * If not, try to mount the image with nbd and fix it (eg. with testdisk):<​code>​modprobe nbd max_part=16
 qemu-nbd -c /dev/nbd0 image.qcow2 qemu-nbd -c /dev/nbd0 image.qcow2
 partprobe /dev/nbd0 partprobe /dev/nbd0
kvm_repair_qcow2.txt ยท Last modified: 2015/05/22 15:59 by admin