i have a converted img file format i think are raw it are converted from qcow2 are it possible to convert it back to qcow2? i tryed with qemu-img convert -O qcow2 w.img w.qcow2 w.img are 75 gb fdisk w.img -l shows correct size but fdisk -l w.qcow2 shows totaly wrong! 0 mb -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos-virt/attachments/20130731/5e27fedc/attachment-0006.html>
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