[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-questions
Subject:    Re: Compiling Swap space
From:       Steve O'Hara-Smith <steve () sohara ! org>
Date:       2018-02-27 21:25:23
Message-ID: 20180227212523.39096282711b549631aa8924 () sohara ! org
[Download RAW message or body]

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>
_______________________________________________
freebsd-questions@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic