From owner-freebsd-current@FreeBSD.ORG Tue Feb 8 08:23:05 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 006B416A4CE for ; Tue, 8 Feb 2005 08:23:05 +0000 (GMT) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EE8643D55 for ; Tue, 8 Feb 2005 08:23:04 +0000 (GMT) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 53931530C; Tue, 8 Feb 2005 09:23:03 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id D74685308 for ; Tue, 8 Feb 2005 09:22:30 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id 788A9B86E; Tue, 8 Feb 2005 09:22:30 +0100 (CET) To: current@freebsd.org From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Date: Tue, 08 Feb 2005 09:22:30 +0100 Message-ID: User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on flood.des.no X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=AWL,FORGED_RCVD_HELO autolearn=disabled version=3.0.1 Subject: boot0 patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Feb 2005 08:23:05 -0000 --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable boot0 currently recognizes FAT partition types 0x1, 0x4, 0x6, 0xb, 0xc and 0xe but not NTFS (type 0x7). While type 0x1 (FAT12) is used on floppies and 0x6 (FAT16 >32M) is still in relatively common use on hard disks, I believe 0x4 (FAT16 <32M) hasn't been in widespread use since the late eighties. The attached patch removes 0x4 from the list of recognized partition types in boot0 and adds 0x7 in its place. We still don't have room for the string "Windows", so type 0x7 is identified as DOS, but at least it's identified... DES --=20 Dag-Erling Sm=F8rgrav - des@des.no --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=boot0.diff Index: boot0.S =================================================================== RCS file: /home/ncvs/src/sys/boot/i386/boot0/boot0.S,v retrieving revision 1.13 diff -u -r1.13 boot0.S --- boot0.S 9 Jan 2005 23:30:35 -0000 1.13 +++ boot0.S 8 Feb 2005 09:12:58 -0000 @@ -409,7 +409,7 @@ /* * These values indicate bootable types we know the names of. */ - .byte 0x1, 0x4, 0x6, 0xb, 0xc, 0xe, 0x83 + .byte 0x1, 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 @@ -418,7 +418,7 @@ */ .byte os_dos-. # DOS .byte os_dos-. # DOS - .byte os_dos-. # DOS + .byte os_dos-. # Windows .byte os_dos-. # Windows .byte os_dos-. # Windows .byte os_dos-. # Windows --=-=-=--