1sudo dd if=/dev/zero of=/mnt/file.swap bs=1M count=512 2sudo mkswap /mnt/file.swap 3sudo chmod 0600 /mnt/file.swap 4sudo swapon /mnt/file.swap 5echo "/mnt/file.swap none swap sw 0 0" >> /etc/fstab See details in https://www.garron.me/en/linux/increase-swap-memory-linux.html
Read More