Last active
June 6, 2017 20:29
-
-
Save plasticut/ad855ffaaea88dc2f99c to your computer and use it in GitHub Desktop.
Create and attach swap partition
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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