armhf QCOW image contains partition bigger than the image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-images |
Fix Released
|
High
|
Unassigned |
Bug Description
Seen on http://
The QCOW2 image fails to mount inside QEMU or using qemu-nbd due to the partition being bigger than the device. To reproduce:
* Download the image
* Run sudo qemu-nbd -c /dev/nbd0 $PWD/precise-
* Have a look a dmesg
* See 'nbd0: p1 size 1638630 extends beyond EOD, truncated'
* Run sudo partprobe /dev/nbd0
* See Error: Can't have a partition outside the disk!
On QEMU you'll see things like EXT4-fs (mmcblk0p1): bad geometry: block count 204800 exceeds size of device (204775 blocks)
The on-disk image is ~200 M. The virtual size is 808 M. When QEMU sees it it reports as 807 M.
The raw image in $foo-armhf.tar.gz is fine.
no longer affects: | ubuntu-on-ec2 |
Changed in ubuntu: | |
importance: | Undecided → High |
status: | New → Confirmed |
tags: | added: cloud-images cloud-images-build |
Changed in ubuntu: | |
status: | Confirmed → Fix Released |
affects: | ubuntu → cloud-images |
Thank you for giving the the ARMHF images a look. I was unable to replicate using the latest daily. Can you tell me what daily you were using?
[29788514.597447] nbd: registered device at major 43
[29788521.545571] nbd0: p1
[29789553.013362] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null)
[29789584.151973] EXT4-fs (nbd0p1): mounted filesystem with ordered data mode. Opts: (null)