swapon command error

lin dimitri <[email protected]> Thu, 9 Sep 2021 19:46:18 +0530
Newsgroups gmane.linux.debian.user.laptop
Message-ID <CAL_Gx352vznH8QrHKbN3piF9yzFOaEsFTATDRbWtU_KYNqrXTQ@mail.gmail.com>
--000000000000206a0105cb90a5ec
Content-Type: text/plain; charset="UTF-8"

Hi,

I am trying to increase my swap memory, below is the commands I used:-
$ sudo swapon --show
$ sudo swapoff -a
$ sudo fallocate -l 4G /swapfile
$ sudo chmod 600 /swapfile
$ sudo mkswap /swapfile
$ sudo swapon /swapfile
swapon failed: Function not implemented

i got above error.

I have CONFIG_SWAP=y in /proc/config.gz.

i don't know how this can be solved

plz help.


Regards,

lin

--000000000000206a0105cb90a5ec
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi,</div><div><br></div><div>I am trying to increase =
my swap memory, below is the commands I used:-</div><div>$ sudo swapon --sh=
ow</div><div>$ sudo swapoff -a<br></div><div>$ sudo fallocate -l 4G /swapfi=
le<br>$ sudo chmod 600 /swapfile<br>$ sudo mkswap /swapfile<br>$ sudo swapo=
n /swapfile</div><div>swapon failed: Function not implemented</div><div><di=
v class=3D"gmail-post-message" dir=3D"auto"><div><p>i got above error.</p><=
p> I have CONFIG_SWAP=3Dy in  /proc/config.gz.</p><p>i don&#39;t know how t=
his can be solved</p><p>plz help.</p><p><br></p><p>Regards,</p><p>lin<br></=
p></div></div></div></div>

--000000000000206a0105cb90a5ec--