From owner-freebsd-stable Thu Jan 28 12:19:02 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA06975 for freebsd-stable-outgoing; Thu, 28 Jan 1999 12:19:02 -0800 (PST) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from ceia.nordier.com (m2-39-dbn.dial-up.net [196.34.155.103]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA06966 for ; Thu, 28 Jan 1999 12:18:57 -0800 (PST) (envelope-from rnordier@nordier.com) Received: (from rnordier@localhost) by ceia.nordier.com (8.8.7/8.6.12) id WAA00631; Thu, 28 Jan 1999 22:17:17 +0200 (SAT) From: Robert Nordier Message-Id: <199901282017.WAA00631@ceia.nordier.com> Subject: Re: boot manager feat. high-resolution grafx supports FreeBSD partitions In-Reply-To: <3.0.1.32.19990128192232.00688dfc@t-online.de> from Adrian Horatiu Hilgardth at "Jan 28, 99 07:22:32 pm" To: Hilgardth@t-online.de (Adrian Horatiu Hilgardth) Date: Thu, 28 Jan 1999 22:17:14 +0200 (SAT) Cc: freebsd-stable@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Adrian Horatiu Hilgardth wrote: > I've written a boot manager that supports DOS, > Linux and of course FreeBSD partitions. > Unfortunately I don't know anything about the > FreeBSD boot process. I just look for a > partition id of 0xa5 and if it has the bootable > flag set I load its first sector and jump to it. > It works for DOS and for Linux (except that > Linux doesn't set bootable flags so you have to > set it manually using fdisk). Could you please > tell me more about the way FreeBSD boots? FreeBSD expects the DL register to contain the BIOS drive number, and, where this is >= 0x80 (hard drive), that sector 0 of the disk will contain a valid MBR with at least one 0xa5 partition, preferably marked active. -- Robert Nordier To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message