Disable Swap Memory on SD Card
Here's how we can disable the swap memory on SD Card in Raspberry Pi -
Disabling the swap memory on SD Card
1. Turn off the swap file:
sudo dphys-swapfile swapoff2. Uninstall the swap file:
sudo dphys-swapfile uninstall3. Remove the swap file service:
sudo update-rc.d dphys-swapfile remove4. Remove the swap file manager [Optional]:
sudo apt purge dphys-swapfile -y5. Verifiy the swap is disabled:
free -mhSource: Pi Australia
Last updated