Skip to content

Instantly share code, notes, and snippets.

@tberghuis
Last active September 23, 2019 09:06
Show Gist options
  • Save tberghuis/535e07361278a45695fc9083a975bdcb to your computer and use it in GitHub Desktop.
Save tberghuis/535e07361278a45695fc9083a975bdcb to your computer and use it in GitHub Desktop.
https://askubuntu.com/questions/1031275/increase-swap-in-ubuntu-18-04-under-lvm-and-encrypted-file-system
sudo swapoff -a
# 10G
sudo dd if=/dev/zero of=/swapfile bs=1024 count=10240k
sudo mkswap /swapfile
sudo chown root:root /swapfile
sudo chmod 0600 /swapfile
# /etc/fstab
/swapfile none swap sw 0 0
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment