cloning a FreeBSD HDD
John Baldwin
jhb at freebsd.org
Wed Apr 5 19:28:43 UTC 2006
On Wednesday 05 April 2006 15:15, Peter Jeremy wrote:
> On Wed, 2006-Apr-05 14:53:55 -0400, John Baldwin wrote:
> >> boot2 is located in the (I think) sectors 1-15 of partition a.
> >
> >Actually, boot1 + boot2 occupy sectors 0,2-15 of the bootable slice (the
> >a partition starts at the start of the slice to be confusing) with the
> >actual disklabel table in sector 1 of the slice.
>
> The bit that threw me was that boot2 is 15 sectors long and ends in
> sector 15. I gather it has a copy of boot1 embedded in it.
Yes, there is now a /boot/boot file that is boot1 + boot2 glued together
in a single blob. It used to be that boot1 was in sector 0 and boot2
in 2-15, but with ufs2 boot2 got slightly bigger, so we now make them
a blob IIRC to get some extra space. phk@ did that change.
--
John Baldwin <jhb at FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
More information about the freebsd-hackers
mailing list