My son returned a 2006 Dell that ran XP (changed that) but the HDD was eventually found to be failing. The SYMPTOM was as you noted.

So I popped in a 35 dollar SSD and took the Windows 7 up to W10 and now it boots and gets a web search in a total of 33 seconds. Not shabby.

Good luck in your testing.