Ben's notes

Linux, Unix, network, radio...

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 revisionPrevious revision
Last revisionBoth sides next revision
kvm_repair_qcow2 [2015/05/22 11:29] – [KVM repair qcow2 image] adminkvm_repair_qcow2 [2015/05/22 13:59] – [KVM repair qcow2 image] admin
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: 2021/10/09 15:14 by 127.0.0.1