Skip to content

Instantly share code, notes, and snippets.

@mbaynton
Created February 9, 2023 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbaynton/73e9a8d4465b01daf644be4d009a26b4 to your computer and use it in GitHub Desktop.
Save mbaynton/73e9a8d4465b01daf644be4d009a26b4 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -euo pipefail
dd if=/dev/zero of=/swapfile2 bs=1M count=2560
chmod 0600 /swapfile2
mkswap /swapfile2
swapon /swapfile2
swapoff /swapfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment