Last active
December 29, 2020 18:39
-
-
Save hewersonfreitas/11c37b92ddb45c807c15776dbc0a2558 to your computer and use it in GitHub Desktop.
add-aux-swap.sh
This file contains 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
$ echo 'enable aux swap composer' | |
$ fallocate -l 2G /swapfile-composer | |
$ chmod 600 /swapfile-composer | |
$ mkswap /swapfile-composer | |
$ swapon /swapfile-composer | |
$ echo '/swapfile-composer none swap sw 0 0' | sudo tee -a /etc/fstab | |
$ echo 'disable aux swap composer' | |
$ swapoff /swapfile-composer | |
$ rm /swapfile-composer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment