From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 17 12:18:11 2004 Return-Path: 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 9FA4A16A4CE for ; Wed, 17 Mar 2004 12:18:11 -0800 (PST) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FDE443D2D for ; Wed, 17 Mar 2004 12:18:11 -0800 (PST) (envelope-from plan_b@videotron.ca) Received: from player ([24.202.183.77]) by VL-MO-MR001.ip.videotron.ca (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with SMTP id <0HUQ003RULQ79M@VL-MO-MR001.ip.videotron.ca> for hackers@freebsd.org; Wed, 17 Mar 2004 15:18:07 -0500 (EST) Date: Wed, 17 Mar 2004 15:21:21 -0500 From: slick To: Hackers , Port-I386 , OpenBSD Message-id: MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4925.2800 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Subject: RE: mbr boot selector X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Mar 2004 20:18:11 -0000 >>Hi i wrote my own fdisk(8) and now would like to implement universal >>multiboot support in it. Thorsten Glaser Sent: Wednesday, March 17, 2004 2:45 PM To: slick Cc: Port-I386; OpenBSD; Hackers Subject: Re: mbr boot selector >Get a life. your funny >I'd like to know how you are going to fit multiboot into like 446 bytes or even less. netbsd already does it You only have to modify boot code a bit and create a new data structure. Boot code for boot selector boot code checks for manual or automatic boot flag, if automatic, check for default boot option value and do the rest. if manual, print the 4 partition label, start the timer, wait for input. Data structure for boot selector -default value 1-5 -timer value 1-* -first entry (string containing the partition label) -second entry (string containing the partition label) -third entry (string containing the partition label) -fourth entry (string containing the partition label) -fifth entry (could be used to boot the extended MBR) that structure could fit in about 50bytes --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.592 / Virus Database: 375 - Release Date: 2/18/2004