DEV Community

Cover image for How to Fix a Windows XP or Windows 7 PC That Won’t Boot
HexShift
HexShift

Posted on

How to Fix a Windows XP or Windows 7 PC That Won’t Boot

If your computer turns on but does not boot into Windows XP or Windows 7, it can be worrying. However, you do not necessarily need a new computer. This guide walks you through common reasons for boot failure and how to fix them yourself, even if you are not very technical.

Start with the Basics

First, check whether the computer is receiving power. Are the lights on? Do you hear the fan running? If not, check the power cable, wall socket, and power strip. If it seems completely dead, try another power cord or outlet.

If the computer powers on but gets stuck on a black screen or shows a Windows error message, continue with the steps below.

Try Safe Mode

Safe Mode loads only the essential parts of Windows. To try it, restart your computer and press the F8 key repeatedly as it starts. If you see a black screen with white text offering boot options, select Safe Mode using the arrow keys, then press Enter.

If Safe Mode works, your problem might be caused by a driver or program that runs during normal startup. You can use Safe Mode to uninstall recently added software or run system restore.

Use Last Known Good Configuration

While on the same F8 boot options screen, you can also try Last Known Good Configuration. This option loads the last successful boot settings. If your problem began recently, this can often fix it.

Check for Bootable Devices

If your computer tries to boot from the wrong device, it will fail. Unplug any USB drives, CDs, DVDs, or external hard drives, then restart the computer. Sometimes a USB stick can confuse the system into trying to boot from it.

You can also enter your BIOS or boot menu by pressing F2, F10, DEL, or ESC as the computer starts, depending on the brand. Look for an option labeled Boot Order and make sure the internal hard drive is listed first.

Run Startup Repair (Windows 7 Only)

If you have a Windows 7 installation DVD or USB drive, insert it and restart your computer. Press a key when prompted, then choose Repair your computer instead of Install Now. Select Startup Repair from the list of recovery tools.

Startup Repair will scan for issues and attempt to fix them automatically. This does not work on Windows XP, but XP users can run a similar tool called Recovery Console.

Use the Recovery Console (Windows XP)

To use this tool, you need a Windows XP CD. Insert it and boot from the CD. When you reach the setup screen, press R to launch the Recovery Console. You will be asked to choose your Windows installation and enter your administrator password.

At the prompt, try the following commands:

chkdsk /r

fixboot

fixmbr

Type one command at a time and press Enter after each. These commands check for hard drive errors, rewrite the boot sector, and fix the master boot record.

System Restore

If you can get into Safe Mode or use your Windows installation media, you may be able to use System Restore. This rolls your system settings back to an earlier time when the PC was working.

In Safe Mode:

Go to Start, type System Restore, and follow the prompts. Choose a restore point from before your problem started.

From Windows 7 recovery tools:

Select System Restore and pick a suitable restore point.

System Restore does not delete personal files but it will remove recently installed drivers and software.

Remove New Hardware or Software

Have you recently added new hardware like a printer, graphics card, or USB device? Try disconnecting it. New devices can conflict with older systems, especially if drivers are not properly installed.

Similarly, if you recently installed a new program or update, it may have caused the issue. Boot into Safe Mode and uninstall the software from Control Panel > Programs.

Scan for Malware

Malware can sometimes damage your boot sector or critical Windows files. If you can get into Safe Mode with Networking, download a reputable tool like Malwarebytes, install it, and run a full scan.

You can also create a bootable antivirus CD or USB on another computer and use it to scan your troubled machine.

Reinstall Windows (Last Resort)

If nothing else works and you have backed up your important files, reinstalling Windows might be your only option. For Windows XP or Windows 7, insert the installation disc or USB, boot from it, and follow the steps to do a clean install.

Be sure to choose the option to format the hard drive only if you are sure all your data is backed up elsewhere.


If you have followed these steps, you now understand several ways to recover a non-booting XP or Windows 7 computer. These systems can be stubborn, but most problems are fixable with patience and care.

For more support and complete step-by-step instructions to keep your old system working safely, check out the Windows XP and Windows 7 Survival Guide: How to Keep Your Old PC Safe and Running in 2025. You pay once and keep the guide forever.

Thank you for reading. If you found this article helpful, please comment, like and subscribe for more free content.

Top comments (0)