So, I just 'saved' an iMac A1312 (2009) that was about to be thrown away with a bunch of other computers, at the university where I work. Most of the time the computers that are thrown out are in perfect or almost perfect condition, just a bit old.
So I got that iMac and I am trying to see if it works. Keep in mind I am not used to macOs, so bear with me.
When I first booted up the computer, it sends me into a screen of 'macOS utilities', where I can :
-Restore from time machine
-Install macOS (which is high sierra)
-Get help online
-Disk utility
So I first tried the second option, without success. I get the following error :
'This disk has SMART errors. This disk has a hardware problem that cant be repaired. Back up data and replace the disk'
Okay, that's not so good. I can try replacing the HDD as last resort, but first I would like to know if there are other possible solutions.
I tried booting from a usb, and formatting the hdd. However, I get the same error if I try to install again. SMART status of the drive is 'failing'.
I'm pretty sure my only option is to replace the drive, but I would like to know if there is something to try first.
(The fact that the computer boots up is independent of the state of the drive ? In other words, am I in the equivalent of the BIOS right now ?)
Edit : I should mention thst I formatted to 'Mac OS Extended (journaled)', with GUID partition scheme.