Skip to content

Instantly share code, notes, and snippets.

@renatocassino
Created October 11, 2016 17:14
Show Gist options
  • Save renatocassino/4d93c591b61109661d2fce00ccb6fc31 to your computer and use it in GitHub Desktop.
Save renatocassino/4d93c591b61109661d2fce00ccb6fc31 to your computer and use it in GitHub Desktop.
sudo dd if=/dev/zero of=/swapspace bs=1M count=4000
sudo mkswap /swapspace
sudo swapon /swapspace
# To check
cat /proc/swaps
# Next, add the following line to /etc/fstab to activate the new swap at boot:
/swapspace none swap defaults 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment