Comment 1 for bug 1271205

Revision history for this message
Scott Moser (smoser) wrote : Re: can't kpartx qcow2 cirros 0.3.1

Is this still an issue?

qemu-img convert -O raw cirros-0.3.2-x86_64-disk.img out.img

$ fdisk -l out.img

Disk out.img: 41 MB, 41126400 bytes
255 heads, 63 sectors/track, 5 cylinders, total 80325 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

  Device Boot Start End Blocks Id System
out.img1 * 16065 80324 32130 83 Linux

that doesn't complain about anything, and the math of 80324*512 (+512) == 41126400