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
Next revisionBoth sides next revision
kvm_repair_qcow2 [2015/05/22 11:24] – [KVM repair qcow2 image] adminkvm_repair_qcow2 [2015/05/22 11:29] – [KVM repair qcow2 image] admin
Line 26: Line 26:
 partprobe /dev/nbd0 partprobe /dev/nbd0
 mount /dev/nbd0p1 /mnt/image</code> mount /dev/nbd0p1 /mnt/image</code>
 +  * Or with guestfish:<code>yum install libguestfs-tools
 + guestfish --rw -a vmflow.qcow2
 +
 +Welcome to guestfish, the guest filesystem shell for
 +editing virtual machine filesystems and disk images.
 +
 +Type: 'help' for help on commands
 +      'man' to read the manual
 +      'quit' to quit the shell
 +
 +> run
 +> list-filesystems
 +/dev/sda1: ext4
 +> mount /dev/sda1 /
 +</code>
  
  
kvm_repair_qcow2.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1