Mounting a LVM partition from a QEMU file

Last week we had an interesting problem, one of our customers needed us to recover files from a KVM disk image. They had no idea how the disk had been partitioned or about the KVM it came from (on further inspection it would not boot). Like a set of matryoshkas dolls the raw image contained a GUID Partition Table, which contained a Logical Volume Group which contained the partition we needed to mount.

We started by trying to view the partition table using fdisk to gave us an idea of what was inside.


Subscribe to RSS - kvm