GNU bug report logs - #20909
incorrect partition size calculation

Previous Next

Package: parted;

Reported by: Gena Makhomed <gmm <at> csdoc.com>

Date: Sat, 27 Jun 2015 06:00:12 UTC

Severity: normal

Done: Phil Susi <psusi <at> ubuntu.com>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 20909-done <at> debbugs.gnu.org (full text, mbox):

From: Phil Susi <psusi <at> ubuntu.com>
To: 20909-done <at> debbugs.gnu.org
Subject: Re: bug#20909: incorrect partition size calculation
Date: Thu, 02 Jul 2015 14:02:14 -0400
On 6/29/2015 2:37 PM, Gena Makhomed wrote:
>> You are off by 1. start and end are inclusive so the size of sda4 is:
>>
>> 1 + (7814037134 - 102764544) = 7711272591
>>

Closing for this reason.

> BTW, "start and end are inclusive" - IMHO is very bad decision,
> because now it is not possible to partition disk using MiB units
> and always need use sectors and make all calculations manually.

No.. MiB units work just fine.

> for example, parted -s /dev/sda mkpart primary 34s 1MiB
> now use one sector from second MiB and next partition
> will be created as unaligned.

No, it doesn't... the partition ends on sector 2047, so the next 
partition can start on sector 2048.





This bug report was last modified 10 years and 20 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.