*BSD News Article 19206


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!saimiri.primate.wisc.edu!doug.cae.wisc.edu!zazen!psl.wisc.edu!128.104.200.15!ram
From: ram@xor.epi.wisc.edu (Ram Bhamidipaty)
Subject: Re: problem with using second ide drive for swap
In-Reply-To: bs@Germany.EU.net's message of 4 Aug 1993 12:15:39 +0200
Message-ID: <RAM.93Aug5090640@xor.epi.wisc.edu>
Sender: news@pslu1.psl.wisc.edu (USENET News System)
Organization: Physical Sciences Lab, UW-Madison
References: <RAM.93Aug2215318@xor.epi.wisc.edu> <RAM.93Aug3071303@xor.epi.wisc.edu>
	<23o28b$ple@Germany.EU.net>
Date: 05 Aug 1993 14:06:40 GMT
Lines: 67

>>>>> "Ram" == Ram Bhamidipaty <ram@epidat.epi.wisc.edu> writes:
>>>>> "Bernard" == Bernard Steiner <bs@Germany.EU.net> writes:

Ram> I'm using NetBSD-0.8 and I'm having some trouble getting
Ram> swap to work on my second ide drive.

Ram> I built a new kernel with the following options:

Ram> config          "386bsd"        root on wd0 swap on wd0 and wd1

Ram> controller      isa0
Ram> controller      wdc0    at isa? port "IO_WD1" bio irq 14 vector wdintr
Ram> disk            wd0     at wdc0 drive 0
Ram> disk            wd1     at wdc0 drive 1


Ram> But when the kernel boots I notice some strange
Ram> differances from the stock kernel that comes with
Ram> NetBSD. I'm sure that I'm doing something wrong but I
Ram> don't have a clue.


Bernard> Yupp, I got that as well

Bernard> Uh - this was using the boot blocks from pk0.2.3,
Bernard> system is running two ESDI drives and swapping on
Bernard> both.

Bernard> The problems went away when I used the old boot
Bernard> blocks again...


Ok, so far this is the only clue I have.

I have some questions:

1. Is it possible for something to be wrong with the boot blocks on
   the second drive, even though I can use the drive to store data?  I
   have been using the second drive for a while and have not had
   any trouble.

2. What do the boot blocks do?

3. Where should I look to verify that the boot blocks are working correctly?
   Is it enough that I was able to label the drive and newfs the partitions?

One more point. I used the same boot blocks for both ide drives (the
ones on the install floppies), does this rule out the chance that something
is wrong with the boot blocks?  I also suspect that my second drive may
do geometry translation (its a connor cp3544) and I have not turned it
off (just faxed connor to ask how) could this have something to do with
my problems?

BTW, someone asked if I had put the wd1b in /etc/fstab. Yes I have, and
swapon is also run.

The other option I have is to start looking into why dmesg or swapinfo
fails. It will probably involve looking into why something in the
kernel is failing...I've never used kdb, can someone give me some pointers
on how to debug the kernel.

-Ram
--
--------------
Ram Bhamidipaty                     use this ->ram@epidat.epi.wisc.edu
Department of Preventive Medicine   or this->ram%epidat.decnet@macc.wisc.edu
University of Wisconsin, Madison    Ignore the header. It might be wrong.