NetBSD Problem Report #60265
From martin@duskware.de Fri May 15 12:17:07 2026
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.netbsd.org", Issuer "R13" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 7C12E1A9239
for <gnats-bugs@gnats.NetBSD.org>; Fri, 15 May 2026 12:17:07 +0000 (UTC)
Message-Id: <20260515121704.A4BC5E1FCF4@mail.duskware.de>
Date: Fri, 15 May 2026 14:16:59 +0200 (CEST)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: sysinst gets confused by "broken" GPTs
X-Send-Pr-Version: 3.95
X-From4GNATS: "martin@NetBSD.org via gnats" <gnats-admin@NetBSD.org>
>Number: 60265
>Category: install
>Synopsis: sysinst gets confused by "broken" GPTs
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: install-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri May 15 12:20:00 +0000 2026
>Originator: Martin Husemann
>Release: NetBSD 11.99.6
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD big-apple.aprisoft.de 11.99.6 NetBSD 11.99.6 (POWERMAC_G5.MP) #160: Tue May 12 10:25:34 CEST 2026 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/macppc/compile/POWERMAC_G5.MP macppc
Architecture: powerpc
Machine: macppc
>Description:
When trying to install to a disk (or USB stick) with a broken GPT,
sysinst will get confused and unable to recover. It will try to create
a new GPT which fails:
gpt: /dev/rsd0: Device already contains a GPT, destroy it first
>How-To-Repeat:
Unclear, would always happen when "gpt show" does not list a secondary
header at the end of the disk (internally: "has_gpt" is then not set
in the disk's partition information within sysinst).
>Fix:
Recognize broken GPTs and offer to repair them?
Recognize failure to create a GPT and offer wiping before retrying?
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.