You can first try to manually activate your swap partition (here assuming it is /dev/sda1: adapt the command to your case; 'lsblk' helps to know what is your swap partition):
$ sudo swapon /dev/sda1

If it works ('sudo swapon -s' shows it), you can run this command (again, modify the partition to fit your case):
$ echo '/dev/sda1 swap swap defaults 0 0' | sudo tee -a /etc/fstab

The line appended to /etc/fstab, "/dev/sda1 swap swap defaults 0 0", asks for the activation of the swap at init.

Reply via email to