[Solved] Swap size increase reset after reboot on Raspberry

My YunoHost server

Hardware: Raspberry Pi 3b+
YunoHost version: 11.2.10.1

Using the classical approach to increase the /var/swap file to 1G. After reboot, the size gets reset to 100M.

Raspbian is using dphys-swapfile to manage swap files, you should not use /etc/fstab but instead:

CONF_SWAPSIZE=100

in

/etc/dphys-swapfile

see Increasing Swap on a Raspberry Pi - Pi My Life Up

2 Likes

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