NetBSD Problem Report #37353
From martin@duskware.de Sat Nov 10 11:58:35 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id EF7DB63B8D7
for <gnats-bugs@gnats.netbsd.org>; Sat, 10 Nov 2007 11:58:34 +0000 (UTC)
Message-Id: <20071110054114.CBC1963B8D7@narn.NetBSD.org>
Date: Sat, 10 Nov 2007 05:41:14 +0000 (UTC)
From: ronr@econet.com
Reply-To: ronr@econet.com
To: netbsd-bugs-owner@NetBSD.org
Subject: gpt migrate fails if a NetBSD disklabel partition exists
X-Send-Pr-Version: www-1.0
>Number: 37353
>Category: bin
>Synopsis: gpt migrate fails if a NetBSD disklabel partition exists
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: jnemeth
>State: analyzed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Nov 10 12:00:00 +0000 2007
>Closed-Date:
>Last-Modified: Fri Sep 26 21:38:55 +0000 2014
>Originator: Ronald Roskens
>Release: NetBSD 4.0_RC4
>Organization:
>Environment:
NetBSD localhost 4.0_RC4 NetBSD 4.0_RC4 (GENERIC) #0: Thu Nov 8 02:07:30 PST 2007 builds@wb34:/home/builds/ab/netbsd-4-0-RC4/i386/200711080452Z-obj/home/builds/ab/netbsd-4-0-RC4/src/sys/arch/i386/compile/GENERIC i386
>Description:
The command "gpt migrate <disk>" is supposed to convert an existing i386 MBR to a GPT. It however does not know how to deal with NetBSD disklabel partitions. When run against a disk with a netbsd disklabel, it gives an error about an unknown partition type 169.
Code inspection in src/sbin/gpt/migrate.c shows that it only knows how to handle the FreeBSD disklabel case for type 165.
>How-To-Repeat:
# gpt migrate <disk>
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: bin-bug-people->jnemeth
Responsible-Changed-By: jnemeth@NetBSD.org
Responsible-Changed-When: Fri, 26 Sep 2014 21:38:55 +0000
Responsible-Changed-Why:
I've been working on gpt(8).
State-Changed-From-To: open->analyzed
State-Changed-By: jnemeth@NetBSD.org
State-Changed-When: Fri, 26 Sep 2014 21:38:55 +0000
State-Changed-Why:
This was fixed in migrate.c:1.9 and migrate.c:1.11.
Needs pullup to active branches.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.