1 Answer
I assume you mean edit the size of swap from count=1983 towards 3007.First, swap location:
To discover your swap location, use the command,
#swapon -s
Turn swap off:
Before we can edit our swap file, we have to turn it off. Logical, cause it is in 'use'. You can check how much swap is used by the command,
#free -m
Command to turn swap off:
#sudo swapoff -a
Edit swap size:
Now you able to edit the size, .
Be carefull with commands like these, I advice you to read the manual before blind copying my command.
#sudo dd if=/dev/zero of=/dev/dm-1 bs=1M count=3007
Initialize swap:
mkswap sets up a Linux swap area on a device or in a file.
#sudo mkswap /dev/dm-1
Final, turn swap on:
#sudo swapon /dev/dm-1
Your Answer