Startup Repair or Command Prompt Windows 7 Boot Repair (2023)

Content of this article:

  • About Windows 7 boot repair
  • How to Run Startup Repair from installation disc
  • How to BootRepair Windows 7 from Command Prompt
  • Create a System Image After Boot Repair to Prevent Boot Failure
  • Summary

About Windows 7 Boot Repair

If you have Windows 7 boot problems, the boot sector or master boot record on your system partition may be damaged, corrupted, or has missing files. And you will receive an error message like the following before Windows actually begins to load.

  • Error loading operating system

  • Missing operating system

  • Reboot and select proper boot device

  • Invalid partition table

  • Bootmgr is missing

  • FATAL: No bootable medium found! System halted.

If you backup MBR in advance, you can easily restore your computer and make it work as normal. If not, you need to use command prompt for Windows 7 boot repair.

✎... What are the boot sector and master boot record exactly?

The boot sector is a small section at the beginning of a hard drive, created when you format the hard drive, which contains some code and data that helps BIOS hand off the startup process to Windows.

It also hosts the Master Boot Record (MBR), which contains the disk signature, partition table for the disk, and a small bit of code called the master boot code.

✎... How do the boot sector and MBR boot a computer?

When a PC starts, the BIOS will load the master boot code into the PC's RAM. Then it will scan the partition table, determine the active partition, load a copy of the boot sector into the PC's RAM, and hand off the startup process.

How to Run Startup Repair frominstallation disc

If your boot sector or MBR runs into problems, you cannot start Windows normally. That's to say, you need the Windows installation discto boot your computer. If you don't have one, you can create system repair disc or recovery disk on a working computer.

Step 1.Plug the installation disc or recovery diskinto your computer.

Step 2. Start your computer and press theBISO key repeatedlyto access it. Then, go to the Boot tab and set your USB drive as first boot option. Save changes and exit.

Step 3. Press a key in the keyboard when you see a black screen, saying"Press any key to boot from CD or DVD...".

Step 6.After that, it will start to load files, wait patiently.In the Install Windows screen, click Repair your computer.

Step 7. Select the operating system Windows 7 in the System Recovery Options window and click Next. Sometimes, you will not see any operating system in this window, please click Load Drivers to install drivers for your disks.

Step 8. Select Startup Repair in the System Recovery Options and it will automatically start to repair boot sector or MBR in Windows 7. Just wait patiently until the process is completed and click Finish.

How to Boot Repair Windows 7 from Command Prompt

You can onlyboot to command prompt in Windows 7 and then have a chance to boot repair Windows 7. So in this part, we will introduce you to how to access command prompt in different ways and fix it with different commands.

Part 1: Boot to Command Prompt in Windows 7

#1: From Startup Repair

Sometimes, you may encounter theStartup Repair not workingissue and ask you to restore your computer with System Restore. ClickRestoreif you have a working restore point. If not, click Cancel andView advanced options for system recovery and support> Command Promptto boot repair Windows 7.

#2: From Key combination

Except for System Recovery options window, you still can press "Shift + F10" toaccess command prompt. The first Install Windows window is the best choice.

#3: FromAdvanced Boot options

If you don't have any recovery disk, Microsoft still allows you to access command prompt in the Advanced Boot options window.Turn on your computer, press and hold the F8 key repeatedly until you seethe this screen, then selectSafe Mode with Command Prompt.

Part 2: Use Command Prompt for Windows 7 Boot Repair

After accessing command prompt, try the following commands to boot repair Windows 7.

  • Way 1: Windows 7 Startup Repair Command Prompt Chkdsk
  • Way 2: Windows 7 Boot RepairBootrec
  • Way 3: Windows 7 Repair Boot Sector Command PromptDiskPart
  • Way 4: Rename and Rebuild BCD NotePad
  • Way 5: Rename and Rebuild BCDRen Command

Way 1: Windows 7 Startup Repair Command Prompt Chkdsk

In the command prompt window, type chkdsk C: /f /r and press Enter. It will start toscan the integrity of your file system and hard drive and fix the corrupted files.

If your Windows 7 boot problem is caused by physical issue, you can try this. Click here to learn more aboutWindows 7 startup repair command promptchkdsk.

Way 2: Windows 7 Boot RepairBootrec

You can also use Bootrec command prompt if your boot sector or MBR is damaged. It also helps fixbootmgr is missing in Windows 7 command prompt, build bcd and boot sector for Windows. Type the following commands and press Enter in order.

  • bootrec /fixmbr
  • bootrec /fixboot
  • bootrec /scannos
  • bootrec /rebuildbcd
  • bootsect.exe /nt60 all /force

❤ The /nt60 parameter applies the master boot code that is compatible with BOOTMGR.
❤ The /all argument updates the master boot code on all partitions.
❤ The /force parameter forcibly dismounts the volume(s) during the boot code update so that the Bootsect.exe tool does not gain exclusive volume access.

Way 3: Windows 7 Repair Boot Sector Command PromptDiskPart

If the bootrec /fixmbr and bootrec /fixboot don’t work, you can try to restore the boot sector code of your Windows 7 with Diskpart. Typediskpart and press Enter to access this Windows utility. Then, type the following commands and press Enter in order.

  • diskpart
  • select disk 0
  • list volume
  • d:
  • cd boot
  • dir
  • bootsect /nt60 SYS /mbr

❤ The command line from diskpart to list volume is to find the driveletter of your installation disc. Please check the“Type” column which contains the word “CD-ROM”, here take D: as an example.
❤ The command linebootsect /nt60 SYS /mbris to restore boot sector code using installation disc.

Way 4: Rename and rebuild BCD via NotePad

If the above command prompt does not work for you, you still can try to backup and rename BCD first and then rebuild it via CMD.

  • bcdedit /export C:\BCD_Backup
  • notepad

You will see a pop-up Notepad window,click File > Open > Computer,find theBCD file andrename it as BCD.old. After that,save the change and exit this window.

Now, you will go back to the command prompt window. Type bootrec /rebuildbcdand hit Enter. Type Yes to confirm if you asked. Finally, typebcdedit /enum alland hit Enter.

Way 5: Rename and Rebuild BCDRen command

Except for Notepad, you can also use the ren command to rename bcd and then rebuilt it.In the command prompt window, type the command line below and hit Enter after each one.

  • bcdedit /export C:\BCD_Backup

  • c:

  • cd boot

  • attrib bcd -s -h -r

  • ren c:\boot\bcd bcd.old

  • bootrec /RebuildBcd

Note: c: refers to the location of your Windows.

Create a System Image After Boot Repair to PreventBoot Failure

You never know when your computer will crash or becomeunbootable, thus it's suggested to backup your system withfree backup softwarelikeAOMEI Backupper Standard.

  • It will include the operating system, installed program, personal data, etc on the system partition.
  • By default, this software will create full backup and then incremental backup tobackup only changed files if you enable a schedule backup.
  • This software supportsschedule backupsystem daily, weekly, monthly. You can also enable "Wake the computer to run scheduled task" to wake yours computer automatically.

Download AOMEI Backupper Standard, install and run it.

Download Freeware Win 11/10/8.1/8/7/XP

Secure Download

(PS: The free version only supports Windows 7, 8, 10, 11, XP and Vista. For server users, try AOMEI Backupper Server.)

Step 1. In the main interface, click “System Backup” under the “Backup” tab.

Step 2. AOMEI Backupper will select system partition and other system-related partitions automatically. Here you just need tochoose the destination pathto save your backup. It can be a local path, network or NAS devices, or cloud drive.

Step 3.In the Operation Summary window,set backup settingsif necessary and click“Start Backup” to backup your Windows 7 system.

Options: You cansetcompression level, image splitting,backup encryption, etc.
Schedule Backup: You can select Daily, Weekly,Monthly, Event triggers, orUSB plug in. The last two options are available on theprofessional versionor higher.
Backup Scheme: You are able tochange the default incremental backup to differential backup and set acleanup method to delete old backup automatically. You have 4 options, such as By quantity, By time, By daily/weekly/monthly, and By Space.

For IT Technician, you could use AOMEI Backupper Technician or TechPlus. It allows you to create portable version of this software and use it to backup multiple computers without installing it again.

And you can easilyrestore system to new hard drive, even to a new computer with dissimilar hardware, when something unexpected happens andboot from it.

The biggest advantageof it is torestore system to multiple computers simultaneously over network. Its AOMEI Image Deploy tool allows you to boot multiple computers over network and restore system image from a server computer.


You can use the command prompt for Windows 7 boot repair if your computer has boot problems, and make it back to normal status. You can choose to run Startup Repair manually first and then try chkdsk, bootrec, diskpart, notepad, and ren commands.

If you don't want to encounter Windows 7 boot problems, the best way is to create a system image including the operating system, system files, drivers, etc. And you can restore system image quickly inthe event of a disaster. PleasedownloadAOMEI Backupper to protect your Windows 7. For details, check the edition comparison page.

Top Articles
Latest Posts
Article information

Author: Barbera Armstrong

Last Updated: 28/07/2023

Views: 6060

Rating: 4.9 / 5 (79 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Barbera Armstrong

Birthday: 1992-09-12

Address: Suite 993 99852 Daugherty Causeway, Ritchiehaven, VT 49630

Phone: +5026838435397

Job: National Engineer

Hobby: Listening to music, Board games, Photography, Ice skating, LARPing, Kite flying, Rugby

Introduction: My name is Barbera Armstrong, I am a lovely, delightful, cooperative, funny, enchanting, vivacious, tender person who loves writing and wants to share my knowledge and understanding with you.