Re Allocated Sector Count

When I run the WD diagnostics software, it shows below error

        Name                                             ID          Value       Thresh   Worst    warranty

        Re Allocated Sector Count           5           42            140          42              1

how to fix it .can any one help me

Hi well you can try and write zeros to the drive that may sort it for a bit. The way it works is a bad sector is found and is then replaced by a good spare sector on the hard drive this may cause no problem for years but if the count increases you need to replace the drive. Myself I have never seen bad sectors go away they only get worse so I would do a RMA on the drive.