Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Mar 2009 18:53:28 +0200
From:      Andriy Gapon <avg@freebsd.org>
To:        Marcel Moolenaar <xcllnt@mac.com>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: gpart bootcode and /boot/boot
Message-ID:  <49C12708.6050702@freebsd.org>
In-Reply-To: <0B27FB91-9F2B-4F96-B4A0-330CAD725AF1@mac.com>
References:  <4978C24D.9040706@icyb.net.ua> <49A6C33E.70402@freebsd.org> <EE8C5392-A907-4C75-BEB4-125C30AA6D41@mac.com> <49C11880.8000506@freebsd.org> <0B27FB91-9F2B-4F96-B4A0-330CAD725AF1@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
on 18/03/2009 18:23 Marcel Moolenaar said the following:
> 
> On Mar 18, 2009, at 8:51 AM, Andriy Gapon wrote:
>> BTW, is there a way to read/backup bootcode (for BSD scheme)?
> 
> There's no gpart function for it yet, but you can use dd
> as a work-around. Unfortunately, that means you need to
> know how much to read:
>     MBR:    1 sector (512B) starting at 0
>     BSD:    16 sectors (8KB) starting at 0
> 
> These raw dumps can be restored using gpart:
>     gpart bootcode -b $mbr.dd ad6
>     gpart bootcode -b $bsd.dd ad6s1
> 
> No, it will not destroy any partitioning data :-)

O great, thanks!
So gpart simply ignores bytes of "input" data that correspond to partition/label
data. Good to know.

-- 
Andriy Gapon



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