In most cases when a hard drive is making any kind of noise it usually means it is failing or has already failed. In this instance if the operating system you are trying to install is taking an unusually long time or is not installing at all, more likely than not it is time to replace the drive.
Have you attempted to initiate a diagnostic scan on the drive? Depending on the laptop you have in your possession some come with just such a tool. Please refer to the manufacturers website for information on how to initiate this scan.
I highly recommend that if the HDD is under warranty that you contact the manufacturer and put in a claim for a replacement. If it is determined that the fault rests with the manufacturer you should have a replacement fairly quickly.
If it is not covered under warranty I would recommend that you purchase a solid state drive with similar or equal capacity as they tend to be more resilient than the drives with moving parts. Please keep in mind that the higher capacity drives tend to price higher than their mechanical counterparts.
I hope this helps you.