GNU bug report logs - #24930
Parted fails after reordering of partitions with fdisk

Previous Next

Package: parted;

Reported by: "Hans Peter Würmli" <h.p.wuermli <at> gmail.com>

Date: Sat, 12 Nov 2016 18:03:01 UTC

Severity: normal

To reply to this bug, email your comments to 24930 AT debbugs.gnu.org.

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#24930; Package parted. (Sat, 12 Nov 2016 18:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Hans Peter Würmli" <h.p.wuermli <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-parted <at> gnu.org. (Sat, 12 Nov 2016 18:03:02 GMT) Full text and rfc822 format available.

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

From: "Hans Peter Würmli" <h.p.wuermli <at> gmail.com>
To: bug-parted <at> gnu.org
Subject: Parted fails after reordering of partitions with fdisk
Date: Sat, 12 Nov 2016 10:55:09 +0100
[Message part 1 (text/plain, inline)]
My system is Debian testing and kernel version "Linux version 4.7.0-1-
amd64 (debian-kernel <at> lists.debian.org) (gcc version 5.4.1 20160904
(Debian 5.4.1-2) ) #1 SMP Debian 4.7.8-1 (2016-10-19)". 

GNU Parted has version 3.2.

I reordered partitions to their natural order using fdisk. After
rebooting and using gparted (or parted) I get an error with
message "Assertion (metadata_length > 0) at
../../../libparted/labels/dos.c:2313 in function
add_logical_part_metadata() failed".

"partprobe /dev/sda" tells me that "A bug has been detected in GNU
Parted...Please email a bug report to bug-parted <at> gnu.org", which I am
dutifully doing.

Kind regards

Hans Peter
[Message part 2 (text/html, inline)]

Information forwarded to bug-parted <at> gnu.org:
bug#24930; Package parted. (Wed, 19 Apr 2017 13:28:01 GMT) Full text and rfc822 format available.

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

From: Phil Susi <psusi <at> ubuntu.com>
To: Hans Peter Würmli <h.p.wuermli <at> gmail.com>,
 24930 <at> debbugs.gnu.org
Subject: Re: bug#24930: Parted fails after reordering of partitions with fdisk
Date: Wed, 19 Apr 2017 09:29:08 -0400
On 11/12/2016 4:55 AM, Hans Peter Würmli wrote:
> 
> My system is Debian testing and kernel version "Linux version 4.7.0-1-
> amd64 (debian-kernel <at> lists.debian.org) (gcc version 5.4.1 20160904
> (Debian 5.4.1-2) ) #1 SMP Debian 4.7.8-1 (2016-10-19)". 
> 
> GNU Parted has version 3.2.
> 
> I reordered partitions to their natural order using fdisk. After
> rebooting and using gparted (or parted) I get an error with
> message "Assertion (metadata_length > 0) at
> ../../../libparted/labels/dos.c:2313 in function
> add_logical_part_metadata() failed".

Finally, a clue as to how people are having this happen.  I have no idea
why fdisk has that option or why anyone would ever use it, but it seems
like that is the culprit for ending up with these goofy partition
tables.  Please provide the output of fdisk -l, as well as dd
if=/dev/sda count=1 | hd.






This bug report was last modified 8 years and 60 days ago.

Previous Next


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