*BSD News Article 32254


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!usenet.ins.cwru.edu!news.csuohio.edu!stever
From: stever@csuohio.edu (Steve Ratliff)
Subject: Re: swap problems
Message-ID: <1994Jun29.040117.12067@news.csuohio.edu>
Sender: news@news.csuohio.edu (USENET News System)
Organization: Cleveland State University
X-Newsreader: TIN [version 1.2 PL2]
References: <2uqhvu$4m7@agate.berkeley.edu>
Date: Wed, 29 Jun 1994 04:01:17 GMT
Lines: 36

Mark D. Spiller (mds@ic.EECS.Berkeley.EDU) wrote:

: Hi -

: I am trying to add swap space to my system...
: I thought that I could take an existing partition, split
: it into two smaller partitions, and then use one of them
: (sd0f) as an additional swap partition.  

: However, things have not gone as smoothly as I would have
: liked...  I modified /etc/fstab to be swap 
: (/dev/sd0f       none    swap    sw 0 0 )
: and changed the disklabel on drive sd0 to also be swap,
: similarly to the b partition.

: However, although I cannot find in the man pages/sysadmin
: book anything additional that I need to do, the swapon -a
: returns an error,
: swapon: /dev/sd0f: device not configured

	There are two things that you need to do.
1.  Check that your kernel config file allows for swapping on sdo.
    The generic kernels already do.  From GENERICAH
config          "386bsd"        root on wd0 swap on wd0 and wd1 and sd0 and sd1
    dumps on wd0
2.  I believe the hardwired default is to swap only on the "b" partition.
    So you will have to edit your disklabel so that the b partition
    points to where you have free space.  You should probably do a level
    0 Dump before messing with your partitions because you could mangle
    your filesystems if you mess up.
--
--------------------------------------------------------------------------
stever@babbage.cba.csuohio.edu		"What's better than a free OS?"
					" A free OS with source."       
					FreeBSD at freebsd.cdrom.com
--------------------------------------------------------------------------