Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jun 1999 19:52:21 +0200 (SAST)
From:      Robert Nordier <rnordier@nordier.com>
To:        imp@harmony.village.org (Warner Losh)
Cc:        dennis@etinc.com (Dennis), hackers@FreeBSD.ORG
Subject:   Re: Changing Bootmgr display
Message-ID:  <199906191752.TAA02512@ceia.nordier.com>
In-Reply-To: <199906191706.LAA86038@harmony.village.org> from Warner Losh at "Jun 19, 1999 11:06:07 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Warner Losh wrote:
> In message <199906191602.MAA10374@etinc.com> Dennis writes:
> : F3 is a non-bootable file system...is there a way to get the boot manager
> : to only display F1 and F2?
> 
> More generally, I'd like my Win98 partition to be identified as Win98, 
> not ????.  Also, is there a list of partition types to ignore
> somehwere?  My suspend partition also shows up as ????.

The present boot manager is limited in size to 446 bytes, so
there's just not space to provide an adequate list of known partitions.

The best solution is probably to customise the sources or use a
"proper" boot manager.  (I see that at the FreeBSD Mall, they're
offering Partition Magic and System Commander with FreeBSD.)

To ignore a partition by type, see the following patch as an example
(we ignore type 0x42).

--
Robert Nordier


--- boot0.s.orig	Sat Jun 19 19:50:23 1999
+++ boot0.s	Sat Jun 19 19:50:44 1999
@@ -24,7 +24,7 @@
 
 		.set PRT_OFF,0x1be		# Partition table
 
-		.set TBL0SZ,0x3 		# Table 0 size
+		.set TBL0SZ,0x4 		# Table 0 size
 		.set TBL1SZ,0xa 		# Table 1 size
 
 		.set MAGIC,0xaa55		# Magic: bootable
@@ -231,7 +231,7 @@
 # Partition type tables
 
 tables:
-		.byte 0x0, 0x5, 0xf
+		.byte 0x0, 0x5, 0xf, 0x42
 
 		.byte 0x1, 0x4, 0x6, 0xb, 0xc, 0xe, 0x63, 0x83
 		.byte 0xa5, 0xa6


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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