Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6445

swapon: /swapfile: swapon failed: Invalid argument [closed]

$
0
0

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

Swap file  process:sudo swapoff -asudo fallocate -l +4G /swapfilels -lh /swapfilesudo chmod 600 /swapfilesudo mkswap /swapfilesudo swapon /swapfilesudo 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.


Viewing all articles
Browse latest Browse all 6445

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>