From nobody@www.freebsd.org  Mon Jun 10 23:26:44 2002
Return-Path: <nobody@www.freebsd.org>
Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id 37BDC37B406
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 10 Jun 2002 23:26:43 -0700 (PDT)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g5B6QghG040525
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 10 Jun 2002 23:26:42 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.2/8.12.2/Submit) id g5B6Qgk5040524;
	Mon, 10 Jun 2002 23:26:42 -0700 (PDT)
Message-Id: <200206110626.g5B6Qgk5040524@www.freebsd.org>
Date: Mon, 10 Jun 2002 23:26:42 -0700 (PDT)
From: Stefano Coeli <scoeli@utet.it>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 4.4  multi boot loader causes serious damage of all HD EIDE partition tables
X-Send-Pr-Version: www-1.0

>Number:         39139
>Category:       conf
>Synopsis:       4.4  multi boot loader causes serious damage of all HD EIDE partition tables
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 10 23:30:01 PDT 2002
>Closed-Date:    Mon Dec 23 09:04:39 PST 2002
>Last-Modified:  Mon Dec 23 09:04:39 PST 2002
>Originator:     Stefano Coeli
>Release:        4.4
>Organization:
UTET s.p.a. Italy
>Environment:
FreeBSD  4.4-RELEASE FreeBSD 4.4-RELEASE #0: Tue Sep 18 11:57:08 PDT 2001     murray@builder.FreeBSD.org:/usr/src/sys/compile/GENERIC  i386
>Description:
output of dmesg:

Copyright (c) 1992-2001 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 4.4-RELEASE #0: Tue Sep 18 11:57:08 PDT 2001
    murray@builder.FreeBSD.org:/usr/src/sys/compile/GENERIC
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (300.68-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x660  Stepping = 0
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 134152192 (131008K bytes)
config> di sn0
config> di lnc0
config> di ie0
config> di fe0
config> di ed0
config> q
avail memory = 126017536 (123064K bytes)
Preloaded elf kernel "kernel" at 0xc0480000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc048009c.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 6 entries at 0xc00fdc10
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443LX (440 LX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443LX (440 LX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <ATI Mach64-GB graphics accelerator> at 0.0 irq 11
pci0: <unknown card> (vendor=0x1073, dev=0x000a) at 3.0 irq 10
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xf000-0xf00f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xe000-0xe01f irq 10 at device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
chip1: <Intel 82371AB Power management controller> port 0x5000-0x500f at device 7.3 on pci0
rl0: <RealTek 8139 10/100BaseTX> port 0xe400-0xe4ff mem 0xe8008000-0xe80080ff irq 5 at device 14.0 on pci0
rl0: Ethernet address: 00:c0:26:6d:71:cb
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
orm0: <Option ROM> at iomem 0xc0000-0xc7fff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model 4D Mouse, device ID 6
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ad0: 9541MB <WDC WD100EB-00BHF0> [19386/16/63] at ata0-master UDMA33
ad2: 19595MB <MAXTOR 6L020L1> [39813/16/63] at ata1-master UDMA33
ad3: 4103MB <ST34321A> [8894/15/63] at ata1-slave UDMA33
acd0: CD-RW <LITE-ON LTR-12101B> at ata0-slave using PIO4
Mounting root from ufs:/dev/ad3s1a
========================================
Problem:
Installing the multiple boot loader on the primary drive (ad0, Win98), the kernel doesn't load, the active partition flag become set down; after a generation of a new freebsd partition on drive HD 4GB (ad3) -> with an incorrect geometry <-, the boot loader damaged the partition tables of the 10GB drive (ad0) and of the 20 gb drive (ad2, Linux). The 10 Gb drive /dev/ad0 crash totally with need to fix the partition table, the boot sector and to format, with all data lost.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: dwmalone 
State-Changed-When: Fri Jun 14 17:28:57 PDT 2002 
State-Changed-Why:  
You don't say how you installed the multiple boot loader. Is there 
any possibility you can send the commands required to reproduce this. 
I've installed it many time using both sysinstall and disklabel and 
never had a problem. 

David. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=39139 
State-Changed-From-To: feedback->closed 
State-Changed-By: trhodes 
State-Changed-When: Mon Dec 23 09:03:45 PST 2002 
State-Changed-Why:  
Feedback timeout.  And I don't think this is an issue anymore, least *I* had 
no problem yesterday. 

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