Skip to content

Instantly share code, notes, and snippets.

@ipan
Created January 18, 2018 00:42
Show Gist options
  • Save ipan/2f33aecc8e4b11cc07fc72f93acd38f1 to your computer and use it in GitHub Desktop.
Save ipan/2f33aecc8e4b11cc07fc72f93acd38f1 to your computer and use it in GitHub Desktop.
creating swap partition #unix #swap

creating swap

This is how to format swap partition

mkswap /dev/data/swap

shell output:

mkswap: /dev/data/swap: warning: don't erase bootbits sectors
        on whole disk. Use -f to force.
Setting up swapspace version 1, size = 104857596 KiB
no label, UUID=48a645a7-18f1-4e51-996f-fd7687e0380c


swapon /dev/data/swap

or

swapon -U 48a645a7-18f1-4e51-996f-fd7687e0380c

Run this to check

free -m

source

https://help.ubuntu.com/community/SwapFaq http://askubuntu.com/questions/33697/how-do-i-add-a-swap-partition-after-system-installation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment