Linoxide published a tutorial about how to test SSD/HDD health in Linux.
How to Test SSD/HDD Health in Linux
Learn how to test SSD/HDD health in Linux from CLI and GUI. Two methods explained here are using smartctl and Gnome Disks.
How to Test SSD/HDD Health in Linux