Editing
FreeBSD Reference
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
= Adding swap = NOTE: switch everything to md and mdconfig for +4.x 1. Create a vn-device: <pre>cd /dev sh MAKEDEV vn99</pre> 2. Create a 2G swapfile dd if=/dev/zero of=/mnt/data1/swap bs=1024k count=2048 3. Set proper permissions: chmod 0600 /mnt/data1/swap 4. Enable the swap file in /etc/rc.conf: swapfile="/mnt/data1/swap" 5. enable the swap file. vnconfig -e /dev/vn99b /mnt/data1/swap swap 6. if thereโs already an entry in rc.conf for swap, put these contents in /usr/local/etc/rc.d/swap.sh vnconfig -c /dev/vn99 /mnt/data1/swap swapon /dev/vn99
Summary:
Please note that all contributions to JCWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
JCWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information