From owner-freebsd-stable@FreeBSD.ORG Sat May 21 02:12:55 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1D9E16A4CE for ; Sat, 21 May 2005 02:12:55 +0000 (GMT) Received: from mail.rotfl.com.au (eth1779.sa.adsl.internode.on.net [150.101.235.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id A080F43D46 for ; Sat, 21 May 2005 02:12:53 +0000 (GMT) (envelope-from Phil@Kernick.org) Received: from localhost (localhost [127.0.0.1]) by mail.rotfl.com.au (Postfix) with ESMTP id 371B474406; Sat, 21 May 2005 11:42:52 +0930 (CST) Received: from mail.rotfl.com.au ([127.0.0.1]) by localhost (mail.rotfl.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 89045-07; Sat, 21 May 2005 11:42:47 +0930 (CST) Message-ID: <428E991B.50003@Kernick.org> Date: Sat, 21 May 2005 11:42:43 +0930 From: Phil Kernick User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Torfinn Ingolfsen References: <20050518162535.B87264@carver.gumbysoft.com> <200505190156.aa13658@nowhere.iedowse.com> <6.2.0.14.2.20050519092733.044eac00@gid.co.uk> <20050519091959.GD2129@cirb503493.alcatel.com.au> <20050519170727.6afe01cc.torfinn.ingolfsen@broadpark.no> In-Reply-To: <20050519170727.6afe01cc.torfinn.ingolfsen@broadpark.no> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary="------------050203090706090604030501" X-Virus-Scanned: by amavisd-new at rotfl.com.au cc: freebsd-stable@freebsd.org Subject: Re: Boot loader cant identify ntfs? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 May 2005 02:12:55 -0000 This is a multi-part message in MIME format. --------------050203090706090604030501 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Torfinn Ingolfsen wrote: > On Thu, 19 May 2005 19:19:59 +1000 > Peter Jeremy wrote: > > >>It would probably be possible to pad the available space with other >>"common" partition types. > > > My proposal is this; don't change anything in the FreeBSD bootloader. > People who want a fancier / more verbose / more readable boot menu - use > another boot manager. There are enough of them. I submitted a patch for this in January 2003, but since no-one is prepared to actually own the bootloader code, it didn't ever get committed. =========================================================================== I've been using this successfully for months, and I thought it might be useful to others out there. This patch to boot0 that provides WinNT/Win2k/WinXP named support in the boot loader. It does it at the expense of dropping named support for Hurd. The same patch applies to either -STABLE or -CURRENT. At the moment, if you dual-boot FreeBSD/Win2k, in the boot loader shows ??? for Win2k. This is because it doesn't recognise the NTFS partition. This patch adds that back into the loader. Since the loader is *very* tight on space, I've dropped named support for Hurd. It will still work, but now Hurd will show up as ???. I'd like for this to actually get into the tree at some point, but until then, you'll have to apply it manually. =========================================================================== Phil. --------------050203090706090604030501 Content-Type: text/plain; name="freebsd-boot-ntfs.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="freebsd-boot-ntfs.txt" --- boot0.s.1.25.txt Fri Sep 13 15:13:58 2002 +++ boot0.s Fri Sep 13 15:16:28 2002 @@ -13,7 +13,7 @@ # purpose. # -# $FreeBSD: src/sys/boot/i386/boot0/boot0.s,v 1.25 2000/12/19 00:17:36 rnordier Exp $ +# $FreeBSD: src/sys/boot/i386/boot0/boot0.s,v 1.26 2002/07/01 00:00:00 philk Exp $ # A 512-byte boot manager. @@ -364,7 +364,7 @@ # # These values indicate bootable types we know the names of # - .byte 0x1, 0x4, 0x6, 0xb, 0xc, 0xe, 0x63, 0x83 + .byte 0x1, 0x4, 0x6, 0x7, 0xb, 0xc, 0xe, 0x83 .byte 0x9f, 0xa5, 0xa6, 0xa9 # # These are offsets that match the known names above and point to the strings @@ -374,10 +374,10 @@ .byte os_dos-. # DOS .byte os_dos-. # DOS .byte os_dos-. # DOS + .byte os_nt-. # WinNT .byte os_dos-. # Windows .byte os_dos-. # Windows .byte os_dos-. # Windows - .byte os_unix-. # UNIX .byte os_linux-. # Linux .byte os_bsd-. # BSD/OS .byte os_freebsd-. # FreeBSD @@ -389,7 +389,7 @@ # os_misc: .ascii "?"; .byte '?'|0x80 os_dos: .ascii "DO"; .byte 'S'|0x80 -os_unix: .ascii "UNI"; .byte 'X'|0x80 +os_nt: .ascii "WinN"; .byte 'T'|0x80 os_linux: .ascii "Linu"; .byte 'x'|0x80 os_freebsd: .ascii "Free" os_bsd: .ascii "BS"; .byte 'D'|0x80 --------------050203090706090604030501--