Created
February 23, 2016 20:46
-
-
Save amontalban/75e176ea30da38b46703 to your computer and use it in GitHub Desktop.
Swap file in FreeBSD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dd if=/dev/zero of=/swapfile bs=1m count=2048 | |
chmod 0600 /swapfile | |
printf "md99\tnone\tswap\tsw,file=/swapfile\t0\t0" >> /etc/fstab | |
swapon -aL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment