Compiling Swap space

Steve O'Hara-Smith steve at sohara.org
Tue Feb 27 21:25:34 UTC 2018


On 27 Feb 2018 14:16:08 -0500
"John R. Levine" <johnl at iecc.com> wrote:

> > You don't need mdconfig, just make a large file and use swapon like
> > this:
> >
> ># dd if=/dev/zero of=swapfile bs=1m count=1024
> ># swapon swapfile
> 
> Nope.  Try it.  You need a block device.
> 
> # dd if=/dev/zero of=/var/swap bs=1m count=100
> 100+0 records in
> 100+0 records out
> # swapon /var/swap
> swapon: /var/swap: Block device required

	See other post, it works if the file is on an NFS mount, it used to
work anywhere.

-- 
Steve O'Hara-Smith <steve at sohara.org>


More information about the freebsd-questions mailing list