-
-
Save rifki/027443cacb97659877a841964c91a83f to your computer and use it in GitHub Desktop.
force clean swap and add swap
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
$ sudo swapoff -a | |
$ sudo swapon -a | |
$ sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=2048 | |
$ sudo /sbin/mkswap /var/swap.1 | |
$ sudo /sbin/swapon /var/swap.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment