Restoring bcd windows 7 via command line. Recovering MBR on Windows XP, all commands in the recovery console

💖 Do you like it? Share the link with your friends

It's called a bootloader special program, responsible for starting the OS. Damage to Windows components, careless user actions, computer failure - all this can lead to disruption of its operation.

Possible problems with the bootloader and how to fix them

Most often you can find two errors related to the Windows 7 bootloader: the first is Bootmgr is missing, and the second is Non system disc. Their appearance indicates that the computer settings or system components are damaged.

It is also possible that your PC may be infected with a virus that disrupts the operation of your computer. Most often, when the system starts, a banner or message appears indicating that you need to pay for the unlocking, otherwise the data will be deleted.

Any of these problems require restoring the Windows bootloader. Otherwise, using the computer becomes impossible.

Method 1: BIOS Setup

First you need to figure out what the cause of the problem is: corrupted bootloader data or a violation of the computer configuration. If the source of the problem is known and it belongs to the second group, proceed to the second method.

When you start your PC, there is a text prompt in the first image indicating the key on the keyboard to enter BIOS. Press it repeatedly until it opens. There you need to check the order of the devices from which the download is carried out. The drive with the OS should come first. If this is not the case, install the correct device. Then exit and save your changes.

This allows you to restore Windows startup 7 without unnecessary problems. If the method does not give the desired result, try another option.

Method 2: System image media

For execution this method You will need external media (flash drive or disk) with a recorded image of Vin, which is used on the computer. It must be the same, otherwise restoration will be impossible. Then you will need complete reinstallation systems.

Recovery instructions:


Menu BIOS may vary depending on what motherboard connected to the computer and what version of its firmware is. If you could not find the item responsible for the loading order, then study the instructions from the box or find it on the Internet.

Note: When restoring from media, user data will be preserved but may be deleted installed programs. Windows license will be saved, so, most likely, re-activation will not be required. Starting the OS for the first time after completing the steps above may take longer than previously required. The computer will adjust its configuration to accommodate the changes made. Subsequent downloads will proceed as normal.

Method 3: Bootrec Utility

First, try the solutions to the problem listed above. If they do not work, or their use becomes impossible, then proceed to this point.

In this case, in Windows 7 you can restore the bootloader using Bootrec. This is a built-in utility responsible for correcting errors. It requires a command line to run. You can open it using the instructions from the second method. In the System Recovery Options window, after selecting system disk, the corresponding item will be located, select it.

Sequentially (Enter after each line) enter the following in the terminal:

bootrec/fixboot

These are special commands to fix the bootloader. The first one rewrites its data, and the second one makes a boot partition on the hard drive.

Then you need to close the command line window, cancel the OS restore and restart the computer. All that remains is to change the order of devices in BIOS(put Floppy Drive first in Boot Priority). Otherwise, the PC will boot from the media again. You can skip this step if you simply remove the USB flash drive or optical disk from the computer.

The Windows boot loader can be damaged as a result of system failures, viruses, or some other careless actions. However, you can try to restore it to return the operating system to a working state.

How to recover Windows 7 bootloader from a disk or flash drive

In what cases should you resort to this method? An installation disk or other portable media can fix “Bootmgr is missing” \ “Non system disk or disk error” errors, virus access locks with a requirement to transfer money, and other failures that occur before the desktop appears. First of all, we need a ready-made Windows distribution 7 on any available media. Further:

  • connect the flash drive to the PC or insert the disc into the cd-rom tray;
  • we boot from them (by setting it in the BIOS, or using the hotkeys Esc, F8, F9);
  • after selecting the language, we get to the menu with the “Install” button;
  • At the bottom and left, click on “System Restore”;
  • if we are offered to connect networking opportunities– we skip this step, we won’t need them;
  • optionally set the language and reassign drive letters or leave them unchanged;
  • indicate the operating system whose bootloader needs to be restored - click on our Windows 7;
  • when the list of operations appears, click on the item “ Automatic recovery launch”;
  • Some time will pass, the system will either start or display an error;
  • if the method does not work, move on to the next one.

How to restore Windows 7 bootloader via command line

We perform all the same actions as in the previous paragraph of the article - we boot from the media, we get to the menu with action options. Here we select command line, in it:

  • We type the command bootrec /fixmbr - it is designed to rewrite the MBR bootloader in Windows 7.
  • If this is not enough (for example, the computer is infected with special mbr viruses), add bootrec /fixboot to it - creates a new boot sector.
  • When both commands notify that the actions were completed successfully, reboot the computer and boot in normal mode, with hard drive.


How to restore the Windows 7 bootloader - option using the console

Also on boot disk or flash drive contains the bootsect.exe utility, which can help with fixing the bootloader if bootrec does not work. For this:

  • in the command line we type bootsect /NT60 SYS - the boot sector is overwritten;
  • if the bootloader file is damaged or physically missing, use the bcdboot.exe program, which is also included in the distribution;
  • to restore, use the command bcdboot.exe e:\windows, where e:\windows is the path to your OS on the hard drive;
  • To learn more about using these commands, run them with the – help parameter.


The manipulations described above, if performed correctly, should be enough to resolve any problems with a damaged bootloader. If the error occurs after the worker has appeared Windows table 7 – the fault lies in something else.

Quite often, computers use Windows 7 startup recovery after errors have occurred. This may or may not be good for your operating system. Today we will talk about how to manage system startup recovery.

What is a recovery tool?

The Windows 7 Startup Repair tool repairs the OS. It can correct a number of problems that prevent proper Windows work. Wherein this process starts scanning your computer, thereby determining the presence of problems and errors, trying to eliminate them and ensure correct and effective work your "iron friend". By default, every Windows operating system has the Automatic System Restore option enabled. You can turn it off if you wish. But without special knowledge of your own computer, there is no need to do such manipulations - let the machine be checked, restored and functioning normally. Although there are times when restoring the startup of Windows 7 takes a long time and gets boring. This is already a signal to think about checking the hardware. Of course, restoring Windows 7 startup does not provide a 100% guarantee that the system will function correctly - there are errors that recovery tools cannot handle. We will talk about them further.

What recovery tools can't handle

The Windows 7 Startup Repair tool may not fix some problems. As a rule, system files that have been damaged, deleted or not installed at all are subject to recovery. It is not capable of greater recovery. Thus, it cannot eliminate hardware failure, such as a hard drive or memory incompatibility. Additionally, Windows 7 startup repair cannot protect your computer from viruses.

Restoring will not help with system installation problems either. So, if the operating system was initially crooked, then recovery tools will be of no use. Personal files (photos/videos/documents) cannot be returned or “repaired”. In order to save your data, you need to do archiving.

If recovery doesn't help

To resolve problems that are not resolved by System Restore, you must identify the problem. In any case, you will see a summary of the error and some documentation on your screen. This way it will be possible to understand what is going on and take appropriate measures. As a rule, if recovery does not help, then you need to “fix the hardware” or reinstall Windows.

Recovering the bootloader manually

There are several ways: restoring the Windows 7 boot loader manually, using programs, automatically and using a system rollback. Now we will talk about how to restore the system “by hand”.

In order to answer the question: “Restoring the Windows 7 boot loader - what should I do for manual recovery?”, you need to be patient and, of course, Windows 7. Now let’s proceed directly to the recovery process.

  1. Set up BIOS settings so that your disk drive comes first for loading and reading.
  2. Insert the Windows 7 installation disc into your computer and restart your device.
  3. You will see the already familiar system reinstallation window. At the bottom left you will see System Restore. Click on this button.
  4. After this, the “System Recovery Options” window will pop up in front of you. Select the one you want to restore, click “Next”.
  5. Next, select “System Startup Repair” - “Command Prompt”.
  6. Write in the window that opens: “bootrec.exe”.

Bootrec keys

With the manual recovery method, after completing the last step, you will see a window with the so-called keys. They explain how the restoration will be carried out Windows systems 7. Now we will see which keys are responsible for what.

FixMbr - writes a Windows 7 compatible master boot record to system partition. This option is used when master boot records are damaged or non-standard codes need to be removed from it. The existing partition table is not overwritten. Restoring Windows 7 startup can bother you for a long time because of these entries, but with FixMbr you will get rid of the problem once and for all.

FixBoot - a new boot sector compatible with your operating system is written to the system partition. Use this key when:

Replacing the boot sector with non-standard options;

Damage to the boot sector;

If it was launched previous version Windows.

Once you select the required Windows 7 startup repair tool, write it and press Enter. Wait for the process to complete. Done - the Windows 7 bootloader is working again and restoring the system. In this case, the boot will occur and the system will be restored to startup and will be in good condition.

Recovery programs

In order to “return” the system startup, you can use various Windows programs; restoring the startup of Windows 7 will be carried out almost automatically. This method is perfect when you don’t have the original Windows disk at hand. What programs can be used to carry out restoration?

Heren's Boot CD

As a rule, the salvation in the absence of the original Windows 7 disk is the so-called live CD, which can be written anywhere: either to a disk or to a flash drive. There are many such programs. The simplest and convenient way- this is to use Hiren’s Boot CD. There are a lot of different Windows recovery utilities on this disk, but today we will talk about the most convenient and common ones. Before you start, you need to burn a liveCD and then boot it through the BIOS. Once this is accomplished, you can move on to the next steps.

Option 1 - Paragon HD Manager

One of the most popular system recovery utilities is Paragon Hard Disk Manager. In order to restore the Windows 7 system through it, you must:


Option 2 - MBRFix

Another convenient, fast and popular system recovery utility is MBRFix. It is not much different from the previous one. Unless it's your desire. You won’t have to wait long for Windows 7 system recovery to begin. All you need to do is follow these steps:

  1. When starting the live CD, select " mini Windows XP".
  2. In the menu that opens, find and select “Partition/Boot/MBR” - “Commandline” - “MBRFix”.
  3. To restore the bootloader, enter the following entry: MBRFix.exe /drive 0 fixmbr /win7 /yes.
  4. Wait for the process to complete and restart your computer.

Restore using the command line. This is another good and high-quality way to restore the system. In order to use the command line as a Windows 7 recovery tool, you need to:

  1. Launch on your computer. Don't forget to select the command line option.
  2. Sign in.
  3. Enter rstrui.exe in the command line.
  4. Press Enter and wait for the processes to complete.

Disable recovery

Possible with Windows Help 7 disable system startup recovery. In order to turn off annoying Windows recovery 7 When you start your computer, you need to:

  1. Go to “Start” - “Control Panel” - “System” - “System Protection”.
  2. Find the Properties window and open the System Protection tab.
  3. In “Protection Settings”, find and highlight the drive on which you want to disable system recovery, click “Configure”.
  4. In “System protection for...” in “Options”, check the “Turn off system protection” checkbox.
  5. Click OK. So simple and quick ways You can carry out various manipulations with system recovery. Do not forget that Windows 7 can be restored using a system rollback. In this case, your personal data will not be damaged. It is possible to roll back the system only if the system itself can start, that is, if the recovery of the Windows 7 bootloader is always enabled, which constantly checks for errors, but the operating system is working normally. It will be necessary to “roll back” the OS to the date when there were no problems. Windows is restored using the standard kit included in the package. But if your computer was subject to some really unpleasant errors, then some problems may arise in the process that will not particularly affect the quality of the system - you will simply feel unusual and uncomfortable working at the computer. Most common problem is the disappearance language bar in system.

Language bar and recovery

The language bar is something that is visible and familiar to everyone. As a rule, there is a panel that shows the keyboard layout and allows you to switch it. Sometimes it happens that she disappears. Then it becomes necessary to restore the launch and operation of the language bar in Windows 7. The easiest way is to turn to the built-in recovery tools. It is quite difficult to judge why exactly your language bar is “covered” and for what reasons, since there can be a huge number of them. Nevertheless, everything is easily and simply corrected. Let's start troubleshooting the problem with this panel. There are two methods here.

Method 1 - "folk"

  1. Press Win+r and run intl.cpl. You can also use: “Start” - “Control Panel” - “Regional and Language Options”.
  2. Go to "Languages ​​and Keyboards".
  3. Open the Change Keyboard menu.
  4. Next, you need to select the language bar in the “Languages ​​and text input services” window.
  5. Check "Pinned to taskbar" and "Show test marks in language bar".
  6. Next you need to accept the changes and click on OK.

The language bar should now appear.

Method 2 - "advanced"

  1. Press Win+R and type regedit.
  2. Find the tab in the registry:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run

3. Check CTFMon for the appropriate "program". If it doesn't exist, create it.

4. Right-click Run and “create string parameter”.

5. Assign a name to CTFMon and, right-clicking on it, click on “change”.

6. Write: "C:\Windows\system32\ctfmon.exe".

7. Click OK.

It will fall into its place allotted to Windows 7. Which method of returning the socket to its place is right for you - decide for yourself. It all depends on your skills and desires. But don't forget that a computer can be "repaired" to the point where it eventually stops working altogether. Be careful with system files. It’s good if you have several computers - on one of them you can always see how to fix this or that error that has arisen in the system.

In extreme cases, only a complete reinstallation of the system without saving the data can save you.

It is carried out using installation Windows drives. Before you completely destroy the system, make sure that all recovery methods do not work. If there is no more output, insert the disk into the drive, configure the BIOS to boot from the disk and get to work. Very often, if the bootloader malfunctions, installation problems may arise. new version Windows or with timeout. Try to carefully read everything the installer writes. Be patient - any computer requires proper, often very painstaking, care.

With these simple methods you can put your system in order. Launching Windows 7 and the language bar is not that difficult. If you doubt whether you can do everything correctly yourself, call a specialist. He will definitely be able to tell you the right and high-quality way to correct any errors that have arisen. Try to carry out all the necessary manipulations to protect and check your computer on time and regularly. Happy renovation!

Reading time: 34 min

First you need to get an initial impression of what a bootloader is. To put it simply in simple words we can say that the bootloader is a utility that helps Windows start immediately after the computer boots. This program called MBR and contains code for the initial startup of the system.

Accordingly, without such code or if it is damaged, you will encounter errors containing the word Bootmgr. This is the dispatcher that responds to processing Windows boot. All this comes down to a complete blocking of the system, so you will not be able to get to the desktop and even safe mode will be unavailable.

Microsoft has prudently introduced special commands to restore the recording, which makes it much easier to fix the problem. In addition, there are a large number of programs with a similar effect. Both cases will be considered, which will help restore order when starting the system.

Before we begin, we should write that if Windows starts, and failures begin after booting, then the reason is not in the MBR. There are other files to be restored here, so this instruction not for you.

Recovering the MBR using the standard method

In Windows 7, restoring the bootloader is quite simple, but a prerequisite is the presence installation flash drive or disk with the system. Otherwise, we won’t be able to get beyond the error window. If you don't have one, use the following method.

Having found the installation disk, it is not fundamentally important that it comes with native Windows; you can use different builds. Connect USB or insert the disk into your computer, then:

  • Enter BIOS or UEFI using Del (or your option);
  • You should find a section called “boot priority”, most likely this will only be part of the name;
  • Set your drive with the system to First and restart;

  • Now you will be taken directly to the installation distribution, where you need to select the link below “System Restore”;
  • Will happen Windows search, and then select it;
  • Click "Startup Repair". Troubleshooting and troubleshooting will occur automatically; this does not always help, but it is very easy to use. If it helped you, further actions may not be undertaken;

  • Go again to the same section, just select “Command Line”;
  • Now enter bootrec /fixmbr - allows you to write the main entry for the bootloader, although it does not change the partition table;
  • Insert bootrec /fixboot again - there is a high probability that you can stop at this stage and boot the system;

  • Also the control command bootrec.exe /rebuildbcd;
  • An additional method when using another utility bcdboot.exe c:windows.

All of the above methods are already built into the system and do not require additional installations of the application, although sometimes you cannot do without their help.

Recovering the bootloader using programs

Recover bootloader after Windows installations It’s also easy when using third-party utilities. The main advantage is that there is no need for a Windows installation disk.

You will need one of the LiveCD programs, which also needs to be written to a disk or flash drive. As an example, we will use a utility that has proven itself to be a powerful and simple tool - Hiren’s Boot CD. It includes many programs for restoring and diagnosing hardware and Windows, including those for working with MBR.

Having created the media with the utility, you need to:

  • In the same way as in the previous method, install autorun from the media via BIOS;
  • Select “DOS Programs”;
  • Now find “Disk Partition Tools”, in which there will be “Paragon...”;

  • In the top menu you will see the “Wizards” tab, where the desired item is “Boot Recovery”;
  • The checkbox should be set to “Search for copies...”;
  • Then don’t forget to check the box next to “Change boot entry” and so on.

The Paragon application is one of the troubleshooting options, but there are others that are no less effective and popular, for example “MBRfix”. It is located in the same kit and therefore you will not need to create the media again. You should:

  • In the Hiren’s Boot CD menu, select “Mini Windows”;
  • After launch, click on start and select the “HBCD Menu” option;
  • Then, one by one, go to “Partition/Boot/MBR”, then “Commandline” and finally “MBRFix”.

  • Now in the console, run the command MBRFix.exe /drive 0 fixmbr /win7 /yes.

By following one of the suggested options for troubleshooting MBR failures, you can regain access to Windows. Immediately after this, you should check for viruses that could cause the problem. Elimination malicious code should not be put off until later so as not to have to deal with troubleshooting on an ongoing basis.

You can choose any of the proposed variations of achieving the goal, depending on the available resources, namely program distributions.


If you still have questions on the topic “How to restore the Windows 7 bootloader?”, you can ask them in the comments


Sometimes it happens that the bootloader crashes operating system. In most cases, the usual Windows 7 Startup Recovery helps, but not always. You can also try to restore the system. If this does not help, then read below. detailed instructions, how to restore Windows 7 bootloader.


Remember: you cannot install a higher class operating system after a junior one, that is, if you install Windows XP, Windows 7 will not boot, since the main boot record(MBR) will be overwritten by the old system.

To restore the Windows 7 bootloader, we will use the recovery environment, where we will need the command line. I will write and describe all the commands below. But first, let's look at what MBR is. The MBR (master boot record) is the very first sector on the disk, which contains the partition table, as well as a small boot loader utility that specifies from which part of the disk the operating system will boot. If the MBR contains incorrect information about the location of the OS, then Windows 7 will not start and will most likely display a similar error: “BOOTMGR is missing press CTR-Alt-Del for restart.”


To fix the operating system boot loader we need an installation Windows disk 7, which will contain the Bootrec.exe utility we need, or a recovery disk. This utility will register a new boot sector using certain commands.


Well, let's get started. Booting from installation disk with Windows 7 or from a recovery disk, the message “Press any key to boot from CD...” will pop up and immediately press any key on the computer, otherwise booting from the disk will not happen



In this window you need to select System Restore



Next, you need to wait a little, at this moment the installed OS is searched and errors that prevent the system from loading are analyzed



In most cases, problems are found automatically, after which you will be offered to fix them in automatic mode. To do this, simply click on the Fix and restart button, after which the system will reboot and Windows 7 will boot without errors.



However, if the problems remain the same or the system does not offer to fix the errors automatically, then in the same window you need to select the OS that needs to be restored (usually there is only one). Click Next



Here we click Startup Recovery



We wait until the recovery tool eliminates the operating system startup errors. If suddenly this method does not help, then select the command line in the recovery tool



The Command Prompt will open, in which you need to enter the Bootrec command and press Enter



You will see information about the capabilities of this program. Enter the command Bootrec.exe /FixMbr - select the master boot record



It will show us in the window that the operation is completed. This suggests that the first sector of the boot boot hard section disc is recorded new entry. Next, enter the command Bootrec.exe /FixBoot, which will write a new boot sector to the disk.



tell friends