Add swap partition after system installation on Ubuntu
Edit /etc/fstab
to add the new swap partition as system swap space.
sudo nano /etc/fstab
Get the UUID of the partition using the command
sudo blkid /dev/<paritionid>
Eg:
sudo blkid /dev/sda3
Alternative to running above command is by using the preinstalled Disks
app.
Add the following line that looks like
UUID=<partition-uuid> none swap sw 0 0
Eg:
UUID=62f379a4-a760-4679-b822-7936d7b628bc none swap sw 0 0