Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Quick Add 5GB Swap File, and add to fstab
dd if=/dev/zero of=/mnt/swap bs=1024 count=5242880;
mkswap /mnt/swap;
chown root:root /mnt/swap ;
chmod 0600 /mnt/swap ;
swapon /mnt/swap;
echo "/mnt/swap swap swap defaults 0 0" >> /etc/fstab;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment