Add swapfile
Adjust the desired size in the dd call. Sometimes it’s suggested that fallocate is used to allocate space for the swapfile, however only by writing the entire file with dd the space is really allocated. Otherwise, you might end up with a swapon: /var/tmp/swapfile: swapon failed: Invalid argument error message.
| |
Also add the following line to /etc/fstab
| |