Created
September 19, 2020 09:49
-
-
Save TobiasPott/2e50f94dfd1ac7a33ff5771942f39e5e to your computer and use it in GitHub Desktop.
Swapfile Auto-Setup (for Jetson Nano)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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