Last active
July 11, 2021 10:47
-
-
Save SeyedMostafaAhmadi/22e6cea06035dc308febe818931552c6 to your computer and use it in GitHub Desktop.
make swap partition
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
swapoff -a #### Turn off the existing swap space | |
#### create partition with enter n character, after enter this character enter partition number and start sector and space - write changes with enter w | |
partprobe #### reread partition table | |
#### add this line `/dev/specific-device none swap sw 0 0` ### modify /etc/fstab file for mount startup | |
mkswap /dev/specific-partition | |
swapon -a #### activate created swap particion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment