GNU logs - #19137, boring messages


Message sent to bug-parted@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#19137: mklabel gpt created invalid Protective MBR
Resent-From: "Ulrich Windl" <Ulrich.Windl@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-parted@HIDDEN
Resent-Date: Fri, 21 Nov 2014 07:52:02 +0000
Resent-Message-ID: <handler.19137.B.14165562683159 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 19137
X-GNU-PR-Package: parted
X-GNU-PR-Keywords: 
To: 19137 <at> debbugs.gnu.org
X-Debbugs-Original-To: <bug-parted@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.14165562683159
          (code B ref -1); Fri, 21 Nov 2014 07:52:02 +0000
Received: (at submit) by debbugs.gnu.org; 21 Nov 2014 07:51:08 +0000
Received: from localhost ([127.0.0.1]:40181 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Xrizk-0000ot-88
	for submit <at> debbugs.gnu.org; Fri, 21 Nov 2014 02:51:08 -0500
Received: from eggs.gnu.org ([208.118.235.92]:49866)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <Ulrich.Windl@HIDDEN>)
 id 1Xrizh-0000ok-3U
 for submit <at> debbugs.gnu.org; Fri, 21 Nov 2014 02:51:05 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <Ulrich.Windl@HIDDEN>)
 id 1XrizW-0000wc-VN
 for submit <at> debbugs.gnu.org; Fri, 21 Nov 2014 02:51:04 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:37839)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <Ulrich.Windl@HIDDEN>)
 id 1XrizW-0000wQ-SN
 for submit <at> debbugs.gnu.org; Fri, 21 Nov 2014 02:50:54 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:51506)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <Ulrich.Windl@HIDDEN>)
 id 1XrizP-0006qM-58
 for bug-parted@HIDDEN; Fri, 21 Nov 2014 02:50:54 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <Ulrich.Windl@HIDDEN>)
 id 1XrizH-0000if-Eh
 for bug-parted@HIDDEN; Fri, 21 Nov 2014 02:50:47 -0500
Received: from rrzmta2.uni-regensburg.de ([194.94.155.52]:53789)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <Ulrich.Windl@HIDDEN>)
 id 1XrizH-0000ho-4Z
 for bug-parted@HIDDEN; Fri, 21 Nov 2014 02:50:39 -0500
Received: from rrzmta2.uni-regensburg.de (localhost [127.0.0.1])
 by localhost (Postfix) with SMTP id 2BE075CF99
 for <bug-parted@HIDDEN>; Fri, 21 Nov 2014 08:50:37 +0100 (CET)
Received: from gwsmtp1.uni-regensburg.de (gwsmtp1.uni-regensburg.de
 [132.199.5.51])
 by rrzmta2.uni-regensburg.de (Postfix) with ESMTP id 2911E5D218
 for <bug-parted@HIDDEN>; Fri, 21 Nov 2014 08:50:27 +0100 (CET)
Received: from uni-regensburg-smtp1-MTA by gwsmtp1.uni-regensburg.de
 with Novell_GroupWise; Fri, 21 Nov 2014 08:50:27 +0100
Message-Id: <546EFCD0020000A100017F03@HIDDEN>
X-Mailer: Novell GroupWise Internet Agent 14.0.1 
Date: Fri, 21 Nov 2014 08:50:24 +0100
From: "Ulrich Windl" <Ulrich.Windl@HIDDEN>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

GNU Parted 2.3 creates an invalid Protective MBR (for a 3MB test image):
--
hexdump -C gptgood
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |..............=
..|
*
000001c0  01 00 ee fe ff ff 01 00  00 00 ff 17 00 00 00 00  |..............=
..|
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |..............=
..|
*
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............=
U.|
[...]
---

Partition #1 (or is it #4?) decodes as this:
--
Legacy MBR:
    MBR Signature     =3D aa55
    Unique Signature  =3D 00000000

    Partition 1:
        Boot Indicator    : non-bootable
        Starting Cylinder =3D          0
        Starting Head     =3D          1
        Starting Sector   =3D          0
        System ID         =3D       0xee
        Ending Cylinder   =3D       1023
        Ending Head       =3D         63
        Ending Sector     =3D        254
        Relative Sectors  =3D          1
        Total Sectors     =3D       6143
--
First, UEFI says the StartingCHS should be set to 0x000200, that should be =
0/0/2, not 0/1/0. Second, UEFI says Ending CHS should be set to the CHS =
address of the last logical block on the disk, _or_ 0xffffff if it's not =
possible to represent the value in the field. For my 3MB image that value =
is not correct.






Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.503 (Entity 5.503)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: "Ulrich Windl" <Ulrich.Windl@HIDDEN>
Subject: bug#19137: Acknowledgement (mklabel gpt created invalid
 Protective MBR)
Message-ID: <handler.19137.B.14165562683159.ack <at> debbugs.gnu.org>
References: <546EFCD0020000A100017F03@HIDDEN>
X-Gnu-PR-Message: ack 19137
X-Gnu-PR-Package: parted
Reply-To: 19137 <at> debbugs.gnu.org
Date: Fri, 21 Nov 2014 07:52:03 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-parted@HIDDEN

If you wish to submit further information on this problem, please
send it to 19137 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
19137: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D19137
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-parted@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#19137: mklabel gpt created invalid Protective MBR
Resent-From: =?UTF-8?Q?H=C3=A5kon_?= =?UTF-8?Q?L=C3=B8vdal?= <hlovdal@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-parted@HIDDEN
Resent-Date: Fri, 21 Nov 2014 16:03:02 +0000
Resent-Message-ID: <handler.19137.B19137.141658576426568 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 19137
X-GNU-PR-Package: parted
X-GNU-PR-Keywords: 
To: Ulrich Windl <Ulrich.Windl@HIDDEN>
Cc: 19137 <at> debbugs.gnu.org
Received: via spool by 19137-submit <at> debbugs.gnu.org id=B19137.141658576426568
          (code B ref 19137); Fri, 21 Nov 2014 16:03:02 +0000
Received: (at 19137) by debbugs.gnu.org; 21 Nov 2014 16:02:44 +0000
Received: from localhost ([127.0.0.1]:41049 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XrqfT-0006uR-VW
	for submit <at> debbugs.gnu.org; Fri, 21 Nov 2014 11:02:44 -0500
Received: from mail-qg0-f54.google.com ([209.85.192.54]:52667)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <hlovdal@HIDDEN>) id 1XrqfR-0006uI-Dr
 for 19137 <at> debbugs.gnu.org; Fri, 21 Nov 2014 11:02:42 -0500
Received: by mail-qg0-f54.google.com with SMTP id q107so3928271qgd.27
 for <19137 <at> debbugs.gnu.org>; Fri, 21 Nov 2014 08:02:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :cc:content-type:content-transfer-encoding;
 bh=r65EY88Og/lyIGLwDUrntGgEvobnei04cP3Q3c05Ue4=;
 b=BqNu7sYN1EzkQdpZxZXZ6W80FD19DMs+AfUWajt9jMUyIfXS9HetJDM2CCdPZj/m66
 VHsDIsyi0jYCwiA5ZrMacfFTUYc9B4a2XeJPRiqOkHDSUmbT/cCIp4JfmUZc0pXXo5/q
 l+UzE+J+eQzBf6/Qb/3r8fUG9h3sUhmqtDtziOjOdtw/he5v9Gv1ma7p363Z851gsjOw
 fkpaDoDgWv07VvAgoNjQbeUVqpLUJWnA+B8k5XfFrUjS2YfJIPcXqUWG1VxPB14/8Rem
 ZcawRGAd5B9Ir/e2b1aMKZ9EAvV2YhfIfvgHQ6KHBDCsvucG1n0y+yvmD+8XK6W83dzw
 tjKw==
MIME-Version: 1.0
X-Received: by 10.224.12.145 with SMTP id x17mr7679623qax.23.1416585760382;
 Fri, 21 Nov 2014 08:02:40 -0800 (PST)
Received: by 10.140.81.227 with HTTP; Fri, 21 Nov 2014 08:02:40 -0800 (PST)
In-Reply-To: <546EFCD0020000A100017F03@HIDDEN>
References: <546EFCD0020000A100017F03@HIDDEN>
Date: Fri, 21 Nov 2014 17:02:40 +0100
Message-ID: <CAACXqO_W_rmbckni-kmndKbB9OMu-z=815PgFbbH_E0aCBLUyw@HIDDEN>
From: =?UTF-8?Q?H=C3=A5kon_?= =?UTF-8?Q?L=C3=B8vdal?= <hlovdal@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

On 21 November 2014 08:50, Ulrich Windl
<Ulrich.Windl@HIDDEN> wrote:
> GNU Parted 2.3 creates an invalid Protective MBR (for a 3MB test image):

Hi. Version 2.3 is quite old, can you reproduce this with the latest
version, 3.2?

BR H=C3=A5kon L=C3=B8vdal




Message sent to bug-parted@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#19137: mklabel gpt created invalid Protective MBR
Resent-From: "Brian C. Lane" <bcl@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-parted@HIDDEN
Resent-Date: Fri, 21 Nov 2014 20:16:02 +0000
Resent-Message-ID: <handler.19137.B.141660094123615 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 19137
X-GNU-PR-Package: parted
X-GNU-PR-Keywords: 
To: 19137 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-parted@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.141660094123615
          (code B ref -1); Fri, 21 Nov 2014 20:16:02 +0000
Received: (at submit) by debbugs.gnu.org; 21 Nov 2014 20:15:41 +0000
Received: from localhost ([127.0.0.1]:41259 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XrucG-00068p-Qy
	for submit <at> debbugs.gnu.org; Fri, 21 Nov 2014 15:15:41 -0500
Received: from eggs.gnu.org ([208.118.235.92]:43187)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <bcl@HIDDEN>) id 1XrucE-00068h-Re
 for submit <at> debbugs.gnu.org; Fri, 21 Nov 2014 15:15:39 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1Xruc8-0005TC-R7
 for submit <at> debbugs.gnu.org; Fri, 21 Nov 2014 15:15:38 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:60088)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1Xruc8-0005T8-O0
 for submit <at> debbugs.gnu.org; Fri, 21 Nov 2014 15:15:32 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:44861)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1Xruc3-0008Gz-3X
 for bug-parted@HIDDEN; Fri, 21 Nov 2014 15:15:32 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1Xruby-0005S4-86
 for bug-parted@HIDDEN; Fri, 21 Nov 2014 15:15:26 -0500
Received: from mx1.redhat.com ([209.132.183.28]:34402)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1Xruby-0005Qt-1W
 for bug-parted@HIDDEN; Fri, 21 Nov 2014 15:15:22 -0500
Received: from int-mx11.intmail.prod.int.phx2.redhat.com
 (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24])
 by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sALKFJNN019789
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL)
 for <bug-parted@HIDDEN>; Fri, 21 Nov 2014 15:15:19 -0500
Received: from lister.brianlane.com (ovpn-113-92.phx2.redhat.com [10.3.113.92])
 by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id
 sALKFHiT018887
 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO)
 for <bug-parted@HIDDEN>; Fri, 21 Nov 2014 15:15:18 -0500
Date: Fri, 21 Nov 2014 12:15:17 -0800
From: "Brian C. Lane" <bcl@HIDDEN>
Message-ID: <20141121201517.GC2513@HIDDEN>
References: <546EFCD0020000A100017F03@HIDDEN>
 <CAACXqO_W_rmbckni-kmndKbB9OMu-z=815PgFbbH_E0aCBLUyw@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
In-Reply-To: <CAACXqO_W_rmbckni-kmndKbB9OMu-z=815PgFbbH_E0aCBLUyw@HIDDEN>
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id
 sALKFJNN019789
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

On Fri, Nov 21, 2014 at 05:02:40PM +0100, H=E5kon L=F8vdal wrote:
> On 21 November 2014 08:50, Ulrich Windl
> <Ulrich.Windl@HIDDEN> wrote:
> > GNU Parted 2.3 creates an invalid Protective MBR (for a 3MB test imag=
e):
>=20
> Hi. Version 2.3 is quite old, can you reproduce this with the latest
> version, 3.2?

Same thing happens with 3.2, the code in _write_pmbr is pretty
brain-dead. The SizeInLBA looks correct to me though, 1 less than the
disk length:

pmbr->PartitionRecord[0].SizeInLBA =3D PED_CPU_TO_LE32 (dev->length -
1UL);

--=20
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PS=
T8PDT)




Message sent to bug-parted@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#19137: mklabel gpt created invalid Protective MBR
Resent-From: "Brian C. Lane" <bcl@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-parted@HIDDEN
Resent-Date: Fri, 21 Nov 2014 20:37:02 +0000
Resent-Message-ID: <handler.19137.B.141660221425496 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 19137
X-GNU-PR-Package: parted
X-GNU-PR-Keywords: 
To: 19137 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-parted@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.141660221425496
          (code B ref -1); Fri, 21 Nov 2014 20:37:02 +0000
Received: (at submit) by debbugs.gnu.org; 21 Nov 2014 20:36:54 +0000
Received: from localhost ([127.0.0.1]:41267 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Xruwn-0006d9-RK
	for submit <at> debbugs.gnu.org; Fri, 21 Nov 2014 15:36:54 -0500
Received: from eggs.gnu.org ([208.118.235.92]:47323)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <bcl@HIDDEN>) id 1Xruwm-0006d2-H3
 for submit <at> debbugs.gnu.org; Fri, 21 Nov 2014 15:36:53 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1Xruwd-0003Wh-1x
 for submit <at> debbugs.gnu.org; Fri, 21 Nov 2014 15:36:52 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:54518)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1Xruwc-0003Wc-V1
 for submit <at> debbugs.gnu.org; Fri, 21 Nov 2014 15:36:42 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48961)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1XruwW-0004AM-PK
 for bug-parted@HIDDEN; Fri, 21 Nov 2014 15:36:42 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1XruwQ-0003VT-GA
 for bug-parted@HIDDEN; Fri, 21 Nov 2014 15:36:36 -0500
Received: from mx1.redhat.com ([209.132.183.28]:60456)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1XruwQ-0003VP-8t
 for bug-parted@HIDDEN; Fri, 21 Nov 2014 15:36:30 -0500
Received: from int-mx09.intmail.prod.int.phx2.redhat.com
 (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22])
 by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sALKaTLE031056
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL)
 for <bug-parted@HIDDEN>; Fri, 21 Nov 2014 15:36:29 -0500
Received: from lister.brianlane.com (ovpn-113-92.phx2.redhat.com [10.3.113.92])
 by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id
 sALKaRCW000829
 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO)
 for <bug-parted@HIDDEN>; Fri, 21 Nov 2014 15:36:29 -0500
Date: Fri, 21 Nov 2014 12:36:27 -0800
From: "Brian C. Lane" <bcl@HIDDEN>
Message-ID: <20141121203627.GD2513@HIDDEN>
References: <546EFCD0020000A100017F03@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <546EFCD0020000A100017F03@HIDDEN>
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

On Fri, Nov 21, 2014 at 08:50:24AM +0100, Ulrich Windl wrote:
> GNU Parted 2.3 creates an invalid Protective MBR (for a 3MB test image):
> --
> hexdump -C gptgood
> 00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 000001c0  01 00 ee fe ff ff 01 00  00 00 ff 17 00 00 00 00  |................|
> 000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
> [...]
> ---
> 
> Partition #1 (or is it #4?) decodes as this:
> --
> Legacy MBR:
>     MBR Signature     = aa55
>     Unique Signature  = 00000000
> 
>     Partition 1:
>         Boot Indicator    : non-bootable
>         Starting Cylinder =          0
>         Starting Head     =          1
>         Starting Sector   =          0
>         System ID         =       0xee
>         Ending Cylinder   =       1023
>         Ending Head       =         63
>         Ending Sector     =        254
>         Relative Sectors  =          1
>         Total Sectors     =       6143
> --
> First, UEFI says the StartingCHS should be set to 0x000200, that should be 0/0/2, not 0/1/0. Second, UEFI says Ending CHS should be set to the CHS address of the last logical block on the disk, _or_ 0xffffff if it's not possible to represent the value in the field. For my 3MB image that value is not correct.

The code has been like this since the beginning of time :) You're right,
the CHS values aren't exactly correct, but given that they have been
that way for a long time, and nothing we know of is having an actual
problem with them, I'm reluctant to change them for fear that there is
firmware in the wild that expects these values.

In my previous email I said SizeInLBA was correct, which isn't what
you were talking about :)

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)




Message sent to bug-parted@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#19137: Antw: Re: bug#19137: mklabel gpt created invalid Protective MBR
Resent-From: "Ulrich Windl" <Ulrich.Windl@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-parted@HIDDEN
Resent-Date: Tue, 02 Dec 2014 12:28:02 +0000
Resent-Message-ID: <handler.19137.B19137.141752327219634 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 19137
X-GNU-PR-Package: parted
X-GNU-PR-Keywords: 
To: <hlovdal@HIDDEN>
Cc: 19137 <at> debbugs.gnu.org
Received: via spool by 19137-submit <at> debbugs.gnu.org id=B19137.141752327219634
          (code B ref 19137); Tue, 02 Dec 2014 12:28:02 +0000
Received: (at 19137) by debbugs.gnu.org; 2 Dec 2014 12:27:52 +0000
Received: from localhost ([127.0.0.1]:51473 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XvmYZ-00056c-UV
	for submit <at> debbugs.gnu.org; Tue, 02 Dec 2014 07:27:52 -0500
Received: from rrzmta2.uni-regensburg.de ([194.94.155.52]:45899)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <Ulrich.Windl@HIDDEN>)
 id 1XvmYX-00056N-3L
 for 19137 <at> debbugs.gnu.org; Tue, 02 Dec 2014 07:27:50 -0500
Received: from rrzmta2.uni-regensburg.de (localhost [127.0.0.1])
 by localhost (Postfix) with SMTP id 9A1C752C91
 for <19137 <at> debbugs.gnu.org>; Tue,  2 Dec 2014 13:27:47 +0100 (CET)
Received: from gwsmtp1.uni-regensburg.de (gwsmtp1.uni-regensburg.de
 [132.199.5.51])
 by rrzmta2.uni-regensburg.de (Postfix) with ESMTP id 9B37354F9C
 for <19137 <at> debbugs.gnu.org>; Tue,  2 Dec 2014 13:27:23 +0100 (CET)
Received: from uni-regensburg-smtp1-MTA by gwsmtp1.uni-regensburg.de
 with Novell_GroupWise; Tue, 02 Dec 2014 13:27:23 +0100
Message-Id: <547DBE39020000A10001827D@HIDDEN>
X-Mailer: Novell GroupWise Internet Agent 14.0.1 
Date: Tue, 02 Dec 2014 13:27:21 +0100
From: "Ulrich Windl" <Ulrich.Windl@HIDDEN>
References: <546EFCD0020000A100017F03@HIDDEN>
 <CAACXqO_W_rmbckni-kmndKbB9OMu-z=815PgFbbH_E0aCBLUyw@HIDDEN>
In-Reply-To: <CAACXqO_W_rmbckni-kmndKbB9OMu-z=815PgFbbH_E0aCBLUyw@HIDDEN>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

>>> Håkon Løvdal <hlovdal@HIDDEN> schrieb am 21.11.2014 um 17:02 in
Nachricht
<CAACXqO_W_rmbckni-kmndKbB9OMu-z=815PgFbbH_E0aCBLUyw@HIDDEN>:
> On 21 November 2014 08:50, Ulrich Windl
> <Ulrich.Windl@HIDDEN> wrote:
>> GNU Parted 2.3 creates an invalid Protective MBR (for a 3MB test image):
> 
> Hi. Version 2.3 is quite old, can you reproduce this with the latest
> version, 3.2?

parted-3.2 has still the same problems (well, if nobody fixed them):

Legacy MBR:
    MBR Signature     = aa55
    Unique Signature  = 00000000

    Partition 1:
        Boot Indicator    : non-bootable
        Starting Cylinder =          0
        Starting Head     =          1
        Starting Sector   =          0
        System ID         =       0xee
        Ending Cylinder   =       1023
        Ending Head       =         63
        Ending Sector     =        254
        Relative Sectors  =          1
        Total Sectors     =        999
---
There is still the Problem that starting C/H/S is 0/1/0 which does not match
"Relative Sectors", just as Ending C/H/S does not match Relative Sectors +
Total Sectors

> 
> BR Håkon Løvdal








Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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