For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 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: Pi Australia

Last updated