How Do I Change Swaps in Linux?
Contents How Do You Change a Swap? Activating the Swap Partition Pull up a Terminal and Run Gksu Gparted & and Enter Your Root Password. … Right-Click on Your...
Contents
How do you change a swap?
Activating the swap partition
- Pull up a terminal and run gksu gparted & and enter your root password. …
- Right-click on your swap partition and choose *Information*. …
- Run gksu gedit /etc/fstab & and look for the line that has *swap* in it. …
- Save the file.
- Enable the new swap partition with this command.
How do I edit a swap file in Linux?
How to add Swap File
- Create a file that will be used for swap: sudo fallocate -l 1G /swapfile. …
- Only the root user should be able to write and read the swap file. …
- Use the mkswap utility to set up the file as Linux swap area: sudo mkswap /swapfile.
- Enable the swap with the following command: sudo swapon /swapfile.