Ubuntu increase SWAP file

From https://askubuntu.com/a/1066362

sudo swapoff /swapfile
sudo fallocate -l 8G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
Verify: sudo swapon --show
Make permanent: echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab

Leave a Reply

Your email address will not be published. Required fields are marked *