boot0 and fdisk / disklabel misbehaviour

Rudolf Cejka cejkar at fit.vutbr.cz
Tue Nov 11 09:31:17 PST 2003


Dag-ErlingSm?rgrav wrote (2003/11/11):
>  - boot0 off-by-one error:
>    The OS table in boot0.s is as follows:
>                 .byte os_misc-.                 # Unknown
> ...
>                 .byte os_bsd-.                  # NetBSD
>    Now, boot0 identifies my FreeBSD partitions as "BSD" instead of
>    "FreeBSD".  It also identifies my Debian partition (type 0x83) as
>    "BSD" instead of "Linux" and my Debian swap partition (type 0x82)
>    as "DOS" instead of "Unknown", and NetBSD gives it the hives.  It
>    seems to me that it's consistently off by one.

And almost at the same time, I'm looking at the last change to
boot0.s 1.26, if there is forgotten TBL1SZ update, or not :o)))

PS: After UNIX removal, it is very hard to find clean place for
0x7 - NTFS with name better than DOS...

--- boot0.s.orig	Tue Nov 11 18:25:12 2003
+++ boot0.s	Tue Nov 11 18:25:21 2003
@@ -25,7 +25,7 @@
 		.set PRT_OFF,0x1be		# Partition table
 
 		.set TBL0SZ,0x3 		# Table 0 size
-		.set TBL1SZ,0xc 		# Table 1 size
+		.set TBL1SZ,0xb 		# Table 1 size
 
 		.set MAGIC,0xaa55		# Magic: bootable
 		.set B0MAGIC,0xbb66		# Identification

-- 
Rudolf Cejka <cejkar at fit.vutbr.cz> http://www.fit.vutbr.cz/~cejkar
Brno University of Technology, Faculty of Information Technology
Bozetechova 2, 612 66  Brno, Czech Republic


More information about the freebsd-current mailing list