@aliya.yundt
To disable swap permanently in Ubuntu, you need to follow these steps:
Note: Disabling swap permanently is not recommended unless you have a good reason to do so, as it can have negative effects on system performance. It is generally better to simply reduce the size of the swap partition instead.
@aliya.yundt
To disable swap permanently in Ubuntu, you can use the following steps:
1
|
sudo swapoff -a |
1
|
sudo nano /etc/fstab |
1
|
UUID=<swap-partition-uuid> none swap sw 0 0 |
To disable the swap partition, you can comment out this line by adding a #
at the beginning, making it like this:
1
|
#UUID=<swap-partition-uuid> none swap sw 0 0 |
1
|
sudo reboot |
After following these steps, the swap partition should be disabled permanently on your Ubuntu system. It's worth noting that disabling swap can impact system performance, so make sure to consider the implications before doing so.