Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Feb 2005 09:22:30 +0100
From:      des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=)
To:        current@freebsd.org
Subject:   boot0 patch
Message-ID:  <xzpy8dzfol5.fsf@dwp.des.no>

next in thread | raw e-mail | index | archive | help
--=-=-=
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

--=-=-=--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpy8dzfol5.fsf>