From owner-freebsd-questions Thu Feb 25 13:47:52 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 4264514DCC for ; Thu, 25 Feb 1999 13:47:24 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.8.8) id QAA04093; Thu, 25 Feb 1999 16:56:16 -0500 (EST) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199902252156.QAA04093@cc942873-a.ewndsr1.nj.home.com> Subject: Re: swap space problem In-Reply-To: <36D5C012.A020CF21@net.com> from Nesi Unanaowo at "Feb 25, 99 01:26:42 pm" To: nesi_unanaowo@net.com (Nesi Unanaowo) Date: Thu, 25 Feb 1999 16:56:16 -0500 (EST) Cc: cjclark@home.com, freebsd-questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Nesi Unanaowo wrote, > "Crist J. Clark" wrote: > > Since you were using 'mkfile' I assume you were trying to do (3). You > > can use 'dd' to write a file for the job. > 3) my question is: how do i add swap file in FreeBSD?. in solaris i would > have done this: > mkfile -v 300m /export/home/some_swap_file > then i would enable swap thus: > swap -a /export/home/some_swap_file > how do i accomplish the same in FreeBSD? I just told you. Use 'dd' instead of 'mkfile.' Then you need to make it mountable as a vnode. See, man dd man vnconfig man swapon For starters, create a 50 MB file on say /var, # dd if=/dev/zero count=50 bs=1m of=/var/swap_file HTH. RTFM. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message