Date: Thu, 25 Feb 1999 16:56:16 -0500 (EST) From: "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com> To: nesi_unanaowo@net.com (Nesi Unanaowo) Cc: cjclark@home.com, freebsd-questions@FreeBSD.ORG Subject: Re: swap space problem Message-ID: <199902252156.QAA04093@cc942873-a.ewndsr1.nj.home.com> In-Reply-To: <36D5C012.A020CF21@net.com> from Nesi Unanaowo at "Feb 25, 99 01:26:42 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902252156.QAA04093>