Please join the discussion at EzeeTalk. https://www.ezeelinux.com/talk/ It’s free, secure and fun!
This video will show you how to create a swap files and remove Swap partitions from Ubuntu Linux.
Ubuntu SwapFaq: https://help.ubuntu.com/community/SwapFaq
HOW TO ADD A SWAP FILE TO UBUNTU
1. sudo dd if=/dev/zero of=/swapfile bs=1M count=(size in MB)
2. sudo e4defrag /swapfile (Spinning drives only!)
3. sudo chmod 600 /swapfile
4. sudo mkswap /swapfile
MOUNTING THE SWAP FILE
1. sudo cp /etc/fstab /etc/fstab.old
2. sudo nano /etc/fstab
3. add: “/swapfile none swap sw 0 0” to bottom of file.
4. Remove existing line for swap partition.
5. press Ctrl+O to save, then Ctrl+X to exit
6. Rebbot to confirm. (‘sudo mount -a’ will NOT work!)
Use Gparted in live session to remove swap partition and resize / partition.
Please be sure to give EzeeLinux a ‘Like’ on Facebook! Thanks! https://www.facebook.com/EzeeLinux
Check out http://www.ezeelinux.com and http://www.freedompenguin.com for more about Linux.