
:max_bytes(150000):strip_icc()/windows-vista-startup-repair-8-580711475f9b5805c20a4f71.jpg)
Hold the Shift button and select Power > Restart.We know that your computer is not booting, therefore, we have given the following steps to run the command. If you know that there are bad sectors in your Hard Drive, try using the CHKDSK command of Command Prompt to rectify the issue. Run CHKDSK to repair bad sectors of the Hard Drive.

3] Restart in Safe Mode and use CMD to run chkdsk Related: How to stop or cancel ChkDsk in Windows. When you find the faulty device, replace that with a new one. If this works, reconnect all your external devices one by one and check which one is causing the problem.

Now check if your PC can boot normally after it starts. To avoid this problem, you first need to disconnect all external drives attached to your computer and then restart your computer. There is a possibility that Windows could detect the external drive as the system boot partition, causing your PC to crash upon booting. So, wait for some time before moving to the next solution. This is somewhat obvious if you read the error message appearing on your screen. You need to first wait for a few hours or overnight as sometimes, the computer will automatically rectify the error.

To carry out some of these operations, you need to boot into Safe Mode or to the Advanced Startup Options screen.
