system does not come up after reboot due to devices in /dev missing freebsd v3.2

David Glassman david.glassman at kuehne-nagel.com
Tue Mar 13 17:34:55 UTC 2007


We have a freebsd 3.2 system and had to reboot it. Afterwards it could
not fine the following:
swapon: /dev/da0s1b: No such file or directory
swapon: /dev/da2s1b: No such file or directory
Automatic reboot in progress...
Can't stat /dev/da0s1a: No such file or directory
Can't stat /dev/da0s1a: No such file or directory
/dev/da0s1a: CAN'T CHECK FILE SYSTEM.
/dev/da0s1a: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.

it seems that the above devices disappeared in /dev (See fstab file
below)and goes into maintenance mode.

_How do I recover the devices from my fstab file?? Why would they
suddenly disappear if there was no disk failure??

_There is no scsi errors and did a disklabel to check partitions and
everything looks good (see below):

# disklabel da0
# /dev/rda0c:
type: SCSI
disk: da0s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 2212
sectors/unit: 35551782
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:   409600        0    4.2BSD     1024  8192    16   # (Cyl.    0 - 25*)
  b:  1048576   409600      swap                        # (Cyl.   25*- 90*)
  c: 35551782        0    unused        0     0         # (Cyl.    0 -
2212*)
  e:  1638400  1458176    4.2BSD     1024  8192    16   # (Cyl.   90*- 192*)
  f:   614400  3096576    4.2BSD     1024  8192    16   # (Cyl.  192*- 230*)
  g:   409600  3710976    4.2BSD     1024  8192    16   # (Cyl.  230*- 256*)

# disklabel da1
# /dev/rda1c:
type: SCSI
disk: da1s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 2212
sectors/unit: 35551782
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c: 35551782        0    unused        0     0         # (Cyl.    0 -
2212*)
  e: 18432000        0    4.2BSD     1024  8192    16   # (Cyl.    0 -
1147*)
  f:  8192000 18432000    4.2BSD     1024  8192    16   # (Cyl. 1147*-
1657*)

# disklabel da2
# /dev/rda2c:
type: SCSI
disk: da2s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 2212
sectors/unit: 35551782
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  b:  1048576        0      swap                        # (Cyl.    0 - 65*)
  c: 35551782        0    unused        0     0         # (Cyl.    0 -
2212*)
  e:  8192000  1048576    4.2BSD     1024  8192    16   # (Cyl.   65*- 575*)
  f: 26311206  9240576    4.2BSD     1024  8192    16   # (Cyl.  575*-
2212*)

DMESGS:
Rebooting...
Console: serial port
BIOS drive A: is disk0
BIOS drive C: is disk1
BIOS drive D: is disk2
BIOS drive E: is disk3

FreeBSD/i386 bootstrap loader, Revision 0.7  638/65532kB
(jkh at cathair, Tue May 18 03:22:02 GMT 1999)
Loading /boot/defaults/loader.conf
/kernel text=0x1d4631 data=0x1e380+0x22460 syms=[0x4+0x27610+0x4+0x27383]

Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [kernel]...
BIOS basemem (638K) != RTC basemem (640K), setting to BIOS value
BIOS extmem (65532K) != RTC extmem (65535K)
Copyright (c) 1992-1999 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California. All rights reserved.
FreeBSD 3.2-RELEASE #0: Fri May 19 11:29:47 EDT 2000
    root at fwnau110.usco.com:/usr/src/sys/compile/FWNAU110
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium II/Xeon/Celeron (686-class CPU)
  Origin = "GenuineIntel"  Id = 0x652  Stepping=2
 
Features=0x183fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,<b24>>
real memory  = 536870912 (524288K bytes)
avail memory = 518815744 (506656K bytes)
Programming 24 pins in IOAPIC #0
FreeBSD/SMP: Multiprocessor motherboard
 cpu0 (BSP): apic id:  1, version: 0x00040011, at 0xfee00000
 io0 (APIC): apic id:  0, version: 0x00170011, at 0xfec00000
Preloaded elf kernel "kernel" at 0xc0366000.
Probing for devices on PCI bus 0:
chip0: <Intel 82443BX host to PCI bridge (AGP disabled)> rev 0x02 on
pci0.0.0
chip1: <Intel 82371AB PCI to ISA bridge> rev 0x02 on pci0.4.0
ide_pci0: <Intel PIIX4 Bus-master IDE controller> rev 0x01 on pci0.4.1
chip2: <Intel 82371AB Power management controller> rev 0x02 on pci0.4.3
chip3: <PCI to PCI bridge (vendor=1011 device=0024)> rev 0x02 on pci0.7.0
fxp0: <Intel EtherExpress Pro 10/100B Ethernet> rev 0x02 int a irq 16 on
pci0.8.0
fxp0: Ethernet address 00:a0:c9:ea:fe:f7
fxp1: <Intel EtherExpress Pro 10/100B Ethernet> rev 0x02 int a irq 17 on
pci0.9.0
fxp1: Ethernet address 00:a0:c9:e9:4e:6b
ahc0: <Adaptec aic7880 Ultra SCSI adapter> rev 0x01 int a irq 19 on
pci0.10.0
ahc0: Using left over BIOS settings
ahc0: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs
vga0: <Cirrus Logic GD5446 SVGA controller> rev 0x45 on pci0.13.0
Probing for devices on PCI bus 1:
Probing for PnP devices:
Probing for devices on the ISA bus:
sc0 on isa
sc0: VGA color <16 virtual consoles, flags=0x0>
ed0 not found at 0x280
fe0 not found at 0x300
atkbdc0 at 0x60-0x6f on motherboard
atkbd0 irq 1 on isa
psm0 not found
sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa
sio0: type 16550A, console
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1.44MB 3.5in
wdc0 at 0x1f0-0x1f7 irq 14 on isa
wdc0: unit 0 (atapi): <CD-ROM CDU611-H/2.3b>, removable, accel, dma, iordis
acd0: drive speed 1723KB/sec, 256KB cache
acd0: supported read types: CD-R, CD-RW, CD-DA, packet track
acd0: Audio: play, 16 volume levels
acd0: Mechanism: ejectable tray
acd0: Medium: no/blank disc inside, unlocked
wdc1 not found at 0x170
wt0 not found at 0x300
mcd0 not found at 0x300
matcdc0 not found at 0x230
scd0 not found at 0x230
ppc0 at 0x378 irq 7 flags 0x40 on isa
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
lpt0: <generic printer> on ppbus 0
lpt0: Interrupt-driven port
ppi0: <generic parallel i/o> on ppbus 0
plip0: <PLIP network interface> on ppbus 0
lpt0: <generic printer> on ppbus 0
lpt0: Interrupt-driven port
ie0: unknown board_id: f000
ie0 not found at 0x300
ep0 not found at 0x300
ex0 not found
le0 not found at 0x300
lnc0 not found at 0x280
ze0 not found at 0x300
zp0 not found at 0x300
cs0 not found at 0x300
adv0 not found at 0x330
bt_isa_probe: Probe failled for card at 0x330
bt_isa_probe: Probe failled for card at 0x334
bt_isa_probe: Probe failled for card at 0x230
bt_isa_probe: Probe failled for card at 0x234
bt_isa_probe: Probe failled for card at 0x130
bt_isa_probe: Probe failled for card at 0x134
bt0 not found at 0x134
aha0 not found at 0x134
vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa
npx0 on motherboard
npx0: INT 16 interface
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: Broken MP table detected: 8254 is not connected to IO APIC int
pin 2
APIC_IO: routing 8254 via 8259 on pin 0
Waiting 15 seconds for SCSI devices to settle
cda0 at ahc0 bus 0 target 1 lun 0
da0: <SEAGATE ST118273WC 5958> Fixed Direct Access SCSI-2 device
da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing
Enabled
da0: 17366MB (35566480 512 byte sectors: 64H 32S/T 17366C)
da2 at ahc0 bus 0 target 3 lun 0
da2: <SEAGATE ST118273WC 5958> Fixed Direct Access SCSI-2 device
da2: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing
Enabled
da2: 17366MB (35566480 512 byte sectors: 64H 32S/T 17366C)
da1 at ahc0 bus 0 target 2 lun 0
da1: <SEAGATE ST118273WC 5958> Fixed Direct Access SCSI-2 device
da1: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing
Enabled
da1: 17366MB (35566480 512 byte sectors: 64H 32S/T 17366C)
hanging root device to da0s1a
swapon: /dev/da0s1b: No such file or directory
swapon: /dev/da2s1b: No such file or directory
Automatic reboot in progress...
Can't stat /dev/da0s1a: No such file or directory
Can't stat /dev/da0s1a: No such file or directory
/dev/da0s1a: CAN'T CHECK FILE SYSTEM.
/dev/da0s1a: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
Automatic file system check failed... help!
Enter full pathname of shell or RETURN for /bin/sh:
msgs: not found
mesg: not found
id: not found
[: syntax error
erase ^?, kill ^U, intr ^C
[: syntax error


/etc/fstab file:
# cat /etc/fstab
# Device                Mountpoint      FStype  Options         Dump   
Pass#
/dev/da0s1b             none            swap    sw              0       0
/dev/da2s1b             none            swap    sw              0       0
/dev/da0s1a             /               ufs     rw              1       1
/dev/da2s1f             /archives               ufs     rw             
2       2
/dev/da1s1e             /isp            ufs     rw              2       2
/dev/da2s1e             /isp/DB1                ufs     rw             
2       2
/dev/da1s1f             /isp/DB2                ufs     rw             
2       2
/dev/da0s1g             /tmp            ufs     rw              2       2
/dev/da0s1e             /usr            ufs     rw              2       2
/dev/da0s1f             /var            ufs     rw              2       2
proc                    /proc           procfs  rw              0       0
/dev/wcd0c              /cdrom          cd9660  ro,noauto       0       0



More information about the freebsd-questions mailing list