boot0 and Linux in extended slice

Hanspeter Roth hampi at rootshell.be
Mon Apr 14 07:45:11 PDT 2003


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
-------------- next part --------------
--- 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


More information about the freebsd-questions mailing list