From owner-freebsd-questions@FreeBSD.ORG Sun Oct 15 01:18:16 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9EEE316A40F for ; Sun, 15 Oct 2006 01:18:16 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41FB643D46 for ; Sun, 15 Oct 2006 01:18:16 +0000 (GMT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id k9F1FuIu026164; Sat, 14 Oct 2006 21:15:56 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id k9F1FuiR026163; Sat, 14 Oct 2006 21:15:56 -0400 (EDT) (envelope-from jerrymc) Date: Sat, 14 Oct 2006 21:15:55 -0400 From: Jerry McAllister To: Valentin Nechayev Message-ID: <20061015011555.GB25929@gizmo.acns.msu.edu> References: <20061014164101.8507.qmail@web52113.mail.yahoo.com> <20061014183053.GA6898@lucky.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061014183053.GA6898@lucky.net> User-Agent: Mutt/1.4.2.2i Cc: Jan Pfeifer , freebsd-questions@freebsd.org Subject: Re: Boot2 loading process X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Oct 2006 01:18:16 -0000 On Sat, Oct 14, 2006 at 09:30:53PM +0300, Valentin Nechayev wrote: > Sat, Oct 14, 2006 at 09:41:01, jan.pfeifer wrote about "Boot2 loading process": > > > I was reading through the architecture handbook (http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/book.html) about the boot process, and something strange caught my attention. > > > According to the docs boot0 loads only the first record of the partition, that is 512bytes. But boot2 in my 4.11 freebsd has > 7K in size -- what makes sense, considering the amount of things it does and that it links btxld. > Name it "slice", not "partition". > > > So my question is: where does the rest of the boot2 binary is located and how is it loaded ? > > You skipped boot1 from attention. boot2 is loaded by boot1, not boot0. Not according to that piece of architecture documentation that was quoted. www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/book.html#BOOT-BOOT0 It says that boot1 is used only with floppy boots. So, either the question remains or that oiece of doc is incorrect. Cheers, ////jerry > boot1 resides in first block of FreeBSD slice (or whole disk in dedicated > partitioning). It reads MBR, detects first active FreeBSD slice (or first > FreeBSD slice if none active), loads first 8K from its (they are boot1 > + disklabel + boot2) and passes control to boot2. boot2 is placed in > blocks 2-15 of the FreeBSD slice. > > > thanks in advance for any answers! > > > -netch- > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"