I have created swapfile at /swapfile and add following line to /etc/fstab (according to SwapFaq):
/swapfile none swap sw 0 0
When I try to activate it with sudo swapon --all
, everything is fine, but it does not activated after reboot, sudo swapon --show
shows nothing. Again, activating it with sudo swapon --all
works. What am I doing wrong? How to activate swap file on system start?
fstab
whether indeed you correctly entered that line in the correct file. – vanadium Apr 11 '21 at 10:35