This video will show you how to create a swap files and remove Swap partitions from Ubuntu Linux.
Ubuntu 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.
Ещё видео!