Subject: Re: upgrade problem
To: Nathan Langford <njl@sdf.lonestar.org>
From: John R. Shannon <john@johnrshannon.com>
List: current-users
Date: 02/09/2004 17:04:28
=46rom src/UPDATING:

20040109:
        Compatibility for old ffs superblock layouts has been
        added, and the restrictive fsck checks have been reenabled
        when using those layouts.  If you have been using -current
        since 20030402, you may find that fsck again signals fatal
        superblock mismatches.  To work around, you can use
        fsck_ffs -b 32 -c 4 to restore an alternate superblock
        and complete the filesystem upgrade.


My guess is this is your problem.

On Monday 09 February 2004 04:24 pm, Nathan Langford wrote:
> I am in the process of upgrading to -current to take advantage of the MP
> code.  I used build.sh to compile the kernel and userland into the obj/
> directory, then ran "./build.sh install=3D/".
>
> Fortunately the new kernel boots, but unfortunately it puts me in single
> user mode after complaining about file system problems.  The old kernel
> boots up just fine, however.
>
> Any suggestions would be greatly appreciated.  Below are the error message
> and dmesg output from the 1.6.1 kernel.
>
> Thanks
> -Nathan
>
> ---- error message after kenel loads ----
>
> swapctl: /dev/sd2b: Device not configured
> Starting file system checks:
> Can't open /dev/rsd2a: Device not configured
> CAN'T CHECK FILE SYSTEM.
> /dev/rsd2a: UNEXPECTED INCONSISTENCY; RUN fsck_ffs MANUALLY.
> Automatic file system check failed; help!
> init: /bin/sh on /etc/rc terminiated abnormally, going to single user
> mode.
>
> ---- dmesg output from 1.6.1 kernel ----
> NetBSD 1.6.1 (GENERIC) #0: Tue Apr  8 12:05:52 UTC 2003
>
> autobuild@tgm.daemon.org:/autobuild/netbsd-1-6/i386/OBJ/autobuild/netbsd-=
1-
>6/src/sys/arch/i386/compile/GENERIC cpu0: Intel Pentium III (Coppermine)
> (686-class), 728.47 MHz
> cpu0: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 2-way
> cpu0: L2 cache 256 KB 32b/line 8-way
> cpu0: features 383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
> cpu0: features 383fbff<PGE,MCA,CMOV,FGPAT,PSE36,MMX>
> cpu0: features 383fbff<FXSR,SSE>
> total memory =3D 511 MB
> avail memory =3D 467 MB
> using 6144 buffers containing 26276 KB of memory
> BIOS32 rev. 0 found at 0xffe90
> mainbus0 (root)
> 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: Intel 82840 Host (rev. 0x01)
> pchb0: random number generator enabled
> agp0 at pchb0: can't find internal VGA device config space
> ppb0 at pci0 dev 1 function 0: Intel 82840 AGP (rev. 0x01)
> pci1 at ppb0 bus 1
> pci1: i/o space, memory space enabled
> vga1 at pci1 dev 0 function 0: Nvidia Corporation Quadro (rev. 0x10)
> wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
> wsmux1: connecting to wsdisplay0
> ppb1 at pci0 dev 30 function 0: Intel 82801AA Hub-to-PCI Bridge (rev.
> 0x02)
> pci2 at ppb1 bus 2
> pci2: i/o space, memory space enabled
> ex0 at pci2 dev 4 function 0: 3Com 3c905C-TX 10/100 Ethernet with mngmt
> (rev. 0x78)
> ex0: interrupting at irq 9
> ex0: MAC address 00:b0:d0:3e:60:04
> bmtphy0 at ex0 phy 24: Broadcom 3c905C internal PHY, rev. 7
> bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> clcs0 at pci2 dev 6 function 0: Cirrus Logic CS4280 CrystalClear Audio
> Interface (rev. 0x01)
> clcs0: interrupting at irq 10
> clcs0: CRY20 codec; headphone, 20 bit DAC, 18 bit ADC, Crystal Semi 3D
> audio0 at clcs0: full duplex, independent
> midi0 at clcs0: CS4280 MIDI UART
> Texas Instruments TSB12LV23 OHCI IEEE 1394 Host Controller (Firewire
> serial bus, interface 0x10) at pci2 dev 11 function 0 not configured
> ppb2 at pci2 dev 14 function 0: Digital Equipment DECchip 21152 PCI-PCI
> Bridge (rev. 0x03)
> pci3 at ppb2 bus 3
> pci3: i/o space, memory space enabled
> ahc1 at pci3 dev 10 function 0
> ahc1: interrupting at irq 10
> ahc1: aic7899 Wide Channel A, SCSI Id=3D7, 16/255 SCBs
> scsibus0 at ahc1: 16 targets, 8 luns per target
> ahc2 at pci3 dev 10 function 1
> ahc2: interrupting at irq 14
> ahc2: aic7899 Wide Channel B, SCSI Id=3D7, 16/255 SCBs
> scsibus1 at ahc2: 16 targets, 8 luns per target
> pcib0 at pci0 dev 31 function 0
> pcib0: Intel 82801AA LPC Interface Bridge (rev. 0x02)
> pciide0 at pci0 dev 31 function 1: Intel 82801AA IDE Controller (ICH)
> (rev. 0x02)
> pciide0: bus-master DMA support present
> pciide0: primary channel wired to compatibility mode
> pciide0: primary channel ignored (disabled)
> pciide0: secondary channel wired to compatibility mode
> atapibus0 at pciide0 channel 1: 2 targets
> cd0 at atapibus0 drive 0: <CRD-8482B, , 1.05> type 5 cdrom removable
> cd0: 32-bit data port
> cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
> sd0 at atapibus0 drive 1: <IOMEGA  ZIP 250       ATAPI, , 51.G> type 0
> direct removable
> sd0: drive offline
> sd0: 32-bit data port
> sd0: drive supports PIO mode 3
> pciide0: secondary channel interrupting at irq 15
> cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA
> data transfers)
> sd0(pciide0:1:1): using PIO mode 3
> uhci0 at pci0 dev 31 function 2: Intel 82801AA USB Controller (rev. 0x02)
> uhci0: interrupting at irq 14
> usb0 at uhci0: USB revision 1.0
> uhub0 at usb0
> uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> Intel 82801AA SMBus Controller (SMBus serial bus, revision 0x02) at pci0
> dev 31 function 3 not configured
> isa0 at pcib0
> com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
> com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
> 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
> pms0 at pckbc0 (aux slot)
> pckbc0: using irq 12 for aux slot
> wsmouse0 at pms0 mux 0
> lpt0 at isa0 port 0x378-0x37b irq 7
> pcppi0 at isa0 port 0x61
> midi1 at pcppi0: PC speaker
> sysbeep0 at pcppi0
> isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
> npx0 at isa0 port 0xf0-0xff: using exception 16
> fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
> fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
> isapnp0: no ISA Plug 'n Play devices found
> biomask ed65 netmask ef65 ttymask ffe7
> scsibus0: waiting 2 seconds for devices to settle...
> sd1 at scsibus0 target 0 lun 0: <QUANTUM, VIKING II 4.5WLS, 3506> SCSI2
> 0/direct fixed
> sd1: 4350 MB, 8338 cyl, 5 head, 213 sec, 512 bytes/sect x 8910423 sectors
> sd1: sync (25.0ns offset 31), 16-bit (80.000MB/s) transfers, tagged
> queueing
> sd2 at scsibus0 target 2 lun 0: <SEAGATE, ST39103LW, 3700> SCSI2 0/direct
> fixed
> sd2: 8683 MB, 9772 cyl, 6 head, 303 sec, 512 bytes/sect x 17783240 sectors
> sd2: sync (25.0ns offset 15), 16-bit (80.000MB/s) transfers, tagged
> queueing
> sd3 at scsibus0 target 4 lun 0: <SEAGATE, ST39102LW, 0005> SCSI2 0/direct
> fixed
> sd3: 8683 MB, 6962 cyl, 12 head, 212 sec, 512 bytes/sect x 17783240
> sectors
> sd3: sync (25.0ns offset 15), 16-bit (80.000MB/s) transfers, tagged
> queueing
> scsibus1: waiting 2 seconds for devices to settle...
> Kernelized RAIDframe activated
> pciide0:1:1: pio setting rejected, falling back to PIO mode 0
> cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA
> data transfers)
> sd0(pciide0:1:1): using PIO mode 0
> sd1: no disk label
> sd3: no disk label
> sd1: no disk label
> sd3: no disk label
> boot device: sd2
> root on sd2a dumps on sd2b
> 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)

=2D-=20

John R. Shannon
john@johnrshannon.com