Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fabiotatsuo/9791f1df0b3ab83b5ae729de32c57df3 to your computer and use it in GitHub Desktop.
Save fabiotatsuo/9791f1df0b3ab83b5ae729de32c57df3 to your computer and use it in GitHub Desktop.
Swap file / FreeBSD
Swap file
dd if=/dev/zero of=/usr/swap0 bs=1m count=4096
chmod 0600 /usr/swap0
echo "md99 none swap sw,file=/usr/swap0,late 0 0" >> /etc/fstab
swapon -aL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment