*BSD News Article 20301


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!werple.apana.org.au!hal9000!apanix!apanix!not-for-mail
From: hart@apanix.apana.org.au (Leigh Hart)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Can I put the swap partition on a second HD?
Date: 2 Sep 1993 19:17:38 +1030
Organization: APANIX Public Access Unix, Australia, +61-8-373-5485 (3 lines)
Lines: 25
Message-ID: <264bva$r1c@olivaw.apanix.apana.org.au>
References: <25o1n4$gmr@genesis.ait.psu.edu>
NNTP-Posting-Host: olivaw.apanix.apana.org.au

D. Jay Newman <dn5@psu.edu> writes:

>I was thinking that it might make more sense to put the swap partition on
>a second hard-disk, for either SCSI or IDE.  Is this possible?

It certainly is possible, I have two 40MB IDE drives in my system, each
having 5mb swap partitions.  They are labled as such in /etc/fstab like:

/dev/wd0a		/		ufs rw 1 1
/dev/wd0b		none		swap sw 2
/dev/wd1a		/usr		ufs rw 2 2
/dev/wd1b		none		swap sw 2

and then in /etc/rc the line 'swapon -a' enables those partitions as swap.

I also have my swap partitions defined in my kernel config file, under the
heading:

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


Cheers

Leigh