From owner-freebsd-questions@FreeBSD.ORG Wed May 28 10:35:46 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4FB32269 for ; Wed, 28 May 2014 10:35:46 +0000 (UTC) Received: from smtpb.telissant.net (smtpb.telissant.net [199.233.230.156]) by mx1.freebsd.org (Postfix) with ESMTP id 220F72691 for ; Wed, 28 May 2014 10:35:45 +0000 (UTC) Received: from barrida.3dresearch.com (localhost [127.0.0.1]) by smtpb.telissant.net (Postfix) with ESMTP id 5F3FF27381 for ; Wed, 28 May 2014 06:35:39 -0400 (EDT) X-Virus-Scanned: amavisd-new at telissant.net Received: from smtpb.telissant.net ([127.0.0.1]) by barrida.3dresearch.com (barrida.3dresearch.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bp3APHlJYaBV for ; Wed, 28 May 2014 06:35:20 -0400 (EDT) Received: from doncurzio.3dresearch.com (pool-108-3-85-202.pitbpa.east.verizon.net [108.3.85.202]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtpb.telissant.net (Postfix) with ESMTPSA id 80D5D27342 for ; Wed, 28 May 2014 06:35:20 -0400 (EDT) Received: from doncurzio.3dresearch.com (localhost [127.0.0.1]) by doncurzio.3dresearch.com (Postfix) with SMTP id D9D2BA1E2C for ; Wed, 28 May 2014 06:35:19 -0400 (EDT) Date: Wed, 28 May 2014 06:35:17 -0400 From: Janos Dohanics To: FreeBSD Questions Subject: Re: gpart backup, restore and bootcode Message-Id: <20140528063517.67247c4e5b06c000355acea8@3dresearch.com> In-Reply-To: References: <20140527035956.c55adc6dd0ed34da2ac4f843@3dresearch.com> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.19; amd64-portbld-freebsd9.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 May 2014 10:35:46 -0000 On Tue, 27 May 2014 07:51:56 -0600 (MDT) Warren Block wrote: > On Tue, 27 May 2014, Janos Dohanics wrote: > > > Hello list members, > > > > Do the commands gpart backup and gpart restore also back up and > > restore the bootcode? The gpart(8) man page says: > > > > "restore Restore the partition table from a backup previously > > created by the backup action and read from standard input. Only the > > par- tition table is restored. This action does not > > affect the con- tent of partitions. After restoring the partition > > table and writing bootcode if needed, user data must be > > restored from backup." > > > > I read this section as "yes" - is this correct? > > To my knowledge, no. The bootcode is separate from the partition > data, and not included with gpart backup. > > > I assume "yes" since my bootcode is embedded having been added > > using "gpart bootcode -b ..." and thus "embed-ded in the > > partitioning scheme's metadata". > > > > Is there a way to show/verify if bootcode is written to the disk? > > Hmm. 'file -s /dev/ada0', although I think there is no way to tell > when that bootcode was updated. Thank you both. -- Janos Dohanics