GNU bug report logs - #19137
mklabel gpt created invalid Protective MBR

Previous Next

Package: parted;

Reported by: "Ulrich Windl" <Ulrich.Windl <at> rz.uni-regensburg.de>

Date: Fri, 21 Nov 2014 07:52:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: "Brian C. Lane" <bcl <at> redhat.com>
To: 19137 <at> debbugs.gnu.org
Subject: bug#19137: mklabel gpt created invalid Protective MBR
Date: Fri, 21 Nov 2014 12:15:17 -0800
On Fri, Nov 21, 2014 at 05:02:40PM +0100, Håkon Løvdal wrote:
> On 21 November 2014 08:50, Ulrich Windl
> <Ulrich.Windl <at> rz.uni-regensburg.de> 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?

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 = PED_CPU_TO_LE32 (dev->length -
1UL);

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




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

Previous Next


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