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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: parted; Reported by: "Hans Peter Würmli" <h.p.wuermli@HIDDEN>; dated Sat, 12 Nov 2016 18:03:01 UTC; Maintainer for parted is bug-parted@HIDDEN.

Message received at 24930 <at> debbugs.gnu.org:


Received: (at 24930) by debbugs.gnu.org; 19 Apr 2017 13:27:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 19 09:27:34 2017
Received: from localhost ([127.0.0.1]:55718 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1d0pdt-00089Y-Ni
	for submit <at> debbugs.gnu.org; Wed, 19 Apr 2017 09:27:33 -0400
Received: from mail-ua0-f177.google.com ([209.85.217.177]:34064)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <phillsusi@HIDDEN>) id 1d0pdr-00089J-R9
 for 24930 <at> debbugs.gnu.org; Wed, 19 Apr 2017 09:27:32 -0400
Received: by mail-ua0-f177.google.com with SMTP id h2so16229631uaa.1
 for <24930 <at> debbugs.gnu.org>; Wed, 19 Apr 2017 06:27:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:subject:to:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-transfer-encoding;
 bh=wZmpfql3GZwM+GyE7U7D+hrsjkZ++uKcsyjxn95eip0=;
 b=G1xsIUUxINn8XOJVkigSkFdgbOpkMpObpZIRWVvP0irboAJDPPAJn7X15hhykk5Y6E
 Y1r2XcWtTlWK0wFzwksXvs8RsdF3dJOZHGfPHdmavw9v3seckmVN4r3i+IMEg2gBMpLw
 RgPy8VvnQcUtaO9B+tfPCUgh/RCjuRdWpudlwvs6RK7QhrvaxW19FhsmvjwQ9ck110OK
 bvnhAlvQK6wU+kEa6xXCBz1nSxSmMWdtq3A4F4pbfqeqbqZ/daA7IeYxELa8VOaYKS4S
 WP6XXhnQWLQa7eDs+Sz+XnKJa+5l8pNm61r/xe0ShDmmDINLDhW+b2hTEJ51Kit/urky
 I+DA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:subject:to:references:from:message-id
 :date:user-agent:mime-version:in-reply-to:content-transfer-encoding;
 bh=wZmpfql3GZwM+GyE7U7D+hrsjkZ++uKcsyjxn95eip0=;
 b=BZV9EuDwF1rrYklTA4fYNiQqcnMMA/0qSL3fPTqvVVTEFyOUZY9HvD54UHAEi7kzD5
 Qmlyxlb06/kVmmYVZrdTGPUS7GzjfxutOOE5QWWzV/so8tWUDf8b7+5mQZF4PGeyANAH
 OLzp3OBm53Ig7Z6Awebio6vIPUsdat/FlONFhsbcBzj8h8jlVdO0JWV77k5X1UlhYfk/
 JlL/c2Lf97TVNbdAxSthc4WzC7M3ljkSRoR78l3n6e0NhJXQ5pEHEWgZdjvKAO+hTngq
 HTdCSFIQqafHr9lhjrEFPm8bcBpEejH9bjpeDWBV9PZRKxD5wSnne7rIWahGpTYl5dVt
 QWgg==
X-Gm-Message-State: AN3rC/5uyYqOLJq1j/Kvc5FDON83SmwPZQi8cUFJSGw30Qt60ke+7wNE
 zjxh8pBgb1nDEVGki2k=
X-Received: by 10.159.52.198 with SMTP id b6mr1120059uac.155.1492608446278;
 Wed, 19 Apr 2017 06:27:26 -0700 (PDT)
Received: from [10.1.1.184] (fl-67-77-88-12.sta.embarqhsd.net. [67.77.88.12])
 by smtp.googlemail.com with ESMTPSA id
 89sm99114vkq.31.2017.04.19.06.27.25
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 19 Apr 2017 06:27:25 -0700 (PDT)
Subject: Re: bug#24930: Parted fails after reordering of partitions with fdisk
To: =?UTF-8?Q?Hans_Peter_W=c3=bcrmli?= <h.p.wuermli@HIDDEN>,
 24930 <at> debbugs.gnu.org
References: <1478944509.3692.1.camel@HIDDEN>
From: Phil Susi <psusi@HIDDEN>
Message-ID: <2b6c336a-b43c-1078-1f78-3855b542490b@HIDDEN>
Date: Wed, 19 Apr 2017 09:29:08 -0400
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <1478944509.3692.1.camel@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 24930
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
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.2 (/)

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@HIDDEN) (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.






Information forwarded to bug-parted@HIDDEN:
bug#24930; Package parted. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 12 Nov 2016 18:02:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 12 13:02:06 2016
Received: from localhost ([127.0.0.1]:55113 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1c5ccw-0001Gl-6J
	for submit <at> debbugs.gnu.org; Sat, 12 Nov 2016 13:02:06 -0500
Received: from eggs.gnu.org ([208.118.235.92]:35178)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <h.p.wuermli@HIDDEN>) id 1c5V1w-0003nf-9g
 for submit <at> debbugs.gnu.org; Sat, 12 Nov 2016 04:55:24 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <h.p.wuermli@HIDDEN>) id 1c5V1q-0004Qi-4b
 for submit <at> debbugs.gnu.org; Sat, 12 Nov 2016 04:55:18 -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.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM,
 HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:37307)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <h.p.wuermli@HIDDEN>)
 id 1c5V1q-0004Qe-0k
 for submit <at> debbugs.gnu.org; Sat, 12 Nov 2016 04:55:18 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:54381)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <h.p.wuermli@HIDDEN>) id 1c5V1o-0002LT-Q9
 for bug-parted@HIDDEN; Sat, 12 Nov 2016 04:55:17 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <h.p.wuermli@HIDDEN>) id 1c5V1k-0004Q6-Uj
 for bug-parted@HIDDEN; Sat, 12 Nov 2016 04:55:16 -0500
Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:37080)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <h.p.wuermli@HIDDEN>)
 id 1c5V1k-0004Q2-N9
 for bug-parted@HIDDEN; Sat, 12 Nov 2016 04:55:12 -0500
Received: by mail-wm0-x234.google.com with SMTP id t79so18623004wmt.0
 for <bug-parted@HIDDEN>; Sat, 12 Nov 2016 01:55:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:message-id:subject:to:date:mime-version;
 bh=VEf7rY7AT1dDgJ2Pl0C2RlBl0QmsEYyGOT1c6DyY694=;
 b=fM19OtqGF7FZZtVV6RrKYkt1Nz3qG4ety455jp/9+Eu+bKpBnfxkz3A418YvLiVvQf
 TnZ3SGrd7t5e3AHFTsqufM5ojxgYXL3xBCcwkq7mrxp7SpiYzC8a087iIg/QeCnjMGAT
 ZfM5Jl/MJiXY3fKcg6gk1vd9cR2dQGMkWgAUzsuOE8lDczikBtiWIKzz4hsrSrHBM2vH
 JBAnl4KRKFF3F6F/sFlQ8wBycsLZetLH7gVpxscbr4TlhVA9WZISRJidyI7PbGZ/uWMe
 LAK6nmpd06KuUWwmdMi5ZdzI8vRNwZ+fO1u21mxallEo714DJMYcY+azOt+y/X8VtLkm
 tesg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:from:message-id:subject:to:date:mime-version;
 bh=VEf7rY7AT1dDgJ2Pl0C2RlBl0QmsEYyGOT1c6DyY694=;
 b=WhClW10C7KKR8Tc6s8qO390XUQEwFuLUX6PIcloxbl20UHs3OwwcXf65c9JMD7PpoY
 SpMhxFEutPO2z1FhOm6keEITs1N/pP4iQTuuFvBeP444xionc6BRopL6pSq1Zc4VKeug
 k7mC1SnB7MpQp89/ZO2YyzAFfFy80u1SDqriNy0CAK/+MLUaTZ31j2nDmATc5Idx2W/a
 NbZVoLtEZ2sKE8zSx4ZSgl+JScxKdiY23mxQcLv19vHiEScreJl/J8lC8sOFYSU3r1g4
 0+vaYFaAYi4EIVPibS7lhvu0LfOxJYfldDJeHJ3r7dvjHdS4ROPrF7gMaKRjQyS95zxT
 7S7A==
X-Gm-Message-State: ABUngvfGzx4//bdpSRr1nYAYxv3O/d+w0ooEnPeQztj0AGZJgH6GZj/YOJ3LxNx4ogTalw==
X-Received: by 10.28.131.1 with SMTP id f1mr2165855wmd.43.1478944511021;
 Sat, 12 Nov 2016 01:55:11 -0800 (PST)
Received: from noah-nofen2.fritz.box (178-83-153-40.dynamic.hispeed.ch.
 [178.83.153.40])
 by smtp.gmail.com with ESMTPSA id s133sm23636594wmd.19.2016.11.12.01.55.10
 for <bug-parted@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sat, 12 Nov 2016 01:55:10 -0800 (PST)
From: "Hans Peter =?ISO-8859-1?Q?W=FCrmli?=" <h.p.wuermli@HIDDEN>
X-Google-Original-From: Hans Peter =?ISO-8859-1?Q?W=FCrmli?=
 <H.P.Wuermli@HIDDEN>
Message-ID: <1478944509.3692.1.camel@HIDDEN>
Subject: Parted fails after reordering of partitions with fdisk
To: bug-parted@HIDDEN
Date: Sat, 12 Nov 2016 10:55:09 +0100
Content-Type: multipart/alternative; boundary="=-Cul3YjPFVO65j6LPqlDv"
X-Mailer: Evolution 3.22.1-2 
Mime-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sat, 12 Nov 2016 13:02:05 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
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: -4.0 (----)


--=-Cul3YjPFVO65j6LPqlDv
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit


My system is Debian testing and kernel version "Linux version 4.7.0-1-
amd64 (debian-kernel@HIDDEN) (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@HIDDEN", which I am
dutifully doing.

Kind regards

Hans Peter
--=-Cul3YjPFVO65j6LPqlDv
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit

<html><head></head><body><div><br></div><div>My system is Debian testing and kernel version "Linux version 4.7.0-1-amd64 (<a href="mailto:debian-kernel@HIDDEN">debian-kernel@HIDDEN</a>) (gcc version 5.4.1 20160904 (Debian 5.4.1-2) ) #1 SMP Debian 4.7.8-1 (2016-10-19)".&nbsp;</div><div><br></div><div>GNU Parted has version 3.2.</div><div><br></div><div>I reordered partitions to their natural order using fdisk. After rebooting and using gparted (or parted) I get an error with message&nbsp;"Assertion (metadata_length &gt; 0) at ../../../libparted/labels/dos.c:2313 in function add_logical_part_metadata() failed".</div><div><br></div><div>"partprobe /dev/sda" tells me that "A bug has been detected in GNU Parted...Please email a bug report to <a href="mailto:bug-parted@HIDDEN">bug-parted@HIDDEN</a>", which I am dutifully doing.</div><div><br></div><div>Kind regards</div><div><br></div><div>Hans Peter</div></body></html>
--=-Cul3YjPFVO65j6LPqlDv--





Acknowledgement sent to "Hans Peter Würmli" <h.p.wuermli@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-parted@HIDDEN. Full text available.
Report forwarded to bug-parted@HIDDEN:
bug#24930; Package parted. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
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.