From owner-freebsd-questions@FreeBSD.ORG Wed Feb 4 12:26:17 2004 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 1ED7716A4CE for ; Wed, 4 Feb 2004 12:26:17 -0800 (PST) Received: from rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C52C43D39 for ; Wed, 4 Feb 2004 12:26:15 -0800 (PST) (envelope-from itetcu@apropo.ro) Received: (qmail 3349 invoked from network); 4 Feb 2004 20:26:14 -0000 Received: from unknown (HELO it.buh.cameradicommercio.ro) (81.196.25.19) by mail.rdsnet.ro with SMTP; 4 Feb 2004 20:26:14 -0000 Date: Wed, 4 Feb 2004 22:27:45 +0200 From: Ion-Mihai Tetcu To: David Banning Message-Id: <20040204222745.37ee6f3c@it.buh.cameradicommercio.ro> In-Reply-To: <20040204195605.GA61146@skytrackercanada.com> References: <20040204195605.GA61146@skytrackercanada.com> X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: questions@freebsd.org Subject: [FAQ]Re: using a separate drive for swap 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: Wed, 04 Feb 2004 20:26:17 -0000 On Wed, 4 Feb 2004 14:56:05 -0500 David Banning wrote: > I have been running out of swap space on my box. > > I had an old 6.4 drive around which I thought would be > useful to add - just for swap - even if it's overkill. > > The installation wants a root mount point. Don't understand. > Is that > necessary? I even tried to put a limited / root of > 61 meg just to make it happy but it still gave errors. What about checking {Handbook, FAQ, man, Google} before posting ? www.frrebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#ADD-SWAP-SPACE > Is there an easy way to do this? Replace ad3s1 with your disk: bsdlabel -w -n ad3s1 | sed '/a:/s/16/0/; /a:/s/unused/swap/; /a:/s/a:/b:/;' > /tmp/mylabel bsdlabel -R ad3s1 /tmp/mylabel swapon /dev/ad3s1b echo '/dev/ad3s1b none swap sw 0 0' >> /etc/fstab -- IOnut Unregistered ;) FreeBSD user