I have a 500Gb hard drive with 20 bad sectors according to gnome-disk, and when I try to run a SMART self-test, it fails at reading. But gnome-disk shows that every other SMART attribute is OK, and this SMART failure doesn't kick in my motherboard's UEFI SMART failure warning on boot.
Is the hard drive unreliable? Can I still use it safely? Is there anything I can do to fix it or prevent failure?
smartctl /dev/sda -Aas root, so we can actually see the SMART attributes (instead of having to guess) and explain to you what they mean. But if you already have 20 bad sectors, and the SMART self-test encountered a 21st bad sector, it's definitely time to make a backup, and the drive is very likely on its way out.