From cagney@tpgi.com.au  Wed Jan 28 16:38:19 1998
Received: from random.tpgi.com.au (random.tpgi.com.au [203.12.160.7])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA01285
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 28 Jan 1998 16:37:58 -0800 (PST)
          (envelope-from cagney@tpgi.com.au)
Received: (from smtpd@localhost)
	by random.tpgi.com.au (8.8.4/8.8.6) id LAA26594
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 29 Jan 1998 11:37:47 +1100 (EST)
Received: from mel-ppp-065.tpgi.com.au(203.12.163.65), claiming to be "b1.tpgi.com.au"
 via SMTP by random.tpgi.com.au, id smtpdAAAa006Um; Thu Jan 29 11:37:33 1998
Received: (from cagney@localhost) by b1.tpgi.com.au (8.8.7/8.7.3) id LAA01071; Thu, 29 Jan 1998 11:39:59 +1100 (EST)
Message-Id: <199801290039.LAA01071@b1.tpgi.com.au>
Date: Thu, 29 Jan 1998 11:39:59 +1100 (EST)
From: Andrew Cagney <cagney@tpgi.com.au>
Reply-To: cagney@tpgi.com.au
To: FreeBSD-gnats-submit@freebsd.org
Subject: System not bootable when bad partition type present.
X-Send-Pr-Version: 3.2

>Number:         5594
>Category:       i386
>Synopsis:       System not bootable when bad partition type present.
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 28 16:40:01 PST 1998
>Closed-Date:    Fri Mar 19 05:45:25 PST 1999
>Last-Modified:  Fri Mar 19 05:46:17 PST 1999
>Originator:     Andrew Cagney
>Release:        FreeBSD 2.2.5-RELEASE i386
>Organization:
>Environment:

	x486 PC, 2 IDE interfaces

		1.1 - 3.5gb disk
		1.2 - IDE cdrom
		2.1 - 2gb disc

	Old BIOS - can only see first disk.

	I don't think that the presence of the
	CD-ROM and the second disk are relevant to
	the problem.

>Description:

	Given a hard disk partitioned as:

		1:	Type DOS-LARGE 2gb
		2:	Type 81 1gb (not 0x81 or MINIX)
		3:	386BSD/FreeBSD 500mb

	and the FreeBSD pre-boot loader installed into the
	hard disk bootblock, then the pre-boot loader is not able to
	select partition 3 for booting.

	---

	Second possibly related problem.  Given a hard disk with only
	partitions 1 & 2 above I somehow (pressing F keys) managed to
	get partition 1's type changed to BSD from DOS!
	I've not tried to re-produce this one.


>How-To-Repeat:

	Set up partition table as above.

	The preboot prompt:

		F1 . . . dos
		F2 . . . ??
		F3 . . . BSD
		Default: F1

	appears.

	Press F3, the prompt changes to:

		F1 . . . dos
		F2 . . . ??
		F3 . . . BSD
		Default: F?

	(BSD wasn't booted).

	Pressing F4 we get:

		F1 . . . dos
		F2 . . . ??
		F3 . . . BSD
		Default: F4

	(Wierd!)

	Pressing F1 we get:

		Windows 95 ....

>Fix:
	
	The workaround is to set the second partition type to 0x81
	as it should have been.
>Release-Note:
>Audit-Trail:

From: Andrew Cagney <cagney@tpgi.com.au>
To: freebsd-gnats-submit@freebsd.org
Cc: Andrew Cagney <cagney@cygnus.com>
Subject: Re: i386/5594 System not bootable when bad partition type present.
Date: Mon, 23 Mar 1998 10:14:38 +1100 (WET)

 Excerpts from mail: 22-Mar-98 i386/5594 System not bootab..
 Studded@dal.net (1686*)
 
 > Greetings, :)
 
 
 > 	If you are still experiencing the problem you reported, it
 > would help the project track the problem if you could upgrade to the
 > latest snapshot of 2.2.6-Beta (located at releng22.freebsd.org) and
 > test your problem again. There has been a lot of work on the diskslicing
 > code lately so your feedback would be especially valuable.
 
 Is there a way I can just update that MBR thingie since I think that
 that is where the problem is? If I can do that, then I can check to see
 if the problem is fixed.
 
 At a guess, if I pull in just the boot.flp floppy and play with its
 partitioning stuff then I should be able to test things.  Sound correct?
 
 		Andrew
State-Changed-From-To: open->closed 
State-Changed-By: sheldonh 
State-Changed-When: Fri Mar 19 05:45:25 PST 1999 
State-Changed-Why:  
Active development on the 2.2 branch is over. 
>Unformatted:
