Subject: NetBSD Hang after disklabel, xsm crash
To: None <port-i386@NetBSD.ORG>
From: Harald Bjoroy <harald@bitcon.no>
List: port-i386
Date: 07/28/1998 00:46:56
Hi.

I am trying to replace my NT server with a NetBSD server; that is
replace the OS, since NT is somewhat slow on my 486, and I need to =
learn
some UNIX programming tools (Qt, php, mysql), and I need to serve my =
DEC
pmax with some more diskspace.

I have some serious problems, and believe I will have to give up and
reinstall NT soon.

My system is a DEC PC XL 466d2 with a CPU upgrade to AMD 120 MHz
(running 100 MHz because of hardware limitations). I have an NCR 53c810
(Symbios Logic now?) built-in scsi adapter on it, and 32 MBs of memory
(for this test, also have additional 16 MBs that I have removed during
troubleshooting).

The machine has a built in IDE controller (not EIDE) without support =
for
larger disks, but NT has been able to use my larger disks with no
problems; I just had to create a small C-partition.

I have one 1,2 GB IDE drive (Conner 1275MB, CFS1275A), one 3,2 GB IDE
drive (Quantum TM3200), a DEC 1 GB SCSI drive (DEC RZ26A?) and a =
Toshiba
SCSI CD-Rom.

To move to NetBSD I reformatted the 3,2 GB to FAT filesystem copied the
1.3.2 binaries to this disk, booted the NetBSD install-floppy and did a
plain installation following all suggestions from sysinst.=20

The system booted fine from wd0 (the 1,2 GB disk).

The 1,2 GB disk is wd0, the 3,2 GB disk is wd1 and the SCSI disk is =
sd0.
So far so good. I figured out the parameters of the two other disks
(later I have checked the documentation for the disks and confirmed =
that
the parameters was correct), and tried to make entries in disktab for
the disks.=20

I did a "disklabel -r -w sd0 RZ26A myscsidisk" and a "newfs sd0c". This
gave me a message that said that I was wasting some sectors at the end
of the disk. I added the number from the message to the size of the
C-partition in disktab, did a new disklabel/newfs and everything went
fine without any warnings.

For the 3,2GB I did the same thing. After the first "newfs wd1c", I got
a message telling me that I was wasting 8064 sectors of the disk. I
added 8064 to the number 6281856 which was the size I had entered for =
my
C-partition on this disk, and tried to do a new disklabel.=20

At this point the machine hung. I had some Xterms to another machine,
these stopped to respond, the window manager also stopped. I tried to
ping the machine, but got no response.

I tried a reset on the machine, and the machine started booting;
including doing checks for wd0 and wd1 with success. At the point where
I expect the message "boot device: wd0" the machine hung again. =
Whatever
I do, the machine hangs at this point. If I disable the second IDE disk
(wd1), the machine boots without problems.

I have booted MSDOS and done a "fdisk" on the disk, including
formatting, this has gone well, but it doesn't help; NetBSD will not
boot with this disk enabled.

I have tried to use the NetBSD install disk to write a new disklabel to
the disk, but when I try disklabel on wd1 it hangs immediately, there =
is
no problems when I do a "disklabel -r wd0".

Any tips - Please!=20

I am running the generic kernel binary release now, but I intend to
rebuild things as soon as I get the time (I was going to wait 'till I
got the system configured the way I want, but maybe a build will =
help?).

Also, I am having problems with xsm. If I start xdm, I can't log in
using xdm, because xsm crashes. All users logging in get a "xsm.core" =
in
their home directory. I managed to find out that xsm reports "memory
fault" when it crashes.

Note that this machine has been up and running Windows NT Server =
version
4 since its release, with some reboots and shutdowns without problems.
It has been running over a whole year without one single crash or "blue
screen of death".

I want this machine to work with NetBSD, please give me tips!!

Regards,

Harald Bjor=F8y
Bergen IT Consult AS
http://www.bitcon.no/


Output from dmesg: (with the wd1 disk disabled)


Copyright (c) 1996, 1997, 1998
    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 1.3.2 (GENERIC) #0: Sun May 24 19:45:48 EDT 1998
=20
perry@frankenstein.piermont.com:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: family 4 model 8 step 4
cpu0: AMD Am486DX4 W/T or Am5x86 W/T 150 (486-class)
real mem  =3D 33153024
avail mem =3D 29999104
using 430 buffers containing 1761280 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 2
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82424ZX Cache and DRAM controller (CDC) (rev. 0x02)
ncr0 at pci0 dev 1 function 0: ncr 53c810 fast10 scsi
ncr0: interrupting at irq 11
ncr0: minsync=3D25, maxsync=3D206, maxoffs=3D8, 16 dwords burst, normal =
dma
fifo
ncr0: single-ended, open drain IRQ driver
ncr0: restart (scsi reset).
scsibus0 at ncr0: 8 targets
sd0: sd0(ncr0:0:0): 10.0 MB/s (100 ns, offset 8)
1001MB, 3117 cyl, 8 head, 82 sec, 512 bytes/sect x 2050860 sectors
cd0 at scsibus0 targ 5 lun 0: <TOSHIBA, CD-ROM XM-4101TA, 0064> SCSI2
5/cdrom re
movable
probe(ncr0:5:1): 4.0 MB/s (250 ns, offset 8)
pcib0 at pci0 dev 2 function 0
pcib0: Intel 82378ZB System I/O (SIO) (rev. 0x00)
Weitek P9000 (VGA display, revision 0x03) at pci0 dev 6 function 0 not
configure
d
ep1 at pci0 dev 7 function 0: 3Com 3C900 Ethernet
ep1: MAC address 00:10:4b:9d:65:a9
ep1: 8KB word-wide FIFO, (undefined) Rx:Tx split, utp/aui/bnc default
utp, autos
elect
ep1: interrupting at irq 10
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
lpt0 at isa0 port 0x378-0x37b irq 7
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
atapibus0 at wdc0
wd0 at wdc0 drive 0: <Conner Peripherals 1275MB - CFS1275A>
wd0: using 16-sector 16-bit pio transfers, lba mode
wd0: 1219MB, 2496876 sec, 512 bytes/sec
audio0 at sb0
npx0 at isa0 port 0xf0-0xff: using exception 16
pc0 at isa0 port 0x60-0x6f irq 1: color
pc0: console
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
biomask 4840 netmask 4c40 ttymask 4cc2
boot device: wd0
root on wd0a dumps on wd0b =20