I recently installed a 240 GB Kingston M.2 SSD and installed Ubuntu 16.04 on it. But after working on it for a while it randomly freezes for a very long time even the mouse didn't work then. What should I do in this situation?
hp@hp-HP-Laptop-15-bs1xx:~$ free -h
              total        used        free      shared  buff/cache   available
Mem:           7.7G        970M        5.4G        341M        1.4G        6.2G
Swap:          7.9G          0B        7.9G
hp@hp-HP-Laptop-15-bs1xx:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdb2 during installation
UUID=10026a97-9791-4a55-944b-e9141b8e1393 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda2 during installation
UUID=DA35-0453  /boot/efi       vfat    umask=0077      0       1
# swap was on /dev/sdb3 during installation
UUID=820342c5-9b51-4e0d-a1df-d01ff6016cbb none            swap    sw              0       0
hp@hp-HP-Laptop-15-bs1xx:~$ 
 
    