So this is what HP told you to do?
Here on this forum the general co consensus is as follows:
A. If there is any indication of a virus, address that issue first.
B. If the HDD, Hard Disk Drive, is 'messed up', run a an approved diagnostic.
C. If the HDD is bad, don't try to fix it. Get anew HDD.
Reformatting a drive is sometimes given as a 'fix' to your problems. But without proven backups it is not a good idea.
What are you going to do if the HDD is bad? Buy another drive? Why not run either a AV scan or a drive diagnostic first before you format the drive.
Yes, I am one of the guys that formats a drive when things go wrong. But I also perform redundant backups with other HDDs. I have more HDDs that computers. My personal recommendation is to make backups using drive image software.
How this is of some help and you find a solution.