Find the line in /etc/fstab referring to swap, and comment it. Mine is like this:
UUID=6880a28d-a9dc-4bfb-ba47-0876b50e96b3 / ext4 errors=remount-ro 0 1
UUID=7350e6f2-e3a7-4d80-9a95-8741c7db118f /home ext4 defaults 0 2
UUID=E2E26AD1E26AAA0D /media/windows ntfs defaults,umask=007,gid=46 0 0
# Swap a usb extern (3.7 GB):
#/dev/sdb1 none swap sw 0 0
You can edit this file with gedit. Backup it first, just in case:
sudo cp /etc/fstab /etc/fstab_backup
gksu gedit /etc/fstab
Just add # to the beginning of the line where swap is, and reboot the computer.
OR
Try Command-line way of commenting out swap entry in /etc/fstab
file,
sudo sed -i.bak '/ swap / s/^\(.*\)$/#\1/g' /etc/fstab