From owner-freebsd-questions@FreeBSD.ORG Tue Jun 10 05:17:48 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAAD137B401 for ; Tue, 10 Jun 2003 05:17:48 -0700 (PDT) Received: from smmcroute.smmc.qld.edu.au (stmarg3.lnk.telstra.net [165.228.7.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89EC543FDF for ; Tue, 10 Jun 2003 05:17:44 -0700 (PDT) (envelope-from keith@smmc.qld.edu.au) Received: (qmail 67837 invoked by uid 89); 10 Jun 2003 12:17:40 -0000 Received: from unknown (HELO smmc.qld.edu.au) (127.0.0.1) by localhost with SMTP; 10 Jun 2003 12:17:40 -0000 Received: from 203.220.203.210 (SquirrelMail authenticated user keith) by localhost.smmc.qld.edu.au with HTTP; Tue, 10 Jun 2003 22:17:40 +1000 (EST) Message-ID: <2457.203.220.203.210.1055247460.squirrel@localhost.smmc.qld.edu.au> Date: Tue, 10 Jun 2003 22:17:40 +1000 (EST) From: To: X-Priority: 3 Importance: Normal X-Mailer: SquirrelMail (version 1.2.11) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: How to add more swap space? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2003 12:17:48 -0000 Hi all... I found this () I have FBSD 4.7 system...is this article still ok or even the best way to go? Any ideas welcome Keith ==8< snip snip ============================ Adding more SWAP space I recently mined this info from the STABLE mailing list and thought it would make a great mini-tutorial. I have seen this question asked before and always wanted to know how to do it myself. So here's the procedure for adding 512 MB of swap space: # cd /usr # dd if=/dev/zero of=/usr/swap0 bs=32m count=16 (FYI, 32x16=512) # chmod 640 swap0 # chgrp operator swap0 # echo "/dev/vn0c /usr/swap0 swap" > /etc/vn0c # vnconfig -ae Add: if [ "X${vnconfig_enable}" = X"YES" ]; then echo -n ' vnconfig'; vnconfig -ae fi to /etc/rc.local (if it doesn't exist, create it!) ++++++++++++++++++++++++++++++++++++++++++++++++++++++