So my computer runs Ubuntu 20.04 and has a SATA SSD as containing the root, / , directory and another HDD containing the /home partition. About a week ago, I started to have a problem with the HDD and /home partition not being mounted on boot. It says "Device in error" then "A start job is running for dev-disk-by-uuid\xxx". That UUID is the one for my /home partition. I am still able to login after it eventually boots and when I open gparted, it gives me an I/O error on the drive. After a couple of reboots and waiting a while, it would eventually find the disk, mount the partition and it would work just fine with no issues. I originally thought this to be a hardware problem and that the HDD disk was just failing, that's why Ubuntu couldn't find/mount the drive on boot. But after troubleshooting every hardware step and running multiple test on my drive, nothing worked and the drive passed every test. I now suspect something could be wrong with Ubuntu, maybe firmware or drivers?
The drive works just fine when I plug it into a Windows PC and mount it using the problem EXT2fsb to read EXT4 filesystem drives.
I noticed the problem usually occurs after my computer has been off for a period of time. Say when I go to sleep at night and wake up, it fails.
This could still be a hardware problem but I want to eliminate the possibility that something may be wrong in Ubuntu, that's why it can't read the drive.
Here is my fstab for my SSD (sda) and HDD (sdb)
Any suggestions or ideas are appreciated! Thank you