From owner-freebsd-questions@FreeBSD.ORG Sat Oct 14 18:31:01 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 A934B16A412 for ; Sat, 14 Oct 2006 18:31:01 +0000 (UTC) (envelope-from netch@lucky.net) Received: from burka.carrier.kiev.ua (burka.carrier.kiev.ua [193.193.193.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC16C43D72 for ; Sat, 14 Oct 2006 18:30:59 +0000 (GMT) (envelope-from netch@lucky.net) Received: from burka.carrier.kiev.ua (netch@localhost [127.0.0.1]) by burka.carrier.kiev.ua with ESMTP id k9EIUrZ0008259; Sat, 14 Oct 2006 21:30:56 +0300 (EEST) (envelope-from netch@burka.carrier.kiev.ua) Received: (from netch@localhost) by burka.carrier.kiev.ua (8.13.1/8.13.1/Submit) id k9EIUrfm008256; Sat, 14 Oct 2006 21:30:53 +0300 (EEST) (envelope-from netch) Date: Sat, 14 Oct 2006 21:30:53 +0300 From: Valentin Nechayev To: Jan Pfeifer Message-ID: <20061014183053.GA6898@lucky.net> References: <20061014164101.8507.qmail@web52113.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061014164101.8507.qmail@web52113.mail.yahoo.com> X-42: On X-Verify-Sender: Address has been verified (burka.carrier.kiev.ua) X-Antivirus: Dr.Web (R) for Mail Servers on ghost.carrier.kiev.ua host X-Antivirus-Code: 100000 X-Content-Filter: burka.carrier.kiev.ua: passed Cc: freebsd-questions@freebsd.org Subject: Re: Boot2 loading process X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: netch@lucky.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Oct 2006 18:31:01 -0000 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. 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-