Taken from: https://unix.stackexchange.com/a/224348/260245 and: https://unix.stackexchange.com/a/224239/260245
-
If you have [GParted][1] open, close it. Its Swapoff feature does not appear to to be permanent.
-
Open terminal and become [
root
][2] ([su
][3]); if you have [sudo
][4] enabled, you may also do for examplesudo -i
; see [man sudo
][5] for all options):sudo -i
-
Turn off the particular [swap][6] partition and / or all of the [swap][6]s: