NetBSD Problem Report #37353

From  Sat Nov 10 11:58:35 2007
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id EF7DB63B8D7
	for <>; Sat, 10 Nov 2007 11:58:34 +0000 (UTC)
Message-Id: <>
Date: Sat, 10 Nov 2007 05:41:14 +0000 (UTC)
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
>Last-Modified:  Fri Sep 26 21:38:55 +0000 2014
>Originator:     Ronald Roskens
>Release:        NetBSD 4.0_RC4
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
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.
# gpt migrate <disk>



Responsible-Changed-From-To: bin-bug-people->jnemeth
Responsible-Changed-When: Fri, 26 Sep 2014 21:38:55 +0000
I've been working on gpt(8).

State-Changed-From-To: open->analyzed
State-Changed-When: Fri, 26 Sep 2014 21:38:55 +0000
This was fixed in migrate.c:1.9 and migrate.c:1.11.
Needs pullup to active branches.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.