From owner-freebsd-questions@FreeBSD.ORG Sun Oct 15 01:42:03 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 1462816A412 for ; Sun, 15 Oct 2006 01:42:03 +0000 (UTC) (envelope-from jan.pfeifer@yahoo.com.br) Received: from web52110.mail.yahoo.com (web52110.mail.yahoo.com [206.190.48.113]) by mx1.FreeBSD.org (Postfix) with SMTP id 0132043D5D for ; Sun, 15 Oct 2006 01:42:00 +0000 (GMT) (envelope-from jan.pfeifer@yahoo.com.br) Received: (qmail 40104 invoked by uid 60001); 15 Oct 2006 01:41:56 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.br; h=Message-ID:Received:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=1/BS97xj2uHhdYyK/rHFzrA2NR/lOp8mW1z+zDwTmMyOHYofekvtsTX7wZAbvxQLghxogjM+jE/2iabWQPvTIoZ4rF1FhiYmHjc4vd/YPFXSlGMUHk8D5WPY9Yhh7agAKUsUdOLV7DQUS4BZfuuodvfYHDuky2yLI+FLWQ1DhQ8= ; Message-ID: <20061015014156.40102.qmail@web52110.mail.yahoo.com> Received: from [69.181.133.203] by web52110.mail.yahoo.com via HTTP; Sat, 14 Oct 2006 18:41:56 PDT Date: Sat, 14 Oct 2006 18:41:56 -0700 (PDT) From: Jan Pfeifer To: Jerry McAllister , Valentin Nechayev MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Content-Transfer-Encoding: quoted-printable Cc: 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:42:03 -0000 Thanks for the reference Jerry, you are right, from the docs:=0A=0Aboot0: s= aved into MBR, loads boot2 (the boot1 being the floppy version of it)=0A=0A= But still, according to the docs, boot0 loads only 512 bytes of it.=0A=0ASo= thanks for the note Valentin, I understand then that boot0 loads 15 record= s, that is 7.5kb.=0A=0A=0Amany thanks again,=0A=0A- jan=0A=0Aps.: the docs = also mentions that slices are the FreeBSD jargon for partitions, sorry.=0A= =0A----- Original Message ----=0AFrom: Jerry McAllister = =0ATo: Valentin Nechayev =0ACc: Jan Pfeifer ; freebsd-questions@freebsd.org=0ASent: Saturday, October 14, 2= 006 6:15:55 PM=0ASubject: Re: Boot2 loading process=0A=0AOn Sat, Oct 14, 20= 06 at 09:30:53PM +0300, Valentin Nechayev wrote:=0A=0A> Sat, Oct 14, 2006 = at 09:41:01, jan.pfeifer wrote about "Boot2 loading process": =0A> =0A> > 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.=0A> =0A> > According to the docs bo= ot0 loads only the first record of the partition, that is 512bytes. But boo= t2 in my 4.11 freebsd has > 7K in size -- what makes sense, considering the= amount of things it does and that it links btxld.=0A> Name it "slice", not= "partition".=0A> =0A> > So my question is: where does the rest of the boot= 2 binary is located and how is it loaded ?=0A> =0A> You skipped boot1 from = attention. boot2 is loaded by boot1, not boot0.=0A=0ANot according to that = piece of architecture documentation that was quoted.=0A=0A www.freebsd.org/= doc/en_US.ISO8859-1/books/arch-handbook/book.html#BOOT-BOOT0=0A=0AIt says t= hat boot1 is used only with floppy boots.=0A=0ASo, either the question rema= ins or that oiece of doc is incorrect.=0A=0ACheers,=0A=0A////jerry=0A=0A> b= oot1 resides in first block of FreeBSD slice (or whole disk in dedicated=0A= > partitioning). It reads MBR, detects first active FreeBSD slice (or first= =0A> FreeBSD slice if none active), loads first 8K from its (they are boot1= =0A> + disklabel + boot2) and passes control to boot2. boot2 is placed in= =0A> blocks 2-15 of the FreeBSD slice.=0A> =0A> > thanks in advance for any= answers!=0A> =0A> =0A> -netch-=0A> _______________________________________= ________=0A> freebsd-questions@freebsd.org mailing list=0A> http://lists.fr= eebsd.org/mailman/listinfo/freebsd-questions=0A> To unsubscribe, send any m= ail to "freebsd-questions-unsubscribe@freebsd.org"=0A=0A=0A=0A=0A