*BSD News Article 8339


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.hawaii.edu!ames!haven.umd.edu!uunet!mnemosyne.cs.du.edu!nyx!jefouger
From: jefouger@nyx.cs.du.edu (Jim  Fougeron)
Subject: Need help seting up swap devices
Message-ID: <1992Nov30.093644.17291@mnemosyne.cs.du.edu>
Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
Organization: Nyx, Public Access Unix @ U. of Denver Math/CS dept.
Date: Mon, 30 Nov 92 09:36:44 GMT
Lines: 43

	I'm having a terrible time compiling the sources for 386BSD
on my system. What happens is this, several (from 2 to 50) sources
will compile fine, and then the machine goes off into la la land!
I have a PC Pro 386-25 with a 120M IDE and a 210M IDE. The first drive
as the third partition for 386BSD (about 50 Meg) and the second drive
is all 386BSD. I do have the kernel recompiled for two disks, and LPT
driver support. 
	What I beleive is the problem is that the swap partitions are 
not set up right. The system seems to crash when the memory usage 
becomes large (core dump, and/or complete system lock-up). 
	How do you set up the swap partions properly?
	
Here is what I've done so far:
   -	recompiled kernel with 2-drive support, and swap for wd0 and wd1
   -	from fixit disk
	-	disklabel -r wd0 > wd0
	-	edit the partition b  (was "unused" 5 meg) to type swap
	-	disklabel -R -r wd0 wd0 /usr/mdec/wdboot /usr/mdec/bootwd
	-	disklabel -r wd1 > wd1
	-	edit the partition b (was "unused" 5 meg) to type swap
	-	disklabel -R -r wd1 wd1 /usr/mdec/wdboot /usr/mdec/bootwd
	-	Both partitions now show a "swap" in partition B
   -	in /etc on root hard drive, edited fstab with the lines:
	-	/dev/wd0b none swap sw 0 0
	-	/dev/wd1b none swap sw 0 0
 
	At boot time, I now get a message about swapon recognising wd1b
as a swap device. I still have the problems of before.
	I would be grateful for any help I can get. I am very tired of 
having my root file system stomped on because of a machine lockup. BTW
I am running a stand alone system, so shutting it down off of a remote
term can't be done (for the time being). 
	Please email to jimfn@ids.net because my access to usenet is 
uncertain for the next few weeks.
Thanx,  jimfn@ids.net
=======================================================================
Handy Guide to Modern Science:
1.  If it's green or it wiggles, it's biology.
2.  If it stinks, it's chemistry.
3.  If it doesn't work, it's physics.
=======================================================================