Skip to content

Instantly share code, notes, and snippets.

@SeyedMostafaAhmadi
Last active July 11, 2021 10:47
Show Gist options
  • Save SeyedMostafaAhmadi/22e6cea06035dc308febe818931552c6 to your computer and use it in GitHub Desktop.
Save SeyedMostafaAhmadi/22e6cea06035dc308febe818931552c6 to your computer and use it in GitHub Desktop.
make swap partition
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