Last updated 8 months ago
Here's how we can disable the swap memory on SD Card in Raspberry Pi -
1. Turn off the swap file:
sudo dphys-swapfile swapoff
2. Uninstall the swap file:
sudo dphys-swapfile uninstall
3. Remove the swap file service:
sudo update-rc.d dphys-swapfile remove
4. Remove the swap file manager [Optional]:
sudo apt purge dphys-swapfile -y
5. Verifiy the swap is disabled:
free -mh
Source: