From owner-freebsd-questions@FreeBSD.ORG Mon Apr 14 07:45:11 2003 Return-Path: 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 3F75237B401 for ; Mon, 14 Apr 2003 07:45:11 -0700 (PDT) Received: from gicco.homeip.net (dclient80-218-75-162.hispeed.ch [80.218.75.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F56A43FA3 for ; Mon, 14 Apr 2003 07:45:10 -0700 (PDT) (envelope-from hampi@rootshell.be) Received: from localhost.here (idefix@gicco.homeip.net [127.0.0.1]) by gicco.homeip.net (8.12.8p1/8.12.8) with ESMTP id h3EEj7JO001500 for ; Mon, 14 Apr 2003 16:45:08 +0200 (CEST) (envelope-from hampi@rootshell.be) Received: (from idefix@localhost) by localhost.here (8.12.8p1/8.12.8/Submit) id h3EEj7f7001499 for freebsd-questions@freebsd.org; Mon, 14 Apr 2003 16:45:07 +0200 (CEST) X-Authentication-Warning: localhost.here: idefix set sender to hampi@rootshell.be using -f Date: Mon, 14 Apr 2003 16:45:07 +0200 From: Hanspeter Roth To: freebsd-questions@freebsd.org Message-ID: <20030414144507.GA1427@gicco.homeip.net> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="sdtB3X0nJg68CQEu" Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: boot0 and Linux in extended slice X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Apr 2003 14:45:11 -0000 --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, I've played with boot0. Now it allows me to boot Linux located in an extended slice (0xf, LBA-mapped). (Linux is in a logical slice contained in the extended one.) The patch is based on /usr/src/sys/boot/i386/boot0/boot0.s from FreeBSD 4.8. -Hanspeter --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="boot0.s.diff" --- boot0.s.orig Tue Dec 19 01:32:19 2000 +++ boot0.s Mon Apr 14 16:02:00 2003 @@ -360,18 +360,18 @@ # # These entries identify invalid or NON BOOT types and partitions. # - .byte 0x0, 0x5, 0xf + .byte 0x0, 0x5, 0x0 # # These values indicate bootable types we know the names of # - .byte 0x1, 0x4, 0x6, 0xb, 0xc, 0xe, 0x63, 0x83 + .byte 0xf, 0x4, 0x6, 0xb, 0xc, 0xe, 0x63, 0x83 .byte 0x9f, 0xa5, 0xa6, 0xa9 # # These are offsets that match the known names above and point to the strings # that will be printed. # .byte os_misc-. # Unknown - .byte os_dos-. # DOS + .byte os_linux-. # fake Linux (Extended 0xf) .byte os_dos-. # DOS .byte os_dos-. # DOS .byte os_dos-. # Windows --sdtB3X0nJg68CQEu--