OpenBSD MBR code probably incompatible

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

OpenBSD MBR code probably incompatible

arianna-2
Submitter-Id: ?
Originator: Arianna ([hidden email])
Organization: none (individual)
Synopsis: After updating MBR code w/ "fdisk -u wd0" (Faq 14.12.2),
OpenBSD failed to boot
Severity: Serious
Priority:low
Category: ?
Class: ?sw-bug?
Release: 3.8
Environment
  System: OpenBSD
  Architecture: OpenBSD.i386
  Machine: i386 (Pentium III, 686-class, 548mhz)
Description:
  After updating the MBR code w/ "fdisk -u wd0" as described in Faq
14.12.2, after rebooting I got the
line "Using Drive: 0 Partion: 0" printed over and over. OpenBSD did not boot.
More history: I had just installed a new Hitachi hard drive in my
computer. I did not use the Hitachi setup
CD. After installing OpenBSD on it and rebooting, I got a "Operating
System Not Found" error. This was
most likely not OpenBSD's fault. I then rebooting using the OpenBSD
install/boot floppy, entering wd0a:/bsd at the boot prompt. OpenBSD
booted fine. After looking at the OpenBSD FAQ, I came across the
14.12.2, and tried "fdisk -u wd0". Upon booting, I got the above
mentioned error. My BIOS also magically changed so that the hard drive
had first priority, but this did not repeat the second time I booted
from floppy and used "fdisk -u wd0".
After this, I tried the Hitachi configuration CD, but my computer
refused to boot off of
it.
I remember also getting this error when I first installed OpenBSD,
but do not remember installing the OpenBSD MBR code that time.
How-To-Repeat:
 This problem happens whenever I try to boot directly off the hard drive.
Fix:
 (Workaround) - Boot off of install floppy, enter "wd0a:/bsd" at boot prompt.
Dmesg:
 attached
OpenBSD 3.8 (GENERIC) #138: Sat Sep 10 15:41:37 MDT 2005
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III ("GenuineIntel" 686-class, 512KB L2 cache) 548 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 536436736 (523864K)
avail mem = 482582528 (471272K)
using 4278 buffers containing 26923008 bytes (26292K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(48) BIOS, date 09/28/99, BIOS32 rev. 0 @ 0xfd780
pcibios0 at bios0: rev 2.1 @ 0xfd780/0x880
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf10/208 (11 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x10000 0xd0000/0x1800 0xe0000/0x4000! 0xe4000/0xc000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "Nvidia Riva TNT2 Ultra" rev 0x11
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
pciide0: channel 0 ignored (disabled)
pciide0: channel 1 ignored (disabled)
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 9
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
"Intel 82371AB Power" rev 0x02 at pci0 dev 7 function 3 not configured
an0 at pci0 dev 14 function 0 "Aironet PCI35x WLAN" rev 0x01: irq 11: address 00:40:96:41:b1:32
wi0 at pci0 dev 15 function 0 "Intersil PRISM2.5" rev 0x01: irq 10
wi0: PRISM2.5 ISL3874A(Mini-PCI) (0x8013), Firmware 1.0.5 (primary), 1.3.4 (station), address 00:06:25:a8:08:53
pciide1 at pci0 dev 16 function 0 "Promise PDC20262" rev 0x01: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using irq 9 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <HDS724040KLAT80>
wd0: 16-sector PIO, LBA48, 381554MB, 781422768 sectors
wd1 at pciide1 channel 0 drive 1: <ST3160021A>
wd1: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 4
wd1(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 4
wd2 at pciide1 channel 1 drive 0: <ST380011A>
wd2: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd2(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 4
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask f37d netmask ff7d ttymask ffff
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
uhub1 at uhub0 port 2
uhub1: HP Multimedia Keyboard Hub, rev 1.10/0.01, addr 2
uhub1: 3 ports with 2 removable, bus powered
uhidev0 at uhub1 port 1 configuration 1 interface 0
uhidev0: HP Multimedia Keyboard Hub, rev 1.10/0.01, addr 3, iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub1 port 1 configuration 1 interface 1
uhidev1: HP Multimedia Keyboard Hub, rev 1.10/0.01, addr 3, iclass 3/0
uhidev1: 3 report ids
uhid0 at uhidev1 reportid 1: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 2: input=1, output=0, feature=0
uhid2 at uhidev1 reportid 3: input=3, output=1, feature=1
uhidev2 at uhub1 port 2 configuration 1 interface 0
uhidev2: Logitech N48, rev 1.00/4.01, addr 4, iclass 3/1
ums0 at uhidev2: 3 buttons and Z dir.
wsmouse0 at ums0 mux 0
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
dkcsum: wd2 matches BIOS drive 0x82
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

Reply | Threaded
Open this post in threaded view
|

Re: OpenBSD MBR code probably incompatible

Tobias Weingartner-2
On Monday, January 23, Arianna wrote:
>   After updating the MBR code w/ "fdisk -u wd0" as described in Faq
> 14.12.2, after rebooting I got the
> line "Using Drive: 0 Partion: 0" printed over and over. OpenBSD did not boot.

Can you give us the output of 'fdisk wd0' and 'disklabel wd0'.  I'm
guessing that you have partition 'a' starting at 0.

--Toby.