Subject: Re: adding swap as files?
To: Elijah L. Wright <ewright@multipro.com>
From: Scott Reynolds <scottr@Plexus.COM>
List: netbsd-help
Date: 12/09/1996 16:08:51
On Mon, 9 Dec 1996, Elijah L. Wright wrote:

> I've got a large file I want to add as swap.  When I tried before to just
> add the raw filesystem, I was getting an error regarding:
> 
> "/dev/sd4b: Device not configured."

You need to compile a kernel with something like

	config netbsd root on sd0 swap on sd0 and sd4

to enable swapping on a disk other than the one with the root filesystem
(or the one you entered if you used the `-a' option to boot).

> Now;   Netbsd doesn't appear to have support for swapping
> directly to files rather than to disk partitions.

Not so; add "swap on ... and vnd0a" to use swap on vnd0a, use vnconfig(8)
to configure vnd0a using the file, and then add vnd0a with swapon(8).

--scott