Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 May 2014 06:35:17 -0400
From:      Janos Dohanics <web@3dresearch.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: gpart backup, restore and bootcode
Message-ID:  <20140528063517.67247c4e5b06c000355acea8@3dresearch.com>
In-Reply-To: <alpine.BSF.2.00.1405270748360.92553@wonkity.com>
References:  <20140527035956.c55adc6dd0ed34da2ac4f843@3dresearch.com> <alpine.BSF.2.00.1405270748360.92553@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 27 May 2014 07:51:56 -0600 (MDT)
Warren Block <wblock@wonkity.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140528063517.67247c4e5b06c000355acea8>