Bro have you tried replacing the hdd cable?? If yes & you're still facing the problem, then change the hdd power cable(PSU) with anther one. Just so you know I faced a similar problem back then but in my case my hdd started working after I replaced my Power Supply with a branded good quality one.