How to disable swap partition
To see your swap usage run the following:
free -m
To disable swap without reboot and just temporary run the following:
sudo swapoff -a
This will wipe out used swap space and disable it
To get this enabled again run next:
sudo swapon -a
To disable swap permanently you need to edit /etc/fstab as root and comment out a line related to swap
For example:
cat /etc/fstab |grep swap
# swap was on /dev/nvme0n1p6 during installation
#UUID=d10c1d70-bb88-43fc-bbe2-e17592b660ba none swap sw 0 0
Then reboot your machine to apply the change or try to run next:
mount -a
To reboot run:
reboot
Enjoy!… Read the rest