Search This Blog

Tuesday, 14 February 2017

How to create swap and increase the partition.

# sudo swapon -s
Filename                Type        Size    Used    Priority  /swapfile                               file        1048572 0   -1  # sudo swapoff /swapfile   # sudo fallocate -l 4G /swapfile  # sudo mkswap /swapfile  Setting up swapspace version 1, size = 4194300 KiB  no label, UUID=fb0aadaf-b52f-4928-b57f-c60ef7a0bd49  # sudo swapon /swapfile  # sudo swapon -s  Filename                Type        Size    Used    Priority  /swapfile                               file        4194300 0   -1