Score:0

Ubuntu - unable to extend partition with growpart - partition 1 could only be grown by 2046

th flag

I want to extend /dev/sdb1 partition

I extended disk for 2 GB in Hypervisor and new disk size is shown for /dev/sdb disk (from 20 to 22 GB)

Device     Boot    Start      End  Sectors  Size Id Type
/dev/sdb1  *        2048 40894463 40892416 19.5G 83 Linux
/dev/sdb2       40896510 41940991  1044482  510M  5 Extended
/dev/sdb5       40896512 41940991  1044480  510M 82 Linux swap / Solaris

But getting partition 1 could only be grown by 2046 [fudge=2048]

growpart -v /dev/sdb 1
update-partition set to true
resizing 1 on /dev/sdb using resize_sfdisk_dos
46137344 sectors of 512. total size=23622320128 bytes
## sfdisk --unit=S --dump /dev/sdb
label: dos
label-id: 0x000467a9
device: /dev/sdb
unit: sectors

/dev/sdb1 : start=        2048, size=    40892416, type=83, bootable
/dev/sdb2 : start=    40896510, size=     1044482, type=5
/dev/sdb5 : start=    40896512, size=     1044480, type=82
max_end=40896510 tot=46137344 pt_end=40894464 pt_start=2048 pt_size=40892416
NOCHANGE: partition 1 could only be grown by 2046 [fudge=2048]
in flag
Well, how do you expect it to grow when there are other partitions after it? You need to move them first.
in flag
Or just delete and recreate the other partitions ... it's just swap after all
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.