if your hard drive is new then sometimes it is power issue. i mean when hard drive needs more voltage but it cannot get it from power supply and usually happens when hard drive and optical drive is sharing same power cable. you should check that if optical drive and hard drive is on same power cable with splitted connectors or on separate power cables. if your hard drive and optical drive are sharing same power cable then change them to seperate power cables (i mean cables not connectors). some times if your hard drive's power connector is loose then it can too create a problem like this so tight the power cable connector. hope this will resolve the issue.