From owner-freebsd-questions Fri Dec 22 01:32:09 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id BAA15428 for questions-outgoing; Fri, 22 Dec 1995 01:32:09 -0800 (PST) Received: from btp1da.phy.uni-bayreuth.de (btp1da.phy.uni-bayreuth.de [132.180.20.32]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id BAA15218 for ; Fri, 22 Dec 1995 01:28:26 -0800 (PST) Received: (from root@localhost) by btp1da.phy.uni-bayreuth.de (8.6.12/8.6.12) id KAA19751; Fri, 22 Dec 1995 10:25:34 +0100 Message-Id: <199512220925.KAA19751@btp1da.phy.uni-bayreuth.de> Subject: Re: Adding swap space To: tbrown@icon-stl.net Date: Fri, 22 Dec 1995 10:25:34 +0100 (MET) From: "Werner Griessl" Cc: questions@FreeBSD.ORG In-Reply-To: from "Timothy Brown" at Dec 21, 95 09:47:36 pm X-Mailer: ELM [version 2.4 PL25 ME8b] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG Precedence: bulk > > Can't find out how to add more swap space. It doesn't seem to be in the > handbook or the FAQ; how do I do it? I don't have any more room for any > more partitions but I have a big enough /usr.... > Here is an example for 64Mb vn-swap (/usr/swap0) 1) create a vn-device cd /dev; sh ./MAKEDEV vn0 2) create a swapfile ( /usr/swap0 ) dd if=/dev/zero of=/usr/swap0 bs=1024k count=64 3) put into /etc/rc.local the line vnconfig -ce /dev/vn0c /usr/swap0 swap 4) reboot the machine You must also have a kernel with the line pseudo-device vn #Vnode driver (turns a file into a device) in your config-file. Hope this helps Werner