disable swap only for a current session
sudo swapoff -a
Or
sudo -s crontab -e
And add
@reboot sudo swapoff -a
Or ( best solution )
Open fstab file, type sudo nano /etc/fstab
in terminal.
File’s contents would look like this:
proc /proc proc nodev,noexec,nosuid 0 0 /host/ubuntu/disks/root.disk / ext4 loop,errors=remount-ro 0 1 /host/ubuntu/disks/swap.disk none swap loop,sw 0 0 #/dev/sda10 /media/ASD vfat defaults 0 0 #/dev/sda1 /media/98 vfat defaults 0 0
Just add hash (#) to the beginning of the swap partition line, so the line looks as:
#/host/ubuntu/disks/swap.disk none swap loop,sw 0 0
Reboot your PC
References
https://askubuntu.com/questions/214805/how-do-i-disable-swap