Remove hard drive.
Install new hard drive, format and install OS.
Install old drive as a slave or external.
Copy old files over to new drive.
If the old drive has no physical errors - after you are sure nothing is left on it - then reformat it and save in case something happens in the future or use as a slave/USB for daily backups.