NetBSD Problem Report #48387
From www@NetBSD.org Mon Nov 18 04:36:54 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 234F6A618A
for <gnats-bugs@gnats.NetBSD.org>; Mon, 18 Nov 2013 04:36:54 +0000 (UTC)
Message-Id: <20131118043652.CB481A61B2@mollari.NetBSD.org>
Date: Mon, 18 Nov 2013 04:36:52 +0000 (UTC)
From: milam.doug@gmail.com
Reply-To: milam.doug@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Boot process assigns IDE wd0 rather than installed wd0 on SATA
X-Send-Pr-Version: www-1.0
>Number: 48387
>Category: port-amd64
>Synopsis: Boot process assigns IDE wd0 rather than installed wd0 on SATA
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: port-amd64-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 18 04:40:00 +0000 2013
>Last-Modified: Tue Nov 19 16:40:00 +0000 2013
>Originator: Doug Milam
>Release: 5.2_STABLE
>Organization:
>Environment:
NetBSD data1 5.2_STABLE NetBSD 5.2_STABLE (GENERIC) #0: Sat Nov 16 01:16:46 PST 2013 root@:/root/sysbuild/amd64/obj/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
After installing an IDE hard drive, upon the next boot, the boot process (kernel) "thinks" that the IDE drive is now wd0. Note that the boot loader does not; this occurs afterwards as the kernel is loaded into memory and runs.
The original SATA drive is then assigned wd1, and so the kernel drops into the shell.
If the IDE drive is removed, the boot process happens normally.
I have checked the BIOS settings and the IDE is the slave, and set to boot second.
>How-To-Repeat:
Install IDE drive after successful installation on SATA
>Fix:
>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-amd64/48387: Boot process assigns IDE wd0 rather than installed wd0 on SATA
Date: Mon, 18 Nov 2013 09:19:46 +0100
You can temporarily work around it by stopping the auto boot process
at the bootloader (by pressing space for example) and then issue this
boot command:
boot netbsd -a
which will cause the kernel to ask you for the root device.
That should get you up multi-user (but of course is no solution).
Please provide a few more bits of info, we need the output of:
dmesg
disklabel wd0
disklabel wd1
sysctl machdep.diskinfo
Thanks,
Martin
From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@NetBSD.org
Cc: port-amd64-maintainer@NetBSD.org, gnats-admin@NetBSD.org,
netbsd-bugs@NetBSD.org
Subject: Re: port-amd64/48387: Boot process assigns IDE wd0 rather than
installed wd0 on SATA
Date: Mon, 18 Nov 2013 10:23:16 +0100
On Mon, Nov 18, 2013 at 04:40:00AM +0000, milam.doug@gmail.com wrote:
> After installing an IDE hard drive, upon the next boot, the boot process (kernel) "thinks" that the IDE drive is now wd0. Note that the boot loader does not; this occurs afterwards as the kernel is loaded into memory and runs.
>
> The original SATA drive is then assigned wd1, and so the kernel drops into the shell.
>
> If the IDE drive is removed, the boot process happens normally.
the kernel number disks in the order they are found. If the IDE controller
is discovered before the SATA controller on the PCI bus, the IDE drive
will be numbered wd0, that's expected.
I guess you just need to change wd0 to wd1 in /etc/fstab to get a working
system again.
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--
From: Doug Milam <milam.doug@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: port-amd64-maintainer@netbsd.org,
gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: port-amd64/48387: Boot process assigns IDE wd0 rather than installed wd0 on SATA
Date: Mon, 18 Nov 2013 18:59:53 -0800
Thanks. I have since upgraded to 6.1.2, but here=92s the dmesg output =
from the 5.2_STABLE installation, followed by that from 6.1.2 and its =
disklabel info
dmesg =97
NetBSD 5.2_STABLE (GENERIC) #0: Sat Nov 16 01:16:46 PST 2013
=
root@:/root/sysbuild/amd64/obj/usr/src/sys/arch/amd64/compile/GENERIC
total memory =3D 4085 MB
avail memory =3D 3944 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
SMBIOS rev. 2.5 @ 0xf0000 (36 entries)
Shuttle Inc SG31 (V10)
mainbus0 (root)
cpu0 at mainbus0 apid 0: Intel 686-class, 2802MHz, id 0x1067a
cpu1 at mainbus0 apid 1: Intel 686-class, 2802MHz, id 0x1067a
ioapic0 at mainbus0 apid 4: pa 0xfec00000, version 20, 24 pins
acpi0 at mainbus0: Intel ACPICA 20080321
acpi0: X/RSDT: OemId <Shuttl,Shuttle ,42302e31>, AslId <AWRD,00000000>
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
ACPI-Fast 24-bit timer
acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43
hpet0 at acpi0 (HPET, PNP0103): mem 0xfed00000-0xfed003ff irq 0,8
timecounter: Timecounter "hpet0" frequency 14318179 Hz quality 2000
pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
midi0 at pcppi1: PC speaker (CPU-intensive output)
sysbeep0 at pcppi1
FWH (INT0800) at acpi0 not configured
FAN (PNP0C0B) at acpi0 not configured
acpitz0 at acpi0 (THRM): active cooling level 0: 50.0C critical 60.0C =
passive -273.-3C
attimer1: attached to pcppi1
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x8086 product 0x29c0 (rev. 0x10)
agp0 at pchb0: detected 7164k stolen memory
agp0: aperture at 0xd0000000, size 0x10000000
vga0 at pci0 dev 2 function 0: vendor 0x8086 product 0x29c2 (rev. 0x10)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
drm at vga0 not configured
vendor 0x8086 product 0x29c3 (miscellaneous display, revision 0x10) at =
pci0 dev 2 function 1 not configured
ppb0 at pci0 dev 28 function 0: vendor 0x8086 product 0x27d0 (rev. 0x01)
ppb0: PCI Express 1.0 <Root Port of PCI-E Root Complex>
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
ppb1 at pci0 dev 28 function 1: vendor 0x8086 product 0x27d2 (rev. 0x01)
ppb1: PCI Express 1.0 <Root Port of PCI-E Root Complex>
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
mskc0 at pci2 dev 0 function 0mskc0: interrupt moderation is 0 us
, Yukon-2 EC Ultra (0x5): ioapic0 pin 17
msk0 at mskc0 port A: Ethernet address 00:30:1b:48:0c:4f
ukphy0 at msk0 phy 0: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000ac2, model 0x000b, rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, =
1000baseT-FDX, auto
uhci0 at pci0 dev 29 function 0: vendor 0x8086 product 0x27c8 (rev. =
0x01)
uhci0: interrupting at ioapic0 pin 23
usb0 at uhci0: USB revision 1.0
uhci1 at pci0 dev 29 function 1: vendor 0x8086 product 0x27c9 (rev. =
0x01)
uhci1: interrupting at ioapic0 pin 19
usb1 at uhci1: USB revision 1.0
uhci2 at pci0 dev 29 function 2: vendor 0x8086 product 0x27ca (rev. =
0x01)
uhci2: interrupting at ioapic0 pin 18
usb2 at uhci2: USB revision 1.0
uhci3 at pci0 dev 29 function 3: vendor 0x8086 product 0x27cb (rev. =
0x01)
uhci3: interrupting at ioapic0 pin 16
usb3 at uhci3: USB revision 1.0
ehci0 at pci0 dev 29 function 7: vendor 0x8086 product 0x27cc (rev. =
0x01)
ehci0: interrupting at ioapic0 pin 23
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
ppb2 at pci0 dev 30 function 0: vendor 0x8086 product 0x244e (rev. 0xe1)
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled
ath0 at pci3 dev 9 function 0
ath0: interrupting at ioapic0 pin 17
ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps =
24Mbps 36Mbps 48Mbps 54Mbps
ath0: mac 13.10 phy 8.1 radio 13.0
fwohci0 at pci3 dev 10 function 0: vendor 0x104c product 0x8023 (rev. =
0x00)
fwohci0: interrupting at ioapic0 pin 18
fwohci0: OHCI version 1.10 (ROM=3D1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:30:1b:00:00:46:c2:9b
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
ieee1394if0 at fwohci0: IEEE1394 bus
fwip0 at ieee1394if0: IP over IEEE1394
fwohci0: Initiate bus reset
ichlpcib0 at pci0 dev 31 function 0
ichlpcib0: vendor 0x8086 product 0x27b8 (rev. 0x01)
timecounter: Timecounter "ichlpcib0" frequency 3579545 Hz quality 1000
ichlpcib0: 24-bit timer
ichlpcib0: TCO (watchdog) timer configured.
piixide0 at pci0 dev 31 function 1
piixide0: Intel 82801GB/GR IDE Controller (ICH7) (rev. 0x01)
piixide0: bus-master DMA support present
piixide0: primary channel configured to compatibility mode
piixide0: primary channel interrupting at ioapic0 pin 14
atabus0 at piixide0 channel 0
piixide0: secondary channel configured to compatibility mode
piixide0: secondary channel ignored (disabled)
piixide1 at pci0 dev 31 function 2
piixide1: Intel 82801GB/GR Serial ATA/Raid Controller (ICH7) (rev. 0x01)
piixide1: bus-master DMA support present
piixide1: primary channel configured to native-PCI mode
piixide1: using ioapic0 pin 19 for native-PCI interrupt
atabus1 at piixide1 channel 0
piixide1: secondary channel configured to native-PCI mode
atabus2 at piixide1 channel 1
ichsmb0 at pci0 dev 31 function 3: vendor 0x8086 product 0x27da (rev. =
0x01)
ichsmb0: interrupting at ioapic0 pin 19
iic0 at ichsmb0: I2C bus
isa0 at ichlpcib0
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
fwohci0: BUS reset
fwohci0: node_id=3D0xc000ffc0, gen=3D1, CYCLEMASTER mode
ieee1394if0: 1 nodes, maxhop <=3D 0, cable IRM =3D 0 (me)
ieee1394if0: bus manager 0 (me)
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
uhub0 at usb0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, =
addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1 at usb1: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, =
addr 1
uhub1: 2 ports with 2 removable, self powered
uhub2 at usb2: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, =
addr 1
uhub2: 2 ports with 2 removable, self powered
uhub3 at usb3: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, =
addr 1
uhub3: 2 ports with 2 removable, self powered
uhub4 at usb4: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, =
addr 1
uhub4: 8 ports with 8 removable, self powered
wd0 at atabus0 drive 1: <HDS725050KLAT80>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 465 GB, 969021 cyl, 16 head, 63 sec, 512 bytes/sect x 976773168 =
sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(piixide0:0:1): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using =
DMA)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 1: <TSSTcorp CDDVDW SH-S223Q, , SB03> cdrom =
removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1 at atabus1 drive 0: <WDC WD6401AALS-00L3B2>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 596 GB, 1240341 cyl, 16 head, 63 sec, 512 bytes/sect x 1250263728 =
sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1(piixide1:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using =
DMA)
cd0(piixide1:0:1): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using =
DMA)
Kernelized RAIDframe activated
pad0: outputs: 44100Hz, 16-bit, stereo
audio0 at pad0: half duplex, playback, capture
boot device: wd1
root on wd1a dumps on wd1b
root file system type: ffs
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, =
2005,
2006, 2007, 2008, 2009, 2010
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 6.1.2 (GENERIC)
total memory =3D 4085 MB
avail memory =3D 3951 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
Shuttle Inc SG31 (V10)
mainbus0 (root)
cpu0 at mainbus0 apid 0: Intel(R) Core(TM)2 CPU E7400 @ =
2.80GHz, id 0x1067a
cpu1 at mainbus0 apid 1: Intel(R) Core(TM)2 CPU E7400 @ =
2.80GHz, id 0x1067a
ioapic0 at mainbus0 apid 4: pa 0xfec00000, version 20, 24 pins
acpi0 at mainbus0: Intel ACPICA 20110623
acpi0: X/RSDT: OemId <Shuttl,Shuttle ,42302e31>, AslId <AWRD,00000000>
acpi0: SCI interrupting at int 9
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
timecounter: Timecounter "hpet0" frequency 14318180 Hz quality 2000
acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
SYSR (PNP0C02) at acpi0 not configured
attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43
pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
midi0 at pcppi1: PC speaker
sysbeep0 at pcppi1
PMIO (PNP0C02) at acpi0 not configured
FWH (INT0800) at acpi0 not configured
EXPL (PNP0C02) at acpi0 not configured
MEM (PNP0C01) at acpi0 not configured
acpifan0 at acpi0 (FAN, PNP0C0B): ACPI Fan
acpitz0 at acpi0 (THRM): cpu0
acpitz0: active cooling level 0: 50.0C
acpitz0: levels: critical 60.0 C, passive 50.0 C
attimer1: attached to pcppi1
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0: vendor 0x8086 product 0x29c0 (rev. 0x10)
agp0 at pchb0: detected 7164k stolen memory
agp0: aperture at 0xd0000000, size 0x10000000
vga0 at pci0 dev 2 function 0: vendor 0x8086 product 0x29c2 (rev. 0x10)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
i915drm0 at vga0: Intel G33
i915drm0: AGP at 0xd0000000 256MB
i915drm0: Initialized i915 1.6.0 20080730
vendor 0x8086 product 0x29c3 (miscellaneous display, revision 0x10) at =
pci0 dev 2 function 1 not configured
ppb0 at pci0 dev 28 function 0: vendor 0x8086 product 0x27d0 (rev. 0x01)
ppb0: PCI Express 1.0 <Root Port of PCI-E Root Complex>
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
ppb1 at pci0 dev 28 function 1: vendor 0x8086 product 0x27d2 (rev. 0x01)
ppb1: PCI Express 1.0 <Root Port of PCI-E Root Complex>
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
mskc0 at pci2 dev 0 function 0, Yukon-2 EC Ultra (0x5): ioapic0 pin 17
msk0 at mskc0 port A: Ethernet address 00:30:1b:48:0c:4f
ukphy0 at msk0 phy 0: OUI 0x000ac2, model 0x000b, rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, =
1000baseT-FDX, auto
uhci0 at pci0 dev 29 function 0: vendor 0x8086 product 0x27c8 (rev. =
0x01)
uhci0: interrupting at ioapic0 pin 23
usb0 at uhci0: USB revision 1.0
uhci1 at pci0 dev 29 function 1: vendor 0x8086 product 0x27c9 (rev. =
0x01)
uhci1: interrupting at ioapic0 pin 19
usb1 at uhci1: USB revision 1.0
uhci2 at pci0 dev 29 function 2: vendor 0x8086 product 0x27ca (rev. =
0x01)
uhci2: interrupting at ioapic0 pin 18
usb2 at uhci2: USB revision 1.0
uhci3 at pci0 dev 29 function 3: vendor 0x8086 product 0x27cb (rev. =
0x01)
uhci3: interrupting at ioapic0 pin 16
usb3 at uhci3: USB revision 1.0
ehci0 at pci0 dev 29 function 7: vendor 0x8086 product 0x27cc (rev. =
0x01)
ehci0: interrupting at ioapic0 pin 23
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
ppb2 at pci0 dev 30 function 0: vendor 0x8086 product 0x244e (rev. 0xe1)
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled
ath0 at pci3 dev 9 function 0: Atheros 5416
pci_set_powerstate not supported
ath0: interrupting at ioapic0 pin 17
ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps =
24Mbps 36Mbps 48Mbps 54Mbps
ath0: mac 13.10 phy 8.1 radio 13.0
fwohci0 at pci3 dev 10 function 0: vendor 0x104c product 0x8023 (rev. =
0x00)
fwohci0: interrupting at ioapic0 pin 18
fwohci0: OHCI version 1.10 (ROM=3D1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:30:1b:00:00:46:c2:9b
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
ieee1394if0 at fwohci0: IEEE1394 bus
fwip0 at ieee1394if0: IP over IEEE1394
fwohci0: Initiate bus reset
ichlpcib0 at pci0 dev 31 function 0: vendor 0x8086 product 0x27b8 (rev. =
0x01)
timecounter: Timecounter "ichlpcib0" frequency 3579545 Hz quality 1000
ichlpcib0: 24-bit timer
ichlpcib0: TCO (watchdog) timer configured.
piixide0 at pci0 dev 31 function 1: Intel 82801GB/GR IDE Controller =
(ICH7) (rev. 0x01)
piixide0: bus-master DMA support present
piixide0: primary channel configured to compatibility mode
piixide0: primary channel interrupting at ioapic0 pin 14
atabus0 at piixide0 channel 0
piixide0: secondary channel configured to compatibility mode
piixide0: secondary channel ignored (disabled)
piixide1 at pci0 dev 31 function 2: Intel 82801GB/GR Serial ATA/Raid =
Controller (ICH7) (rev. 0x01)
piixide1: bus-master DMA support present
piixide1: primary channel configured to native-PCI mode
piixide1: using ioapic0 pin 19 for native-PCI interrupt
atabus1 at piixide1 channel 0
piixide1: secondary channel configured to native-PCI mode
atabus2 at piixide1 channel 1
ichsmb0 at pci0 dev 31 function 3: vendor 0x8086 product 0x27da (rev. =
0x01)
ichsmb0: interrupting at ioapic0 pin 19
iic0 at ichsmb0: I2C bus
isa0 at ichlpcib0
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
acpicpu0 at cpu0: ACPI CPU
acpicpu0: C1: HLT, lat 0 us, pow 0 mW
coretemp0 at cpu0: thermal sensor, 1 C resolution
acpicpu1 at cpu1: ACPI CPU
coretemp1 at cpu1: thermal sensor, 1 C resolution
fwohci0: BUS reset
fwohci0: node_id=3D0xc000ffc0, gen=3D1, CYCLEMASTER mode
ieee1394if0: 1 nodes, maxhop <=3D 0 cable IRM irm(0) (me)
ieee1394if0: bus manager 0
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
uhub0 at usb1: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, =
addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1 at usb3: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, =
addr 1
uhub1: 2 ports with 2 removable, self powered
uhub2 at usb0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, =
addr 1
uhub2: 2 ports with 2 removable, self powered
uhub3 at usb2: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, =
addr 1
uhub3: 2 ports with 2 removable, self powered
uhub4 at usb4: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, =
addr 1
uhub4: 8 ports with 8 removable, self powered
wd0 at atabus0 drive 0
wd0: <HDS725050KLAT80>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 465 GB, 969021 cyl, 16 head, 63 sec, 512 bytes/sect x 976773168 =
sectors
uhidev0 at uhub2 port 1 configuration 1 interface 0
uhidev0: DELL DELL USB Keyboard, rev 1.10/1.00, addr 2, iclass 3/1
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using =
DMA)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 1: <TSSTcorp CDDVDW SH-S223Q, , SB03> cdrom =
removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1 at atabus1 drive 0
wd1: <WDC WD6401AALS-00L3B2>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 596 GB, 1240341 cyl, 16 head, 63 sec, 512 bytes/sect x 1250263728 =
sectors
ukbd0 at uhidev0
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1(piixide1:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using =
DMA)
cd0(piixide1:0:1): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using =
DMA)
Kernelized RAIDframe activated
pad0: outputs: 44100Hz, 16-bit, stereo
audio0 at pad0: half duplex, playback, capture
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub2 port 1 configuration 1 interface 1
uhidev1: DELL DELL USB Keyboard, rev 1.10/1.00, addr 2, iclass 3/0
boot device: wd1
root on wd1a dumps on wd1b
uhidev1: 2 report ids
uhid0 at uhidev1 reportid 1: input=3D1, output=3D0, feature=3D0
uhid1 at uhidev1 reportid 2: input=3D3, output=3D0, feature=3D0
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
disklabel wd0 =97
# /dev/rwd0d:
type: ESDI
disk: HDS725050KLAT80=20
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 969021
total sectors: 976773168
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0=20
5 partitions:
# size offset fstype [fsize bsize cpg/sgs]
d: 976773168 0 unused 0 0 # (Cyl. 0 - =
969020)
e: 976773105 63 unknown # (Cyl. 0*- =
969020)
disklabel wd1 =97
# /dev/rwd1d:
type: unknown
disk: WDC WD6401AALS-
label:=20
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 1240341
total sectors: 1250263728
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0=20
16 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 20972448 63 4.2BSD 2048 16384 0 # (Cyl. 0*- =
20806*)
b: 4195296 20972511 swap # (Cyl. 20806*- =
24968*)
c: 1250263665 63 unused 0 0 # (Cyl. 0*- =
1240340)
d: 1250263728 0 unused 0 0 # (Cyl. 0 - =
1240340)
e: 67464432 25167807 4.2BSD 2048 16384 0 # (Cyl. 24968*- =
91897*)
f: 67109616 92632239 4.2BSD 2048 16384 0 # (Cyl. 91897*- =
158474*)
g: 20972448 159741855 4.2BSD 2048 16384 0 # (Cyl. 158474*- =
179280*)
h: 1048576032 180714303 4.2BSD 2048 16384 0 # (Cyl. 179280*- =
1219534*)
i: 20973393 1229290335 4.2BSD 2048 16384 0 # (Cyl. =
1219534*- 1240340)
On Nov 18, 2013, at 12:20 AM, Martin Husemann <martin@duskware.de> =
wrote:
>=20
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc:=20
Subject: Re: port-amd64/48387: Boot process assigns IDE wd0 rather than =
installed wd0 on SATA
Date: Mon, 18 Nov 2013 09:19:46 +0100
You can temporarily work around it by stopping the auto boot process
at the bootloader (by pressing space for example) and then issue this
boot command:
boot netbsd -a
which will cause the kernel to ask you for the root device.
That should get you up multi-user (but of course is no solution).
Please provide a few more bits of info, we need the output of:
dmesg
disklabel wd0
disklabel wd1
sysctl machdep.diskinfo
Thanks,
Martin=
From: Doug Milam <milam.doug@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: port-amd64-maintainer@netbsd.org,
gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: port-amd64/48387: Boot process assigns IDE wd0 rather than installed wd0 on SATA
Date: Mon, 18 Nov 2013 19:01:38 -0800
Thanks. I=92ve edited fstab accordingly and it booted normally with both =
drives attached.
Doug
On Nov 18, 2013, at 1:25 AM, Manuel Bouyer <bouyer@antioche.eu.org> =
wrote:
> The following reply was made to PR port-amd64/48387; it has been noted =
by GNATS.
>=20
> From: Manuel Bouyer <bouyer@antioche.eu.org>
> To: gnats-bugs@NetBSD.org
> Cc: port-amd64-maintainer@NetBSD.org, gnats-admin@NetBSD.org,
> netbsd-bugs@NetBSD.org
> Subject: Re: port-amd64/48387: Boot process assigns IDE wd0 rather =
than
> installed wd0 on SATA
> Date: Mon, 18 Nov 2013 10:23:16 +0100
>=20
> On Mon, Nov 18, 2013 at 04:40:00AM +0000, milam.doug@gmail.com wrote:
>> After installing an IDE hard drive, upon the next boot, the boot =
process (kernel) "thinks" that the IDE drive is now wd0. Note that the =
boot loader does not; this occurs afterwards as the kernel is loaded =
into memory and runs.
>>=20
>> The original SATA drive is then assigned wd1, and so the kernel drops =
into the shell.
>>=20
>> If the IDE drive is removed, the boot process happens normally.
>=20
> the kernel number disks in the order they are found. If the IDE =
controller
> is discovered before the SATA controller on the PCI bus, the IDE drive
> will be numbered wd0, that's expected.
> I guess you just need to change wd0 to wd1 in /etc/fstab to get a =
working
> system again.
>=20
> --=20
> Manuel Bouyer <bouyer@antioche.eu.org>
> NetBSD: 26 ans d'experience feront toujours la difference
> --
>=20
From: Doug Milam <milam.doug@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: port-amd64-maintainer@netbsd.org,
gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: port-amd64/48387: Boot process assigns IDE wd0 rather than installed wd0 on SATA
Date: Mon, 18 Nov 2013 19:07:54 -0800
data1$ sysctl machdep.diskinfo
machdep.diskinfo: 80:1250263728(1023/255/63),2 =
81:976773168(1023/255/63),2 wd0:81 wd1:80
On Nov 18, 2013, at 12:20 AM, Martin Husemann <martin@duskware.de> =
wrote:
> sysctl machdep.diskinfo
From: Martin Husemann <martin@duskware.de>
To: Doug Milam <milam.doug@gmail.com>
Cc: gnats-bugs@NetBSD.org
Subject: Re: port-amd64/48387: Boot process assigns IDE wd0 rather than installed wd0 on SATA
Date: Tue, 19 Nov 2013 12:33:31 +0100
On Mon, Nov 18, 2013 at 07:07:54PM -0800, Doug Milam wrote:
> data1$ sysctl machdep.diskinfo
> machdep.diskinfo: 80:1250263728(1023/255/63),2 81:976773168(1023/255/63),2 wd0:81 wd1:80
>
Oh, I see, Manuel guessed it correctly: the numbering is strange, but the
bootloader tells the kernel the correct drive. But sysinst generated a
bogus fstab. I wonder if that would still happen in a from-scratch
installation with 6.x or newer sysinst (I think it is fixed).
Martin
From: Doug Milam <milam.doug@gmail.com>
To: Martin Husemann <martin@duskware.de>
Cc: "gnats-bugs@NetBSD.org" <gnats-bugs@NetBSD.org>
Subject: Re: port-amd64/48387: Boot process assigns IDE wd0 rather than installed wd0 on SATA
Date: Tue, 19 Nov 2013 08:39:30 -0800
I had to disconnect the IDE drive after sysinst "chose" it, even though I se=
lected the SATA drive to upgrade. But yes, editing fstab worked.
> On Nov 19, 2013, at 3:33 AM, Martin Husemann <martin@duskware.de> wrote:
>=20
>> On Mon, Nov 18, 2013 at 07:07:54PM -0800, Doug Milam wrote:
>> data1$ sysctl machdep.diskinfo
>> machdep.diskinfo: 80:1250263728(1023/255/63),2 81:976773168(1023/255/63),=
2 wd0:81 wd1:80
>=20
> Oh, I see, Manuel guessed it correctly: the numbering is strange, but the
> bootloader tells the kernel the correct drive. But sysinst generated a
> bogus fstab. I wonder if that would still happen in a from-scratch=20
> installation with 6.x or newer sysinst (I think it is fixed).
>=20
>=20
> Martin
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.