Press the Power button for at least five seconds to turn off the computer.
Turn on the computer and start pressing Esc repeatedly, about once every second. When the menu appears, press the F2 key.
When the HP PC Hardware Diagnostics menu displays, click Component Tests.
In the Component Tests menu, click Hard Drive.
Click Quick Test.
Click Run once. If the computer has more than one hard drive, click Test All Hard Drives. The Quick Test begins.
If the computer has more than one hard drive, select the drive you want to test. To test all the hard drives, select Test All Hard Drives.
When a test is complete, the results display on the screen. Test results are also available in the Test Logs on the main menu.
If the hard drive passes the Quick Test, but a problem still exists with the hard drive, run the Extensive Test. This test includes the SMART Check, Short DST, Optimized DST, and Long DST. To run a specific test, select it from the Hard Drive Tests menu.
Hope this helps! Keep me posted for further assistance.
Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.