Skip to content

Instantly share code, notes, and snippets.

@brianstorti
Created July 26, 2011 18:25
Show Gist options
  • Save brianstorti/1107445 to your computer and use it in GitHub Desktop.
Save brianstorti/1107445 to your computer and use it in GitHub Desktop.
Add swap Ubuntu
sudo dd if=/dev/zero of=/swapfile bs=1M count=2048
sudo mkswap /swapfile
gksu gedit /etc/fstab
add to the end:
/swapfile none swap sw 0 0
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment