d-i partman reports negative %/size on guided resize where not enough space is available
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
partman-auto (Ubuntu) |
Fix Released
|
Medium
|
Colin Watson | ||
Lucid |
Fix Released
|
Medium
|
Colin Watson | ||
partman-partitioning (Ubuntu) |
Fix Released
|
Medium
|
Colin Watson | ||
Lucid |
Fix Released
|
Medium
|
Colin Watson |
Bug Description
Binary package hint: debian-installer
ISO: netboot 20081029ubuntu101 i386
Attempted to do a side-by-side install in an instance with a 10gb disk that already had a side-by-side install on it, the partitioner reported "The minimum size for this partition is 2.1 GB (or -86%) and its maxnimum size is -2.3 GB." (see attached screenshot). It also offers up a new partition size of 0.1 GB.
Here's the state of the disk as reported by fdisk in cylinders:
Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders, total 20971520 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: 0x00006e23
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 501758 20969471 10233857 5 Extended
/dev/sda5 501760 11243946 5371093+ 83 Linux
/dev/sda6 11245568 20434943 4594688 83 Linux
/dev/sda7 20436992 20969471 266240 82 Linux swap / Solaris
Also attached are logfiles. I don't recall what the prior test install steps were that created such a partitioning, but d-i partman should not suggest resizing here nor should it report negative numbers.
tags: | added: iso-testing |
Changed in partman-auto (Ubuntu Lucid): | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
assignee: | nobody → Colin Watson (cjwatson) |
Changed in partman-partitioning (Ubuntu Lucid): | |
status: | New → In Progress |
Changed in partman-auto (Ubuntu Lucid): | |
milestone: | none → ubuntu-10.04 |
Changed in partman-partitioning (Ubuntu Lucid): | |
importance: | Undecided → Medium |
milestone: | none → ubuntu-10.04 |
assignee: | nobody → Colin Watson (cjwatson) |
Changed in partman-partitioning (Ubuntu Lucid): | |
status: | In Progress → Fix Committed |
If you have time - could you put 'set -x' at the top of /lib/partman/ lib/resize. sh before starting the partitioner and get new logs, please? Otherwise I'll try to reproduce this but I'm hoping this way will be quicker in wallclock time as I'm about to go to bed ...