Sample Header Ad - 728x90

Cannot disable swap on Fedora

5 votes
2 answers
5683 views
I have a freshly installed fedora system, and I am struggling to turn off swap. I have checked /etc/fstab and there are no mentions of a swap partition there. I can turn swap off with swapoff -a but it will be turned on again after a few seconds, with this kernel message: Adding 8388604k swap on /dev/zram0. Priority:100 extents:1 across:8388604k SSFS I can see the swap device by running swapon --show Does anyone have a clue where I need to disable it, if not in fstab? All references I can find suggest that fstab is the place, and swapoff -a should be persistent until reboot Kernel version: 5.14.10-300.fc35.x86_64
Asked by Bok (153 rep)
Oct 21, 2021, 09:34 AM
Last activity: May 8, 2025, 07:47 AM