Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

swapon: /swapfile: swapon failed: Function not implemented When enabling swap

Tags:

linux

swap

debian

I tried to enable swap according to this website: https://linuxize.com/post/create-a-linux-swap-file/

When I ran sudo swapon /swapfile, it returned this error:

swapon: /swapfile: swapon failed: Function not implemented

like image 778
F.M Avatar asked Sep 07 '25 16:09

F.M


1 Answers

It looks like CONFIG_SWAP is not enabled in the kernel you are using. Please enable it and try.

like image 105
Ajay Jawade Avatar answered Sep 10 '25 14:09

Ajay Jawade