Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jun 2003 22:17:40 +1000 (EST)
From:      <keith@smmc.qld.edu.au>
To:        <freebsd-questions@freebsd.org>
Subject:   How to add more swap space?
Message-ID:  <2457.203.220.203.210.1055247460.squirrel@localhost.smmc.qld.edu.au>

next in thread | raw e-mail | index | archive | help
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!)
++++++++++++++++++++++++++++++++++++++++++++++++++++++




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2457.203.220.203.210.1055247460.squirrel>