From unknown Mon Aug 18 11:22:05 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#32666 <32666@debbugs.gnu.org> To: bug#32666 <32666@debbugs.gnu.org> Subject: Status: Assertion (metadata_length > 0) failed Reply-To: bug#32666 <32666@debbugs.gnu.org> Date: Mon, 18 Aug 2025 18:22:05 +0000 retitle 32666 Assertion (metadata_length > 0) failed reassign 32666 parted submitter 32666 Nikolaus Rath severity 32666 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 08 16:34:58 2018 Received: (at submit) by debbugs.gnu.org; 8 Sep 2018 20:34:58 +0000 Received: from localhost ([127.0.0.1]:50635 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fyjwY-0004rC-CW for submit@debbugs.gnu.org; Sat, 08 Sep 2018 16:34:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40989) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fyjwW-0004qy-4c for submit@debbugs.gnu.org; Sat, 08 Sep 2018 16:34:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fyjwQ-0008FD-9k for submit@debbugs.gnu.org; Sat, 08 Sep 2018 16:34:50 -0400 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,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54054) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fyjwQ-0008EK-3m for submit@debbugs.gnu.org; Sat, 08 Sep 2018 16:34:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyjwM-0001vy-Kg for bug-parted@gnu.org; Sat, 08 Sep 2018 16:34:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fyjq8-0007qc-Sm for bug-parted@gnu.org; Sat, 08 Sep 2018 16:28:24 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:50539) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fyjq8-0007lr-L7 for bug-parted@gnu.org; Sat, 08 Sep 2018 16:28:20 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 05C0920F02 for ; Sat, 8 Sep 2018 16:28:19 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sat, 08 Sep 2018 16:28:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=+fHSFu+N/HYItSkeblb7AtBSGDRee 3Ozg5sYPFSk8qk=; b=Cisa8zXyzC8NqEh5V+mD+c1wx6pFJK9I7JQyXJ8jCIm/d 7GX0OLjAFFlG8EaRUI9/kdjmxUBnCUJJD8c/ZGGv36TjicjtcgU5374TYDyK0CjB mlw2oeV3x4mWtcWlOr+JN8BQHoGw+cmrm0mGn0Joo/TLkHswt5KC44CbLDTRBnU9 CgDAKHZ3IdL5f3kp0pskikpM5dnHLuRpPoaN1B+XNMD11h3xuOBXviZ1zHW6HdwJ AhkcMNNW3cHPvtBLZi+QH+TG/CdcOa3x8Q9fFIvPJ6i0hiaecypkpcD8dnWFM0kY xQbSrJbDNEOp4DOyUixnBHhrdbPMOLrfB29RraMAA== X-ME-Proxy: X-ME-Sender: Received: from ebox.rath.org (ebox.rath.org [185.3.94.194]) by mail.messagingengine.com (Postfix) with ESMTPA id 6B63B10299 for ; Sat, 8 Sep 2018 16:28:18 -0400 (EDT) Received: from vostro.rath.org (vostro [192.168.12.4]) by ebox.rath.org (Postfix) with ESMTPS id 5C35146 for ; Sat, 8 Sep 2018 20:28:17 +0000 (UTC) Received: by vostro.rath.org (Postfix, from userid 1000) id 165DEE00EE; Sat, 8 Sep 2018 21:28:17 +0100 (BST) From: Nikolaus Rath To: bug-parted@gnu.org Subject: Assertion (metadata_length > 0) failed Date: Sat, 08 Sep 2018 21:28:16 +0100 Message-ID: <87in3fu42n.fsf@vostro.rath.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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.3 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.3 (-----) Hello, On my system, parted crashes with: # parted /dev/sdb GNU Parted 3.2 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) p=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Backtrace has 15 calls on stack: 15: /lib/x86_64-linux-gnu/libparted.so.2(ped_assert+0x45) [0x7f638abdafc5] 14: /lib/x86_64-linux-gnu/libparted.so.2(+0x23b3f) [0x7f638abf1b3f] 13: /lib/x86_64-linux-gnu/libparted.so.2(+0x119fa) [0x7f638abdf9fa] 12: /lib/x86_64-linux-gnu/libparted.so.2(ped_disk_add_partition+0x283) [0= x7f638abe0313] 11: /lib/x86_64-linux-gnu/libparted.so.2(+0x233ec) [0x7f638abf13ec] 10: /lib/x86_64-linux-gnu/libparted.so.2(+0x23480) [0x7f638abf1480] 9: /lib/x86_64-linux-gnu/libparted.so.2(+0x23480) [0x7f638abf1480] 8: /lib/x86_64-linux-gnu/libparted.so.2(+0x23426) [0x7f638abf1426] 7: /lib/x86_64-linux-gnu/libparted.so.2(+0x24455) [0x7f638abf2455] 6: /lib/x86_64-linux-gnu/libparted.so.2(ped_disk_new+0x48) [0x7f638abdff1= 8] 5: parted(+0x73fe) [0x55d13304c3fe] 4: parted(interactive_mode+0x120) [0x55d1330520b0] 3: parted(main+0x142b) [0x55d13304b1eb] 2: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0x7f638a3d82e= 1] 1: parted(_start+0x2a) [0x55d13304b24a] You found a bug in GNU Parted! Here's what you have to do: Don't panic! The bug has most likely not affected any of your data. Help us to fix this bug by doing the following: [...] Your report should contain the version of this release (3.2) along with the error message below, the output of parted DEVICE unit co print unit s print and the following history of commands you entered. Also include any additional information about your setup you consider important. Assertion (metadata_length > 0) at ../../../libparted/labels/dos.c:2313 in = function add_logical_part_metadata() failed. Aborted=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 # parted /dev/sdb unit co print unit s print Backtrace has 15 calls on stack: 15: /lib/x86_64-linux-gnu/libparted.so.2(ped_assert+0x45) [0x7f7887268fc5] [same as above] Best, -Nikolaus --=20 GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F =C2=BBTime flies like an arrow, fruit flies like a Banana.=C2= =AB From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 08 16:36:11 2018 Received: (at 32666) by debbugs.gnu.org; 8 Sep 2018 20:36:11 +0000 Received: from localhost ([127.0.0.1]:50641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fyjxi-0004tx-Qu for submit@debbugs.gnu.org; Sat, 08 Sep 2018 16:36:11 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:45327) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fyjxi-0004tr-02 for 32666@debbugs.gnu.org; Sat, 08 Sep 2018 16:36:10 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id AD00021924 for <32666@debbugs.gnu.org>; Sat, 8 Sep 2018 16:36:09 -0400 (EDT) Received: from web2 ([10.202.2.212]) by compute1.internal (MEProxy); Sat, 08 Sep 2018 16:36:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=o28/Esv0SY7//0HOvM4rPZMC2RwCS lNKlewApAtNGo8=; b=VY+nJ6OlVj3uO8smzMA/yjFbFegMtceYzYkurSPgVEiXC brS4djbRwERNCc0xSeSh+XUVe8mnNHtLEUl7FckZhWRLCJWkN3UsaNPYj7ljMdql QGOoFmdrj8AImrGXtQeSN6F65KloZ0XATQGHsJtVXa4q51Fz1zLzQiK37CH8nn0g 7PY2V6Cc5Ydv4RImZv/liwlvMixDbWvf0BoMgCffY69qeTn00IdxC/J9yDHOSJmX ZlL5uhzerc3QuJ4i9LpBaP5sDWch2KshrUYdoc1Cm/QDbK+54hdpgV2shZmyjMGM XeR0FXY36lk1agUvtbO7ZZEyRuB6c0O/j/Uk5FDZw== X-ME-Proxy: X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 1A20662673; Sat, 8 Sep 2018 16:36:09 -0400 (EDT) Message-Id: <1536438969.3011146.1501425632.29290208@webmail.messagingengine.com> From: Nikolaus Rath To: 32666@debbugs.gnu.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: multipart/alternative; boundary="_----------=_153643896930111460" X-Mailer: MessagingEngine.com Webmail Interface - ajax-1234af23 Date: Sat, 08 Sep 2018 21:36:09 +0100 Subject: fdisk output X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32666 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) This is a multi-part message in MIME format. --_----------=_153643896930111460 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Here's what regular fdisk says: # fdisk -l /dev/sdb Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors Units: sectors of 1 * 512 =3D 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xe7c4933a Device Boot Start End Sectors Size Id Type /dev/sdb1 * 2048 206847 204800 100M 7 HPFS/NTFS/exFAT/dev= /sdb2 206848 738138111 737931264 351.9G 7 HPFS/NTFS/exFAT/dev/sdb= 3 738138112 739059711 921600 450M 27 Hidden NTFS WinRE/dev/sdb4 739059712 976773119 237713408 113.4G 5 Extended /dev/sdb5 739061760 739129343 67584 33M 83 Linux /dev/sdb6 739131392 739588095 456704 223M 83 Linux /dev/sdb7 739588096 773142527 33554432 16G 8e Linux LVM /dev/sdb8 773144576 976773119 203628544 97.1G 8e Linux LVM Best, -Nikolaus -- GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F =C2=BBTime flies like an arrow, fruit flies like a Banana.=C2= =AB --_----------=_153643896930111460 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"
Here's what regular fdisk says:

# fdisk -l /dev/sdb
Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 =3D 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xe7c4933a

Device     Boot     Start = ;      End   Sectors   Size Id= Type
/dev/sdb1  *         2048=     206847    204800   100M  7= HPFS/NTFS/exFAT
/dev/sdb2          206848= 738138111 737931264 351.9G  7 HPFS/NTFS/exFAT
/dev/sdb3       738138112 739059711 = ;   921600   450M 27 Hidden NTFS WinRE
/dev/sdb4       739059712 976773119 2377= 13408 113.4G  5 Extended
/dev/sdb5       739061760 739129343 = ;    67584    33M 83 Linux
/dev/sdb6       739131392 739588095 = ;   456704   223M 83 Linux
/dev/sdb7       739588096 773142527 = ; 33554432    16G 8e Linux LVM
/dev/sdb8       773144576 976773119 2036= 28544  97.1G 8e Linux LVM

Best,
-Nikolaus

--
GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D11= 3 FCAC 3C4E 599F

        &n= bsp;    =C2=BBTime flies like an arrow, fruit flies like a B= anana.=C2=AB


--_----------=_153643896930111460-- From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 24 22:48:48 2018 Received: (at 32666) by debbugs.gnu.org; 25 Sep 2018 02:48:48 +0000 Received: from localhost ([127.0.0.1]:52670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g4dP6-000262-5g for submit@debbugs.gnu.org; Mon, 24 Sep 2018 22:48:48 -0400 Received: from vulcan.kevinlocke.name ([107.191.43.88]:45318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g4dN5-00021w-Sm for 32666@debbugs.gnu.org; Mon, 24 Sep 2018 22:46:44 -0400 Received: from kevinolos (unknown [IPv6:2001:470:b:5c3:49b9:16cc:5555:f764]) (Authenticated sender: kevin@kevinlocke.name) by vulcan.kevinlocke.name (Postfix) with ESMTPSA id 15D269A1363 for <32666@debbugs.gnu.org>; Tue, 25 Sep 2018 02:46:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=kevinlocke.name; s=vulcan; t=1537843603; bh=5X6aVqdvYFds3MQCUDTc4fCqbDBCHzgc7O/L5cw00lM=; h=Date:From:To:Subject:References:In-Reply-To:From; b=Fe4CR+g8Fc7wE7+1Rnzt7u5WTgbF0lWMB/17MbrLoQJpFaw22cqhHPiJdqlh/JnMV TnL7gsbqofY+ru6gE5q3PGkBCApJP8kw4OsvP73T+CSHqkgxBwCl+xjNHDfD2MWmp9 eT6PkC/pHmR/N8AiGeCley0iLfRouptJSwwwtmTQ= Received: by kevinolos (Postfix, from userid 1000) id 6FCB24A06D1; Mon, 24 Sep 2018 20:46:39 -0600 (MDT) Date: Mon, 24 Sep 2018 20:46:39 -0600 From: Kevin Locke To: 32666@debbugs.gnu.org Subject: Re: Assertion (metadata_length > 0) failed Message-ID: <20180925024639.GA28580@kevinolos> References: <87in3fu42n.fsf@vostro.rath.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87in3fu42n.fsf@vostro.rath.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32666 X-Mailman-Approved-At: Mon, 24 Sep 2018 22:48:46 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On Sat, 2018-09-08 at 21:28 +0100, Nikolaus Rath wrote: > On my system, parted crashes with: > > [...] > > Assertion (metadata_length > 0) at ../../../libparted/labels/dos.c:2313 in function > add_logical_part_metadata() failed. > > Aborted I encountered the same assertion failure from the resizepart command. I was able to get a full backtrace after building from current master (f0cfa958) with CFLAGS="-g -O0" as a result of running the command: parted /dev/sdb resizepart 5 976824319s #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51 #1 0x00007ffff7b3f2f1 in __GI_abort () at abort.c:79 #2 0x00007ffff7f7c80b in ped_assert ( cond_text=0x7ffff7fb75bc "metadata_length > 0", file=0x7ffff7fb7191 "dos.c", line=2305, function=0x7ffff7fb7930 <__PRETTY_FUNCTION__.5302> "add_logical_part_metadata") at debug.c:111 #3 0x00007ffff7f9ad96 in add_logical_part_metadata (disk=0x55555559b210, log_part=0x5555555a1f80) at dos.c:2305 #4 0x00007ffff7f9b13b in msdos_alloc_metadata (disk=0x55555559b210) at dos.c:2436 #5 0x00007ffff7f8135f in _disk_alloc_metadata (disk=0x55555559b210) at disk.c:1010 #6 0x00007ffff7f81782 in _disk_pop_update_mode (disk=0x55555559b210) at disk.c:1163 #7 0x00007ffff7f83968 in ped_disk_set_partition_geom (disk=0x55555559b210, part=0x5555555a1eb0, constraint=0x5555555949d0, start=976562176, end=976824319) at disk.c:2171 #8 0x000055555555da09 in do_resizepart (dev=0x7fffffffe4c0, diskp=0x7fffffffe4b8) at parted.c:1576 #9 0x0000555555559f09 in command_run (cmd=0x555555574b40, dev=0x7fffffffe4c0, diskp=0x7fffffffe4b8) at command.c:141 #10 0x00005555555638f6 in interactive_mode (dev=0x7fffffffe4c0, disk=0x7fffffffe4b8, cmd_list=0x55555556b6c0 ) at ui.c:1630 #11 0x000055555555fae2 in main (argc=0, argv=0x7fffffffe5c8) at parted.c:2356 The output of `parted /dev/sdb unit co print unit s print`: Model: ATA Samsung SSD 860 (scsi) Disk /dev/sdb: 1000GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 269MB 268MB primary 2 269MB 404MB 134MB primary 3 404MB 500GB 500GB primary 4 500GB 1000GB 500GB extended lba 5 500GB 500GB 134MB logical 6 500GB 996GB 496GB logical Model: ATA Samsung SSD 860 (scsi) Disk /dev/sdb: 1953525168s Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 2048s 526335s 524288s primary 2 526336s 788479s 262144s primary 3 788480s 976562174s 975773695s primary 4 976562175s 1953525167s 976962993s extended lba 5 976562176s 976824318s 262143s logical 6 976824320s 1945136559s 968312240s logical Let me know if there is any other information I can provide. Thanks, Kevin From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 15 12:11:21 2018 Received: (at submit) by debbugs.gnu.org; 15 Oct 2018 16:11:21 +0000 Received: from localhost ([127.0.0.1]:51000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gC5Sj-0003ON-FC for submit@debbugs.gnu.org; Mon, 15 Oct 2018 12:11:21 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gC5Sh-0003OA-Ml for submit@debbugs.gnu.org; Mon, 15 Oct 2018 12:11:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gC5Sb-0007Ts-Mi for submit@debbugs.gnu.org; Mon, 15 Oct 2018 12:11:14 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43729) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gC5Sb-0007Ta-F2 for submit@debbugs.gnu.org; Mon, 15 Oct 2018 12:11:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gC5Sa-0003dw-KT for bug-parted@gnu.org; Mon, 15 Oct 2018 12:11:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gC5SX-0007Qv-Dh for bug-parted@gnu.org; Mon, 15 Oct 2018 12:11:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53134) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gC5SX-0007Q0-7j for bug-parted@gnu.org; Mon, 15 Oct 2018 12:11:09 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BEC3799C4B for ; Mon, 15 Oct 2018 16:11:07 +0000 (UTC) Received: from lister.brianlane.com (ovpn-112-19.phx2.redhat.com [10.3.112.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 607B17A278 for ; Mon, 15 Oct 2018 16:11:07 +0000 (UTC) Date: Mon, 15 Oct 2018 09:11:05 -0700 From: "Brian C. Lane" To: bug-parted@gnu.org Subject: Re: bug#32666: Assertion (metadata_length > 0) failed Message-ID: <20181015161105.GA3490@lister.brianlane.com> References: <87in3fu42n.fsf@vostro.rath.org> <20180925024639.GA28580@kevinolos> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180925024639.GA28580@kevinolos> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Mon, 15 Oct 2018 16:11:07 +0000 (UTC) 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.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.1 (-----) On Mon, Sep 24, 2018 at 08:46:39PM -0600, Kevin Locke wrote: [snip] > Model: ATA Samsung SSD 860 (scsi) > Disk /dev/sdb: 1953525168s > Sector size (logical/physical): 512B/512B > Partition Table: msdos > Disk Flags: > > Number Start End Size Type File system Flags > 1 2048s 526335s 524288s primary > 2 526336s 788479s 262144s primary > 3 788480s 976562174s 975773695s primary > 4 976562175s 1953525167s 976962993s extended lba > 5 976562176s 976824318s 262143s logical > 6 976824320s 1945136559s 968312240s logical > > Let me know if there is any other information I can provide. Was this disk originally created by a current version of parted? The assertion isn't actually a bug unless it was parted creating it. It's telling us that the logical partitions haven't been created with enough space in front of them (2 sectors) for the extended boot record. eg. Partition 5 there should start at 976562177 -- Brian C. Lane (PST8PDT) From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 22 16:12:56 2019 Received: (at 32666-done) by debbugs.gnu.org; 22 Apr 2019 20:12:56 +0000 Received: from localhost ([127.0.0.1]:51680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIfJ9-00052D-OT for submit@debbugs.gnu.org; Mon, 22 Apr 2019 16:12:55 -0400 Received: from ec2-34-202-238-73.compute-1.amazonaws.com ([34.202.238.73]:42078 helo=vps.thesusis.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIfJ7-00051z-L0 for 32666-done@debbugs.gnu.org; Mon, 22 Apr 2019 16:12:54 -0400 Received: from localhost (localhost [127.0.0.1]) by vps.thesusis.net (Postfix) with ESMTP id 6AF08288A1; Mon, 22 Apr 2019 16:12:48 -0400 (EDT) Received: from vps.thesusis.net ([IPv6:::1]) by localhost (ip-172-26-1-203.ec2.internal [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id Gi09vZoGTfbS; Mon, 22 Apr 2019 16:12:48 -0400 (EDT) Received: by vps.thesusis.net (Postfix, from userid 1000) id 3DD5A288AA; Mon, 22 Apr 2019 16:12:48 -0400 (EDT) References: <87in3fu42n.fsf@vostro.rath.org> <1536438969.3011146.1501425632.29290208@webmail.messagingengine.com> User-agent: mu4e 0.9.18; emacs 25.2.2 From: Phillip Susi To: Nikolaus Rath Subject: Re: bug#32666: fdisk output In-reply-to: <1536438969.3011146.1501425632.29290208@webmail.messagingengine.com> Date: Mon, 22 Apr 2019 16:12:48 -0400 Message-ID: <87tvep7q9r.fsf@vps.thesusis.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 32666-done Cc: 32666-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) Nikolaus Rath writes: > /dev/sdb6 739131392 739588095 456704 223M 83 Linux > /dev/sdb7 739588096 773142527 33554432 16G 8e Linux LVM sdb7 starts in the very next sector after sdb6, so there is no room here for the EBR. From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 24 11:08:37 2019 Received: (at 32666) by debbugs.gnu.org; 24 Apr 2019 15:08:37 +0000 Received: from localhost ([127.0.0.1]:56191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJJVl-0004gf-Fs for submit@debbugs.gnu.org; Wed, 24 Apr 2019 11:08:37 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:41619) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJJVj-0004gQ-Fm for 32666@debbugs.gnu.org; Wed, 24 Apr 2019 11:08:36 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 11DD923176; Wed, 24 Apr 2019 11:08:30 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 24 Apr 2019 11:08:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rath.org; h=from :to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-type:content-transfer-encoding; s=fm2; bh= gZhN60b1YzxglfxKWCfw50Xg1elZb9igRGXi6CY9NTE=; b=Y/r4VlH2b/1n4HNj cAPsc8gN5VQCDvN31gg0vrWLepnLw+378Chd8Bp3pewSt4UJ/vmtCFYMD3P5uNtI lN5cMoL5vw/XZpteMpDgIKAbkfgQL5lFBqc3sJAbj86ndoky7M98KT4LThpCOiIi 5DoJJ7GOX2emxdoMq3n3NbHYLYK3PiQWIsEvG2VOee5nJY5cT54cLoyIPCXntb2I c2XxtVAl1Yzv3LfLEjbwN0k3qHG4jcmc8YxaAuzGAXllui3ogxbYQvJADM9KGuzd DqKfPyzrTrvgeze9ryqu3LmgCqffulVNz+9bfuZM+Nj3Bgaycd9MV26UVeQceweb nhPZgA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=gZhN60b1YzxglfxKWCfw50Xg1elZb9igRGXi6CY9N TE=; b=i/knGc68VadrU1Ilx1Q0FhYu+Q4G2u21IKAo6ChnaWtUsyE7hqf+QmSr7 vkR1VHkiqnFdDwfCpe+Dby+5mTSuvDZ8yEfg3mpSq7lvCr2tDiKOu3d1bPszSHjc /b2qEKG1Rql3rAecuk42C6FE6P7CkUyOoJaa1LoQ3PowDlPlaiZPiH123aTTqyZY 4XIPDE0M/yngO43Y11Q2ICU0M9cx9+meoBpFL+Xb8wOsSVjanHHwat9WGKT7lrq+ Z11Ee79JccJO5oV8H2Yehgcaor8EwdoQbxkE3yydzQWWm0U2YRGlYiZUj2dgATg0 uEatmaD8yNPcBmIqxX8KZGd9CtSzQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrhedugddvfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufhffjgfkfgggtgfgsehtqhdttddtreejnecuhfhrohhmpefpihhkohhl rghushcutfgrthhhuceopfhikhholhgruhhssehrrghthhdrohhrgheqnecukfhppeduke ehrdefrdelgedrudelgeenucfrrghrrghmpehmrghilhhfrhhomheppfhikhholhgruhhs sehrrghthhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from ebox.rath.org (ebox.rath.org [185.3.94.194]) by mail.messagingengine.com (Postfix) with ESMTPA id 325F4103CD; Wed, 24 Apr 2019 11:08:28 -0400 (EDT) Received: from thinkpad.rath.org (thinkpad [192.168.12.2]) by ebox.rath.org (Postfix) with ESMTPS id AEDA7E505; Wed, 24 Apr 2019 15:08:27 +0000 (UTC) Received: by thinkpad.rath.org (Postfix, from userid 1000) id 8384BC022D; Wed, 24 Apr 2019 16:08:26 +0100 (BST) From: Nikolaus Rath To: Phillip Susi Subject: Re: bug#32666: fdisk output References: <87in3fu42n.fsf@vostro.rath.org> <1536438969.3011146.1501425632.29290208@webmail.messagingengine.com> <87tvep7q9r.fsf@vps.thesusis.net> Date: Wed, 24 Apr 2019 16:08:26 +0100 In-Reply-To: <87tvep7q9r.fsf@vps.thesusis.net> (Phillip Susi's message of "Mon, 22 Apr 2019 16:12:48 -0400") Message-ID: <87mukf1lw5.fsf@thinkpad.rath.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32666 Cc: 32666@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Apr 22 2019, Phillip Susi wrote: > Nikolaus Rath writes: > >> /dev/sdb6 739131392 739588095 456704 223M 83 Linux >> /dev/sdb7 739588096 773142527 33554432 16G 8e Linux LVM > > sdb7 starts in the very next sector after sdb6, so there is no room here > for the EBR. ...right, but should that really result in a hard crash of the fdisk program? I think the proper behavior would be to print exactly what you wrote and exit gracefully :-) Best, -Nikolaus --=20 GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F =C2=BBTime flies like an arrow, fruit flies like a Banana.=C2= =AB From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 24 11:33:51 2019 Received: (at 32666) by debbugs.gnu.org; 24 Apr 2019 15:33:51 +0000 Received: from localhost ([127.0.0.1]:56245 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJJuB-0005Ns-C8 for submit@debbugs.gnu.org; Wed, 24 Apr 2019 11:33:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJJu7-0005Ne-Qz for 32666@debbugs.gnu.org; Wed, 24 Apr 2019 11:33:49 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E3AE37BDC0; Wed, 24 Apr 2019 15:33:41 +0000 (UTC) Received: from lister.brianlane.com (ovpn-112-24.phx2.redhat.com [10.3.112.24]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2548960C78; Wed, 24 Apr 2019 15:33:40 +0000 (UTC) Date: Wed, 24 Apr 2019 08:33:38 -0700 From: "Brian C. Lane" To: Nikolaus Rath Subject: Re: bug#32666: fdisk output Message-ID: <20190424153338.GI3794@lister.brianlane.com> References: <87in3fu42n.fsf@vostro.rath.org> <1536438969.3011146.1501425632.29290208@webmail.messagingengine.com> <87tvep7q9r.fsf@vps.thesusis.net> <87mukf1lw5.fsf@thinkpad.rath.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87mukf1lw5.fsf@thinkpad.rath.org> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 24 Apr 2019 15:33:41 +0000 (UTC) X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32666 Cc: 32666@debbugs.gnu.org, Phillip Susi X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) On Wed, Apr 24, 2019 at 04:08:26PM +0100, Nikolaus Rath wrote: > On Apr 22 2019, Phillip Susi wrote: > > Nikolaus Rath writes: > > > >> /dev/sdb6 739131392 739588095 456704 223M 83 Linux > >> /dev/sdb7 739588096 773142527 33554432 16G 8e Linux LVM > > > > sdb7 starts in the very next sector after sdb6, so there is no room here > > for the EBR. > > ...right, but should that really result in a hard crash of the fdisk > program? I think the proper behavior would be to print exactly what you > wrote and exit gracefully :-) Given the number of times this has come up it's probably worth looking into changing the assertion to something more understandable. -- Brian C. Lane (PST8PDT) From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 24 11:42:59 2019 Received: (at 32666) by debbugs.gnu.org; 24 Apr 2019 15:42:59 +0000 Received: from localhost ([127.0.0.1]:56251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJK31-0005az-A0 for submit@debbugs.gnu.org; Wed, 24 Apr 2019 11:42:59 -0400 Received: from ec2-34-202-238-73.compute-1.amazonaws.com ([34.202.238.73]:47362 helo=vps.thesusis.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJK30-0005al-0G for 32666@debbugs.gnu.org; Wed, 24 Apr 2019 11:42:58 -0400 Received: from localhost (localhost [127.0.0.1]) by vps.thesusis.net (Postfix) with ESMTP id 8417F2891A; Wed, 24 Apr 2019 11:42:52 -0400 (EDT) Received: from vps.thesusis.net ([127.0.0.1]) by localhost (ip-172-26-1-203.ec2.internal [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nWgrHS7HsrzS; Wed, 24 Apr 2019 11:42:48 -0400 (EDT) Received: by vps.thesusis.net (Postfix, from userid 1000) id AEF7F288DF; Wed, 24 Apr 2019 11:42:47 -0400 (EDT) References: <87in3fu42n.fsf@vostro.rath.org> <1536438969.3011146.1501425632.29290208@webmail.messagingengine.com> <87tvep7q9r.fsf@vps.thesusis.net> <87mukf1lw5.fsf@thinkpad.rath.org> <20190424153338.GI3794@lister.brianlane.com> User-agent: mu4e 0.9.18; emacs 25.2.2 From: Phillip Susi To: "Brian C. Lane" Subject: Re: bug#32666: fdisk output In-reply-to: <20190424153338.GI3794@lister.brianlane.com> Date: Wed, 24 Apr 2019 11:42:47 -0400 Message-ID: <87imv3o1e0.fsf@vps.thesusis.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 32666 Cc: 32666@debbugs.gnu.org, Nikolaus Rath X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) Brian C. Lane writes: > Given the number of times this has come up it's probably worth looking > into changing the assertion to something more understandable. I'd rather actually fix it to support having the EBR be located somewhere else. I have been meaning to do that for a few years now ;) From unknown Mon Aug 18 11:22:05 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 23 May 2019 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator