Skip to content

Instantly share code, notes, and snippets.

@TobiasPott
Created September 19, 2020 09:49
Show Gist options
  • Save TobiasPott/2e50f94dfd1ac7a33ff5771942f39e5e to your computer and use it in GitHub Desktop.
Save TobiasPott/2e50f94dfd1ac7a33ff5771942f39e5e to your computer and use it in GitHub Desktop.
Swapfile Auto-Setup (for Jetson Nano)
echo Setup Swap File (4GB)
swapon --show
fallocate -l 4G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo /swapfile swap swap defaults 0 0 >> /etc/fstab
swapon --show
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment