From owner-freebsd-questions@FreeBSD.ORG Tue Jul 10 00:49:19 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7A6C81065670 for ; Tue, 10 Jul 2012 00:49:19 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 378008FC14 for ; Tue, 10 Jul 2012 00:49:19 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id q6A0nGls064246; Mon, 9 Jul 2012 18:49:16 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id q6A0nGol064243; Mon, 9 Jul 2012 18:49:16 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Mon, 9 Jul 2012 18:49:16 -0600 (MDT) From: Warren Block To: dweimer In-Reply-To: <764fd164b77f32257135e1ab4f4fb501@dweimer.net> Message-ID: References: <764fd164b77f32257135e1ab4f4fb501@dweimer.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Mon, 09 Jul 2012 18:49:16 -0600 (MDT) Cc: freebsd-questions@freebsd.org Subject: Re: Invalid GPT backup header X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2012 00:49:19 -0000 On Mon, 9 Jul 2012, dweimer wrote: > I have had a few virtual machine installations come up with "gptboot: invalid > GPT backup header" error message while booting. (some immediately on first > boot after install) They still boot fine, and run without problems, but I > would like to find a way to fix the problem. Does anyone know how you can > write a new GPT backup header to the partition table. See the gpart recover command covered in the RECOVERING section in gpart(8). > I have even gone to the extent of adding a second virtual disk, using > gpart to create a partition table and then add new partitions and > setup bootstrap then use cpio to copy data over and switched the drive > SCSI IDs within the virtual machines configuration to boot from the > second drive instead. Still same error message when booting off the > new drive. I did however leave out the size option when creating the > last UFS partition so it may have filled to the end and overwrote the > backup GPT table. gpart will not overwrite the backup GPT with a partition. Other stuff may not be GPT-aware.