I am trying to create a swap partion in my ubuntu system but i am getting the invalid argument error.
These are the cmds i used
<code>Swap file process:
sudo swapoff -a
sudo fallocate -l +4G /swapfile
ls -lh /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon --show
</code>
<code>Swap file process:
sudo swapoff -a
sudo fallocate -l +4G /swapfile
ls -lh /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon --show
</code>
Swap file process:
sudo swapoff -a
sudo fallocate -l +4G /swapfile
ls -lh /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon --show
This is the terminal screen shot
Terminal screen shot
I tried deleted the previous swap file that is created and run the above cmds and also its not working.