Problem with swap "Permission denied"

Hello
YunoHost 11.0.9.15
60 gb sd card
Raspberry Pi 3
SSH yes

I wanted to increase the swap file size with sudo nano /etc/dphys-swapfile because it was too just 100, I increased it 512.
sudo nano /etc/dphys-swapfile
CONF_SWAPFILE=100 =>> CONF_SWAPFILE=512

I can no longer restart dphys-swapfile
root@xxx:~# dphys-swapfile setup
/usr/sbin/dphys-swapfile: 1: /etc/dphys-swapfile: /etc/dphys-swapfile: Permission denied
root@xxx:~# sudo dphys-swapfile swapon
/usr/sbin/dphys-swapfile: 1: /etc/dphys-swapfile: /etc/dphys-swapfile: Permission denied

I started the system it’s the same and in addition I have swap disappeared
root@xxx:~# sudo free -h
total used free shared buff/cache available
Mem: 909Mi 582Mi 51Mi 19Mi 275Mi 247Mi

I have very little knowledge of linux and I don’t know what to do.
Do you have a solution to find my swap or to remove “Permission denied”
Thanks.
PS: My English is bad I used a translator, forgive me

Bonjour
YunoHost 11.0.9.15
sur carte sd 60 go
Raspberry Pi 3
SSH oui

J’ai voulu augmenter la taille fichier d’échange swap avec sudo nano /etc/dphys-swapfile car il était trop juste 100, je l’ai augmenté 512 .
sudo nano /etc/dphys-swapfile
CONF_SWAPFILE=100 =>> CONF_SWAPFILE=512

je n’arrive plus a redémarrer dphys-swapfile
root@xxx:~# dphys-swapfile setup
/usr/sbin/dphys-swapfile: 1: /etc/dphys-swapfile: /etc/dphys-swapfile: Permission denied
root@xxx:~# sudo dphys-swapfile swapon
/usr/sbin/dphys-swapfile: 1: /etc/dphys-swapfile: /etc/dphys-swapfile: Permission denied

j’ai démarré le système c’est pareil et en plus je n’ai plus de swap
root@xxx:~# sudo free -h
total used free shared buff/cache available
Mem: 909Mi 582Mi 51Mi 19Mi 275Mi 247Mi

J’ai très peu de connaissance en linux et je ne sais pas quoi faire
Avez-vous une solution pour retrouver mon swap ou pour enlever “Permission denied”
Merci.

[English]

Hello,
I managed to re-enable swap space using this tutorial:

Very simple for a beginner and it works
I haven’t restarted yunohost yet to have!

I may have made some typing errors on this forum forgive me, this is my first time using it

PS: My English is bad I used a translator, forgive me

[french]

Bonjour,
J’ai réussi à réactiver espace swap en utilisant ce tuto :

Très simple pour un débutant et ç’a fonctionne
Je n’ai pas redémarré pour l’instant yunohost à avoir !

J’ai peut-être fait des erreurs d’écriture sur ce forum, pardonnez-moi, c’est la première fois que je l’utilise

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.