From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 5 19:28:43 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4776416A41F for ; Wed, 5 Apr 2006 19:28:43 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id C582643D6B for ; Wed, 5 Apr 2006 19:28:39 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k35JSbQv063286; Wed, 5 Apr 2006 15:28:38 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Peter Jeremy Date: Wed, 5 Apr 2006 15:28:31 -0400 User-Agent: KMail/1.9.1 References: <20060328.210412.18287651.imp@bsdimp.com> <200604051453.57372.jhb@freebsd.org> <20060405191528.GN699@turion.vk2pj.dyndns.org> In-Reply-To: <20060405191528.GN699@turion.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200604051528.33324.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1376/Wed Apr 5 01:51:25 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: freebsd-hackers@freebsd.org Subject: Re: cloning a FreeBSD HDD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 19:28:43 -0000 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 <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org