growpart can't resize partition with two digits
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-utils (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Release version
=======
lsb_release -rd
Description: Ubuntu 14.04.3 LTS
Release: 14.04
package version
=======
apt-cache policy cloud-utils
cloud-utils:
Installed: 0.27-0ubuntu9.1
Candidate: 0.27-0ubuntu9.1
Version table:
*** 0.27-0ubuntu9.1 0
500 http://
100 /var/lib/
0.27-0ubuntu9 0
500 http://
behavior
=======
growpart -v /dev/sda 10
update-partition set to true
found MBR partition table (id = 83)
geometry is -C 48561 -H 255 -S 63. total size=780132465
## sfdisk -C 48561 -H 255 -S 63 --unit=S --dump /dev/sda
# partition table of /dev/sda
unit: sectors
/dev/sda1 : start= 2048, size= 20973568, Id=83, bootable
/dev/sda2 : start= 20975616, size= 133120, Id=83
/dev/sda3 : start= 21110782, size=759021683, Id= 5
/dev/sda4 : start= 0, size= 0, Id= 0
/dev/sda5 : start= 21110784, size= 2107392, Id=83
/dev/sda6 : start= 23220224, size= 41951232, Id=83
/dev/sda7 : start= 65173504, size= 2107392, Id=83
/dev/sda8 : start= 67282944, size= 2107392, Id=83
/dev/sda9 : start= 69392384, size= 31248384, Id=82
/dev/sda10: start=100642816, size= 5851136, Id=83
FAILED: failed to get start and end for /dev/sda10 in /dev/sda
Looks like because of no space between '/dev/sda10' and ':' parsing doesn't work
Expected behavior
=======
Extending partition without errors
description: | updated |
no longer affects: | cloud-utils (Ubuntu) |
affects: | cloud-utils → cloud-utils (Ubuntu) |
Changed in cloud-utils (Ubuntu): | |
importance: | Undecided → Medium |
I'm pretty sure this is fixed. 20160510- 175548 end=83886047
I've just tried partitioning a disk with gpt and 11 partitions on xenial and then run
$ sudo growpart /dev/vdb 11
sudo: unable to resolve host xenial-
CHANGED: partition=11 start=206848 old: size=204800 end=411648 new: size=83679199,
please feel free to re-open if you think otherwise.