Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Nov 2003 18:31:12 +0100
From:      Rudolf Cejka <cejkar@fit.vutbr.cz>
To:        Dag-ErlingSm?rgrav <des@des.no>
Cc:        current@freebsd.org
Subject:   Re: boot0 and fdisk / disklabel misbehaviour
Message-ID:  <20031111173112.GA36157@fit.vutbr.cz>
In-Reply-To: <xzp1xsfpaip.fsf@dwp.des.no>
References:  <xzp1xsfpaip.fsf@dwp.des.no>

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



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