GNU bug report logs - #34430
GNU Parted 3.2 – Disks' sizes calculation model may be incorrect

Previous Next

Package: parted;

Reported by: Ricky Tigg <ricky.tigg <at> gmail.com>

Date: Mon, 11 Feb 2019 10:55:02 UTC

Severity: normal

Done: "Brian C. Lane" <bcl <at> redhat.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 34430 in the body.
You can then email your comments to 34430 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-parted <at> gnu.org:
bug#34430; Package parted. (Mon, 11 Feb 2019 10:55:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ricky Tigg <ricky.tigg <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-parted <at> gnu.org. (Mon, 11 Feb 2019 10:55:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ricky Tigg <ricky.tigg <at> gmail.com>
To: bug-parted <at> gnu.org
Subject: GNU Parted 3.2 – Disks' sizes calculation model may be incorrect
Date: Mon, 11 Feb 2019 11:53:36 +0100
[Message part 1 (text/plain, inline)]
Hi. Commands executed:

# dd if=/dev/zero of=/dev/sdc

# parted /dev/sdc
(parted) unit s print free
Error: /dev/sdc: unrecognised disk label
Model: (...) (scsi)
Disk /dev/sdc: 15638480s
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:

(parted) mktable msdos
(parted) unit s print free
Disk /dev/sdc: 15638480s
Partition Table: msdos

Number  Start  End        Size       Type  File system  Flags
        2s     15638479s  15638478s        Free Space

Disks' sizes calculation model, involved in the calculation of values
related to disks, appears to be incorrect. Here an illustration from above
output, assuming that disks start from sector 1; according to that
assumption correct calculation model regarding disks' sizes is expected to
be:

Disk <path> = *Size* + (Start - *1<size_unit>* = 15638478s + (2 -1)s =
*15638479s*.

However exhibited Disk /dev/sdc size is 15638480s. Regards R.T.
[Message part 2 (text/html, inline)]

Reply sent to "Brian C. Lane" <bcl <at> redhat.com>:
You have taken responsibility. (Mon, 11 Feb 2019 18:40:02 GMT) Full text and rfc822 format available.

Notification sent to Ricky Tigg <ricky.tigg <at> gmail.com>:
bug acknowledged by developer. (Mon, 11 Feb 2019 18:40:02 GMT) Full text and rfc822 format available.

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

From: "Brian C. Lane" <bcl <at> redhat.com>
To: 34430-done <at> debbugs.gnu.org
Subject: Re: bug#34430: GNU Parted 3.2 – Disks'
 sizes calculation model may be incorrect
Date: Mon, 11 Feb 2019 10:38:58 -0800
Disks start at partition 0. But you can't use it because then you'd be
overwriting the MBR.

-- 
Brian C. Lane (PST8PDT)




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 12 Mar 2019 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 45 days ago.

Previous Next


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