From harry@omnilan.de  Fri Sep  5 15:12:54 2008
Return-Path: <harry@omnilan.de>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id F1DC5106566C
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  5 Sep 2008 15:12:54 +0000 (UTC)
	(envelope-from harry@omnilan.de)
Received: from host.omnilan.net (host.omnilan.net [62.245.232.135])
	by mx1.freebsd.org (Postfix) with ESMTP id 78F6D8FC19
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  5 Sep 2008 15:12:54 +0000 (UTC)
	(envelope-from harry@omnilan.de)
Received: from tek.flintsbach.schmalzbauer.de (tek.flintsbach.schmalzbauer.de [172.21.2.3])
	by host.omnilan.net (8.13.8/8.13.8) with ESMTP id m85FCl7d081638
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 5 Sep 2008 17:12:52 +0200 (CEST)
	(envelope-from harry@titan.flintsbach.schmalzbauer.de)
Received: from titan.flintsbach.schmalzbauer.de (titan.flintsbach.schmalzbauer.de [IPv6:fec0::1:0:0:1:1])
	by tek.flintsbach.schmalzbauer.de (8.13.8/8.13.8) with ESMTP id m85FCld8001278
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 5 Sep 2008 17:12:47 +0200 (CEST)
	(envelope-from harry@titan.flintsbach.schmalzbauer.de)
Received: (from harry@localhost)
	by titan.flintsbach.schmalzbauer.de (8.14.3/8.14.3/Submit) id m85BivoA002700;
	Fri, 5 Sep 2008 13:44:57 +0200 (CEST)
	(envelope-from harry)
Message-Id: <200809051144.m85BivoA002700@titan.flintsbach.schmalzbauer.de>
Date: Fri, 5 Sep 2008 13:44:57 +0200 (CEST)
From: Harald Schmalzbauer <freebsd@omnilan.de>
Reply-To: Harald Schmalzbauer <freebsd@omnilan.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Kernel Panic with misconfigured GPT
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         127115
>Category:       kern
>Synopsis:       [gpt]: Kernel Panic with misconfigured GPT
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    marcel
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 05 15:20:01 UTC 2008
>Closed-Date:    Thu Nov 06 11:47:00 UTC 2008
>Last-Modified:  Thu Nov 06 11:47:00 UTC 2008
>Originator:     Harald Schmalzbauer
>Release:        FreeBSD 7.1-PRERELEASE i386
>Organization:
OmniLAN
>Environment:
System: FreeBSD titan.flintsbach.schmalzbauer.de 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #2: Mon Sep 1 13:30:00 CEST 2008 harry@titan.flintsbach.schmalzbauer.de:/usr/obj/usr/src/sys/TITAN i386


	
>Description:
	I tried to duplicate a hard drive by creating a GPT on the new drive
and copy sector 2-34 from the old drive to the new.
The system freezed and as soon as I attach the new hard disk I get a kernel
panic.

>How-To-Repeat:

ad8=blank new disk
ad10=disk to clone
	gpart create -s gpt ad8
	dd if=/dev/ad10 of=/dev/ad8 iseek=2 count=32 oseek=2
Now the disk is not usable any more with FreeBSD.
Even after DOS formating or XP-formating FreeBSD panics. So the secondary gpt tabel has to be the culprit.

>Fix:

	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->marcel 
Responsible-Changed-By: remko 
Responsible-Changed-When: Fri Sep 5 15:21:17 UTC 2008 
Responsible-Changed-Why:  
Hi Marcel, you are the maintainer of GPT, can you please have a look 
and/or help resolve this issue for  Harald, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=127115 

From: Jaakko Heinonen <jh@saunalahti.fi>
To: freebsd@omnilan.de
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/127115: [gpt]: Kernel Panic with misconfigured GPT
Date: Thu, 2 Oct 2008 10:58:20 +0300

 Hi,
 
 This PR is a duplicate of kern/119868. I have provided a patch which
 should fix the bug in this message:
 
 http://lists.freebsd.org/pipermail/freebsd-bugs/2008-October/032583.html
 
 -- 
 Jaakko
State-Changed-From-To: open->closed 
State-Changed-By: gavin 
State-Changed-When: Thu Nov 6 11:46:00 UTC 2008 
State-Changed-Why:  
Close as a duplicate of kern/119868, which contains a patch. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=127115 
>Unformatted:
