Skip to content

Instantly share code, notes, and snippets.

@plasticut
Last active June 6, 2017 20:29
Show Gist options
  • Save plasticut/ad855ffaaea88dc2f99c to your computer and use it in GitHub Desktop.
Save plasticut/ad855ffaaea88dc2f99c to your computer and use it in GitHub Desktop.
Create and attach swap partition
dd if=/dev/zero of=/extraswap bs=1M count=512
mkswap /extraswap
echo '/extraswap none swap sw 0 0' >> /etc/fstab
chmod 600 /extraswap
swapon -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment