Create and mount swap file: =========================== 1. Create the file by using dd. the count number will be how many megabytes you want. sudo dd if=/dev/zero of=/swapfile bs=1M count=4096 status=progress 2. Convert blank file to swap file by: sudo mkswap /swapfile 3. Set swapfile for root only: sudo chmod 600 /swapfile 4. Actavate swap file (for current session): sudo swapon /swapfile 5. Edit the /etc/fstab file as root and add this line so swapfile will mount at boot: /swapfile none swap sw 0 0 save the file. Done! ------------------------------------------------------------------------------ Source: https://www.howtogeek.com/455981/how-to-create-a-swap-file-on-linux/ Date: Jan 29th 2023