I ran into a problem when rebooting to a current kernel (i386 GENERIC)
due to a secondary disk without an 'a' partition.  Disk sd0 checked out
fine, but all the partitions on sd1 had bad magic numbers and failed
fsck:

/dev/rsd1d: BAD SUPER BLOCK: MAGIC NUMBER WRONG
/dev/rsd1d: UNEXPECTED INCONSISTENCY; RUN fsck_ffs MANUALLY.
 ...
/dev/rsd1n: BAD SUPER BLOCK: MAGIC NUMBER WRONG
/dev/rsd1n: UNEXPECTED INCONSISTENCY; RUN fsck_ffs MANUALLY.

"Old" disklabel sd1:

# Inside MBR partition 0: type A5 start 63 size 71681967
# /dev/rsd1c:
type: SCSI
disk: da0s1
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 4462
total sectors: 71687370
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

15 partitions:
#             size        offset  fstype [fsize bsize  cpg]
  c:      71681967            63  unused      0     0      # Cyl     0*-  4461 
  d:       2104452            63  4.2BSD   2048 16384  132 # Cyl     0*-   130 
  e:       8385930       2104515  4.2BSD   2048 16384  328 # Cyl   131 -   652 
  f:      23294250      48387780  4.2BSD   2048 16384  328 # Cyl  3012 -  4461 
  h:       4112640      15936480  4.2BSD   2048 16384  256 # Cyl   992 -  1247 
  i:       2104515      40933620  4.2BSD   2048 16384  132 # Cyl  2548 -  2678 
  j:      18828180      20049120  4.2BSD   2048 16384  328 # Cyl  1248 -  2419 
  k:       5349645      43038135  4.2BSD   2048 16384   16 # Cyl  2679 -  3011 
  l:       2056320      38877300  4.2BSD   2048 16384  128 # Cyl  2420 -  2547 
  m:       2104515      10490445  4.2BSD   2048 16384  132 # Cyl   653 -   783 
  n:       3341520      12594960  4.2BSD   2048 16384  208 # Cyl   784 -   991 

  "New" disklabel sd1:

# Inside MBR partition 0: type A5 start 63 size 71681967
# /dev/rsd1c:
type: SCSI
disk: SCSI disk
label: ST336705LW     
flags:
bytes/sector: 512
sectors/track: 470
tracks/cylinder: 8
sectors/cylinder: 3760
cylinders: 19036
total sectors: 71687370
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

16 partitions:
#             size        offset  fstype [fsize bsize  cpg]
  c:      71687370             0  unused      0     0      # Cyl     0 - 19065*
  d:       2097000      34314840  4.2BSD   1024  8192   16 # Cyl  9126*-  9683 
  e:       1049040      36411840  4.2BSD   1024  8192   16 # Cyl  9684 -  9962 
  f:       4196160      37460880  4.2BSD   1024  8192   16 # Cyl  9963 - 11078 
  g:       4196160      41657040  4.2BSD   1024  8192   16 # Cyl 11079 - 12194 
  h:       8388560      45853200  4.2BSD   1024  8192   16 # Cyl 12195 - 14425 
  i:        530082            63  ext2fs                   # Cyl     0*-   140*
  j:       1060290      16466625 unknown                   # Cyl  4379*-  4661*
  k:      16787925      17526915  ext2fs                   # Cyl  4661*-  9126*
  l:      15936480        530145  ext2fs                   # Cyl   140*-  4379*

  I assume this is due to using the new kernel with the old fsck and
  that installing the next snapshot will fix it.  If this is unexpected,
  please let me know if you want additional information.

Last dmesg, just in case...

OpenBSD 4.0-current (GENERIC) #1141: Sun Oct  8 13:54:04 MDT 2006
    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 CPU 1500MHz ("GenuineIntel" 686-class) 1.50 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM
real mem  = 804384768 (785532K)
avail mem = 725274624 (708276K)
using 4256 buffers containing 40341504 bytes (39396K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 06/06/01, BIOS32 rev. 0 @ 0xffe90, 
SMBIOS rev. 2.3 @ 0xf0450 (97 entries)
bios0: Dell Computer Corporation Precision 330
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfbbb0/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801BA LPC" rev 0x00)
pcibios0: PCI bus #2 is the last bus
bios0: ROM list: 0xc0000/0xa800 0xca800/0x5800
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82850 Host" rev 0x02
ppb0 at pci0 dev 1 function 0 "Intel 82850/82860 AGP" rev 0x02
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "NVIDIA Vanta" rev 0x15
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb1 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0x04
pci2 at ppb1 bus 2
fxp0 at pci2 dev 8 function 0 "Intel 8255x" rev 0x05, i82558: irq 10, address 
00:90:27:86:21:9c
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 0
ahc0 at pci2 dev 10 function 0 "Adaptec AHA-2940U2 U2" rev 0x00: irq 11
scsibus0 at ahc0: 16 targets
sd0 at scsibus0 targ 0 lun 0: <SEAGATE, ST39102LW, 0005> SCSI2 0/direct fixed
sd0: 8683MB, 6962 cyl, 12 head, 212 sec, 512 bytes/sec, 17783240 sec total
sd1 at scsibus0 targ 2 lun 0: <SEAGATE, ST336705LW, 5063> SCSI3 0/direct fixed
sd1: 35003MB, 19036 cyl, 8 head, 470 sec, 512 bytes/sec, 71687370 sec total
cd0 at scsibus0 targ 4 lun 0: <YAMAHA, CRW8824S, 1.00> SCSI2 5/cdrom removable
cd1 at scsibus0 targ 6 lun 0: <TEAC, CD-ROM CD-532S, 1.0A> SCSI2 5/cdrom 
removable
ichpcib0 at pci0 dev 31 function 0 "Intel 82801BA LPC" rev 0x04
pciide0 at pci0 dev 31 function 1 "Intel 82801BA IDE" rev 0x04: DMA, channel 0 
wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <IC35L040AVER07-0>
wd0: 16-sector PIO, LBA, 38166MB, 78165360 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
pciide0: channel 1 ignored (disabled)
uhci0 at pci0 dev 31 function 2 "Intel 82801BA USB" rev 0x04: irq 11
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
ichiic0 at pci0 dev 31 function 3 "Intel 82801BA SMBus" rev 0x04: irq 10
iic0 at ichiic0
uhci1 at pci0 dev 31 function 4 "Intel 82801BA USB" rev 0x04: irq 9
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
auich0 at pci0 dev 31 function 5 "Intel 82801BA AC97" rev 0x04: irq 10, ICH2 
AC97
ac97: codec id 0x41445360 (Analog Devices AD1885)
ac97: codec features headphone, Analog Devices Phat Stereo
audio0 at auich0
isa0 at ichpcib0
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
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask ef65 netmask ef65 ttymask ffe7
pctr: user-level cycle counter enabled
ahc0: target 0 using 16bit transfers
ahc0: target 0 synchronous at 20.0MHz, offset = 0xf
dkcsum: sd0 matches BIOS drive 0x80
ahc0: target 2 using 16bit transfers
ahc0: target 2 synchronous at 20.0MHz, offset = 0x3f
dkcsum: sd1 matches BIOS drive 0x82
wd0: no disk label
dkcsum: wd0 matches BIOS drive 0x81
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02

Reply via email to