From owner-freebsd-questions@freebsd.org Tue Feb 27 21:25:34 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 27216F2A858 for ; Tue, 27 Feb 2018 21:25:34 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) Received: from bca5.email-od.com (bca5.email-od.com [207.246.239.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A94DF71211 for ; Tue, 27 Feb 2018 21:25:33 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1519766734; x=1522358734; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:to:from:date:x-thread-info; bh=s15QlwrMV3XFgR8TUvdDid7umvS7xtHYyu0imtCXUFU=; b=DbAASYGROiR5jtZgFJlEHHqYrPlsgDuX5DStg26m0RNEW+nxSP+uGYSdH1wYqIcBZRDN468sYgdAkVLMyayPQNVYLAPjy9Q0qvQkVr3nwm0Wq5zKc2cVDo38m+9gXJh44IQThPrQ1nKfbQtxTDa/5B227/WKVdasw7NYkn/X9Wc= X-Thread-Info: NDI1MC4xMi45MjAwMDAwMDQxYmM2Ny5mcmVlYnNkLXF1ZXN0aW9ucz1mcmVlYnNkLm9yZw== Received: from r4.us-east.aws.in.socketlabs.com (r4.us-east.aws.in.socketlabs.com [52.5.202.82]) by bca2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Tue, 27 Feb 2018 16:25:27 -0500 Received: from smtp.lan.sohara.org (EMTPY [89.127.62.20]) by r4.us-east.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Tue, 27 Feb 2018 16:25:26 -0500 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.90 (FreeBSD)) (envelope-from ) id 1eqmkV-000Hhx-CA for freebsd-questions@freebsd.org; Tue, 27 Feb 2018 21:25:23 +0000 Date: Tue, 27 Feb 2018 21:25:23 +0000 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Subject: Re: Compiling Swap space Message-Id: <20180227212523.39096282711b549631aa8924@sohara.org> In-Reply-To: References: X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; amd64-portbld-freebsd11.0) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Feb 2018 21:25:34 -0000 On 27 Feb 2018 14:16:08 -0500 "John R. Levine" 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