$ sudo fdisk /dev/sda
Follow this link for more help: Link
$ sudo mkfs -t ext4 /dev/sda1
$ sudo mount /dev/sda1 /media/SSD_120/
$ sudo blkid | grep /dev/sda1 # To get the UUID of the disk
$ sudo vi /etc/fstab
Ex: UUID=33333333-3b3b-3c3c-3d3d-3e3e3e3e3e3e /media/SSD_120 ext4 defaults,nofail 1 2
$ sudo fallocate -l 8G /media/SSD_120/swapfile # Create swap file for 8GB
$ sudo chmod 600 /media/SSD_120/swapfile # Permissions
$ sudo mkswap /media/SSD_120/swapfile
$ sudo swapon /media/SSD_120/swapfile
$ sudo vi /etc/fstab
/media/SSD_120/swapfile swap swap defaults 0 0
$ sudo reboot now