Skip to content

Instantly share code, notes, and snippets.

@dvgamerr
Created September 23, 2022 05:32
Show Gist options
  • Save dvgamerr/6253c98e4541b86d170f0d0879daf788 to your computer and use it in GitHub Desktop.
Save dvgamerr/6253c98e4541b86d170f0d0879daf788 to your computer and use it in GitHub Desktop.
Disable swap on boot in `Raspbian 10`
  1. Identify configured swap devices and files with cat /proc/swaps.
  2. Turn off all swap devices and files with swapoff -a.
  3. Remove any matching reference found in /etc/fstab.

disable it until the next reboot, as stated in /etc/fstab:

sudo /sbin/dphys-swapfile swapoff To disable swap on boot:

sudo systemctl disable dphys-swapfile (It turns out I couldn't find that information anywhere...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment