Subject: Problem with 2 IDE drives (redux)
To: None <netbsd-help@NetBSD.ORG>
From: Chad Mynhier <mynhier@cs.utk.edu>
List: netbsd-help
Date: 02/23/1996 11:05:04
	I posted this problem a couple of weeks ago.  Since then I've
been in touch with mycroft off-line, but I'll throw it back out
since I have some more info.

	Short version: I get a kernel panic when booting when using 
2 IDE drives.  One drive is a newly installed 1.1, the other drive
is left over from 1.0 and was run through 'fsck -c 2', as the install
document suggested.  I've since redone the second drive (disklabel ; 
newfs) under 1.1, but the same problem occurs.

	Long version:  the message I get when the kernel panics is:

"fatal integer divide fault in supervisor mode"

	I recompiled with DDB and did a backtrace (this trace is from
after I disklabelled/newfs'd the disk):

_readdisklabel(b,f818fc38,f8666870,f8666984) at _readdisklabel+0xb6
_wdgetdisklabel(f8666800) at _wdgetdisklabel+0x138
_wdopen(30e,1,2000,f866e800,0) at _wdopen+0x92
_spec_open(f93bfe18,0,3e040,f866f600,6) at _spec_open+0x125
_vn_open(f93bfee8,1,40,f7bfd728,f866e600) at _vn_open+0x3c7
_sys_open(f866e600,f93bff88,f93bff80,0,1) at _sys_open+0x91
_syscall() at _syscall+0x139
--- syscall (number 5) ---
0x1b453:

db>

	(The trace from the 1.0 version of the disk was similar.)

	Another data point that may or may not be useful is that
when I tried running dump on the 1.0 disk, it gave the error:

DUMP: bad sblock magic number

	I changed that error message to print the magic number it
read, and it printed 0x0, which is what I had expected.  I haven't 
tried a dump yet from the 1.1 version of the disk.

	If anyone out there is running 1.1 with two IDE drives and 
having no problems, I'd like to hear it.  Of course, I'd also like
to know if anyone has any solutions to this problem.

Chad Mynhier <mynhier@cs.utk.edu>
Sorcerer's Apprentice, CS Department        
University of Tennessee, Knoxville                   
WWW: http://www.cs.utk.edu/~mynhier/