Date: Tue, 27 Feb 2018 13:16:01 +0000 From: RW <rwmaillists@googlemail.com> To: freebsd-questions@freebsd.org Subject: Re: Compiling Swap space Message-ID: <20180227131601.10253820@gumby.homeunix.com> In-Reply-To: <20180227080919.7a5578283960bb325b9b3d86@sohara.org> References: <20180227040015.7d2fb579.freebsd@edvax.de> <20180227052346.B49171D9E572@ary.qy> <20180227080919.7a5578283960bb325b9b3d86@sohara.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 27 Feb 2018 08:09:19 +0000 Steve O'Hara-Smith wrote: > On 27 Feb 2018 00:23:46 -0500 > "John Levine" <johnl@iecc.com> wrote: > > You can also use mdconfig to make an md device backed by a file and > > swap on that. That's slower than a swap partition since it has to > > 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 I tried that and got: # swapon swapfile swapon: swapfile: Block device required The word "Block" is presumably out of date, but it does seem to be saying a device is needed. This was on 11.1.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180227131601.10253820>