[CentOS-virt] recover a imagefile

Wed Jul 31 23:49:55 UTC 2013
Jorge Fábregas <jorge.fabregas at gmail.com>

On 07/31/2013 03:23 PM, mattias wrote:
> but fdisk -l w.qcow2 shows totaly wrong!

You can't use fdisk on a qcow2 file (as it is not just a true image of a
raw disk).  I highly recommend this guide [1] in order to understand the
different file formats used for disk images.

Regarding your first question: yes.  You can convert from a raw image to
qcow2.

HTH,
Jorge

[1]: http://lnx.cx/docs/vdg/output/Virtual-Disk-Operations.html