Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Dec 1995 10:25:34 +0100 (MET)
From:      "Werner Griessl" <croot@btp1da.phy.uni-bayreuth.de>
To:        tbrown@icon-stl.net
Cc:        questions@FreeBSD.ORG
Subject:   Re: Adding swap space
Message-ID:  <199512220925.KAA19751@btp1da.phy.uni-bayreuth.de>
In-Reply-To: <Pine.BSF.3.91.951221214706.537A-100000@edison.icon-stl.net> from "Timothy Brown" at Dec 21, 95 09:47:36 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512220925.KAA19751>