Last active
July 13, 2024 21:47
-
-
Save jaredmichaelwilliams/cd517badc13e08adbacf to your computer and use it in GitHub Desktop.
Quick Add 5GB Swap File, and add to fstab
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
dd if=/dev/zero of=/mnt/swap bs=1024 count=5242880; | |
mkswap /mnt/swap; | |
chown root:root /mnt/swap ; | |
chmod 0600 /mnt/swap ; | |
swapon /mnt/swap; | |
echo "/mnt/swap swap swap defaults 0 0" >> /etc/fstab; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment