Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Feb 2018 21:25:23 +0000
From:      Steve O'Hara-Smith <steve@sohara.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Compiling Swap space
Message-ID:  <20180227212523.39096282711b549631aa8924@sohara.org>
In-Reply-To: <alpine.OSX.2.21.1802271414110.45674@ary.qy>
References:  <alpine.OSX.2.21.1802271414110.45674@ary.qy>

next in thread | previous in thread | raw e-mail | index | archive | help
On 27 Feb 2018 14:16:08 -0500
"John R. Levine" <johnl@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@sohara.org>



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