I did carry out the diagnostic tests and I got the following error codes
First I got 2000-0142. When I opted for the testing to continue, I got 2000-0146.
Later during the advanced diagnostics of my HDD , I got the error code 0F00:0244saying uncorrectable data error or edia is write protected.
Incidentally I read somewhere that in the BIOS changing the SATA setting from AHCI to ATA fixes this up. What exactly is that ?