Re: swapon command error

stefano gozzi <[email protected]> Thu, 9 Sep 2021 19:07:02 +0200
Newsgroups gmane.linux.debian.user.laptop
Message-ID <CA+Mr8+-n_0eVCEkbLyS5zDAmp=aokyaCDnWi9rbqtdaKMjZujw@mail.gmail.com>
--000000000000b4026105cb930709
Content-Type: text/plain; charset="UTF-8"

maybe you are using a custom kernel without swapfile flag?
try to use the standard debian kernel
all the best
ste

On Thu, Sep 9, 2021 at 4:33 PM lin dimitri <[email protected]> wrote:

> 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
>

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

<div dir=3D"ltr"><div>maybe you are using a custom kernel without swapfile =
flag?<br></div><div>try to use the standard debian kernel</div><div>all the=
 best</div><div>ste<br></div></div><br><div class=3D"gmail_quote"><div dir=
=3D"ltr" class=3D"gmail_attr">On Thu, Sep 9, 2021 at 4:33 PM lin dimitri &l=
t;<a href=3D"mailto:[email protected]">[email protected]</a>&gt; wrot=
e:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0=
.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"l=
tr"><div>Hi,</div><div><br></div><div>I am trying to increase my swap memor=
y, below is the commands I used:-</div><div>$ sudo swapon --show</div><div>=
$ sudo swapoff -a<br></div><div>$ sudo fallocate -l 4G /swapfile<br>$ sudo =
chmod 600 /swapfile<br>$ sudo mkswap /swapfile<br>$ sudo swapon /swapfile</=
div><div>swapon failed: Function not implemented</div><div><div 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 this can be solved</p><p>plz help.</p><p><b=
r></p><p>Regards,</p><p>lin<br></p></div></div></div></div>
</blockquote></div>

--000000000000b4026105cb930709--