I have a ubuntu 16.04 and installed gparted on it and I wonder how I can increase the swap space in my case shown in the below screenshot?
Asked
Active
Viewed 104 times
1 Answers
0
Using swap on SSDs/NVME drives is not recommended, but here's what you can do if you really want more swap space available on your system:
# Replace "n" and /path... accordingly
sudo fallocate -l nG /path/to/swapfile
sudo chmod 0600 /path/to/swapfile
sudo mkswap /path/to/swapfile
sudo swapon /path/to/swapfile
sudo echo '/path/to/swapfile none swap sw 0 0' >> /etc/fstab
BulletBob
- 1,830