Re: boot0 and fdisk / disklabel misbehaviour

From: Rudolf Cejka <cejkar_at_fit.vutbr.cz>
Date: Tue, 11 Nov 2003 18:31:12 +0100
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
_at__at_ -25,7 +25,7 _at__at_
 		.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
Received on Tue Nov 11 2003 - 08:31:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:28 UTC