From nobody@FreeBSD.org  Fri Jun 28 08:01:50 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0C18437B405
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 28 Jun 2002 08:01:50 -0700 (PDT)
Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C8DC743E06
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 28 Jun 2002 08:01:49 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g5SF1nOT051113
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 28 Jun 2002 08:01:49 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.4/8.12.4/Submit) id g5SF1nEH051112;
	Fri, 28 Jun 2002 08:01:49 -0700 (PDT)
Message-Id: <200206281501.g5SF1nEH051112@www.freebsd.org>
Date: Fri, 28 Jun 2002 08:01:49 -0700 (PDT)
From: John Hawk <johnhawk@rcn.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Crashes partiton table
X-Send-Pr-Version: www-1.0

>Number:         39952
>Category:       i386
>Synopsis:       Crashes partiton table
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 28 08:10:02 PDT 2002
>Closed-Date:    Fri Jul 19 00:33:52 PDT 2002
>Last-Modified:  Fri Jul 19 00:33:52 PDT 2002
>Originator:     John Hawk
>Release:        4.6
>Organization:
>Environment:
>Description:
 Copies partion table form harddisk 0 to hardisk1 (ads's)

System and boot:
hd0 3.1 G vfat32 (Windows XP)          /dev/hda1
    6.9 G ext3   (Redhat 7.3)  grub on /dev/hda2
hd1 5   G        (FreeBSD 4.6)         /dev/hdb1
    5   G vfat   (MSDOS)               /dev/hdb2
    10  G ext3   (Mandrake 8.2)grub on /dev/hdb6

All items booted from Windows XP BootMgr
boot.ini
c:\bootsect.os ="Operating System"
created via dd if=/dev/drive of=bootsect.os bs=512 count=1

When FreeBSD 4.6 is booted this way it writes the hd1 partition table to hd0 thus crashing all Operating Systems on hd0

     
>How-To-Repeat:
    Set up as above stated the boot into FreeBSD  
>Fix:
      
>Release-Note:
>Audit-Trail:

From: David Schultz <dschultz@uclink.Berkeley.EDU>
To: freebsd-gnats-submit@FreeBSD.org, johnhawk@rcn.com
Cc:  
Subject: Re: i386/39952: Crashes partiton table
Date: Sat, 6 Jul 2002 00:58:19 -0700

 You probably have boot0 installed on your second drive.  When
 boot0 is configured to save your last choice, it writes a modified
 copy of itself to whatever disk the BIOS considers to be the first
 one.  Since the boot sector is only 512 bytes, it really isn't
 reasonable for boot0 to attempt to detect these sorts of
 configuration errors.  Your only boot manager should be on the
 master, and you should use it to boot all of your operating
 systems.
State-Changed-From-To: open->closed 
State-Changed-By: jon 
State-Changed-When: Fri Jul 19 00:26:32 PDT 2002 
State-Changed-Why:  
if you wish to use some other boot manager, you shouldn't be using FreeBSD's as well.  When installing FreeBSD, choose 'Install a standard MBR (no boot manager)'.  You should configure your other boot loader to boot directly to the slice (or partition) instead of the master boot record. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=39952 
>Unformatted:
