GNU bug report logs - #33389
parted not recognizing partitions in "non-standard" MBRs with valid partition tables

Previous Next

Package: parted;

Reported by: Marc Stenson <marcstenson <at> gmail.com>

Date: Wed, 14 Nov 2018 22:32:02 UTC

Severity: normal

Done: Phillip Susi <phill <at> thesusis.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Marc Stenson <marcstenson <at> gmail.com>
To: 33389 <at> debbugs.gnu.org
Subject: bug#33389: parted not recognizing partitions in "non-standard" MBRs with valid partition tables
Date: Thu, 15 Nov 2018 00:27:02 +0200
Hello,

While parted 2.3 had no issues with whatever was in the first 446 bytes 
of the MBR and only looked at the partition table, newer versions such 
as 3.2 seem to be thrown by unusual boot code (e.g. Grub4DOS) and either 
show the entire disk as unallocated space or as one big volume/partition 
with the file system of the first volume. This is despite the partition 
table being fully compliant and happily read by fdisk and sfdisk.

This may be a "feature" rather than a bug.   Please pardon my ignorance, 
perhaps newer partition table schemes require the first 446 bits to be 
parsed.  However it could save someone many hours of frustration if this 
was noted prominently in the documentation.

In my case It was fixed with a simple:
  dd if=/usr/lib/syslinux/mbr/mbr.bin of=/dev/sdb bs=446 count=1
after taking the requisite backups and a deep breath.

Thanks and regards,
Marc




This bug report was last modified 6 years and 91 days ago.

Previous Next


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