I recently wiped my laptop clean and installed Ubuntu 20.04.2. After installation, if I reboot the newly installed OS, I get the following error:
error: failure writing sector 0xbd80848 to `hd0'. Press any key to continue...
When I press any key, I am unable to boot Ubuntu (the computer just freezes at startup). I rebooted on a Live OS (from a USB drive) and checked the state of my hard drives with the 'Disks' application. Here is the result:
This result of 966 bad sectors looks bad, but I don't know if this means I should replace my hard drive.
- What is the issue with my computer?
- How do I fix bad sectors?
- Do I need to replace my hard drive?
Responding to the comment by Hasan Merkit:
Responding to answer given by @HappyTux, here is the output to the command
systemctl status fstrim.timer when using the Live OS.
systemctl status fstrim.timer ● fstrim.timer - Discard unused blocks once a week Loaded: loaded (/lib/systemd/system/fstrim.timer; enabled; vendor preset: > Active: active (waiting) since Fri 2021-03-19 20:02:39 UTC; 3 weeks 6 days> Trigger: Mon 2021-03-22 00:00:00 UTC; 4 weeks 1 days left Triggers: ● fstrim.service Docs: man:fstrim