Download the program to restore the windows xp bootloader

Microsoft has been improving its recovery system for many years. operating system Windows and Windows 7 and Windows Vista she works practically automatic mode. If you boot from the installation Windows disk 7 and click " System Restore" ("Repair Computer"), system Windows recovery will be launched and will independently try to correct all errors that it finds. It can fix a large number of problems, however, it is quite likely that the bootloader is damaged, and the recovery system cannot cope with this problem. In this case, you can restore the bootloader manually using the Bootrec.exe utility.

The Bootrec.exe application is used to fix errors associated with bootloader corruption and, as a result, the inability to start the Windows 7 and Windows Vista operating systems.

Sequencing

Description of keys for launching the Bootrec.exe utility

Bootrec.exe /FixMbr

Launched with the /FixMbr switch, the utility writes a master boot record compatible with Windows 7 and Windows Vista ( Master Boot Record, MBR) to the system partition. Use this option to resolve problems with the master boot record being corrupted, or if you wish to remove non-standard code from it. In this case, the existing partition table is not overwritten.

Bootrec.exe /FixBoot

Launched with the /FixBoot key, the utility writes a new boot sector compatible with Windows 7 and Windows Vista to the system partition. This option should be used in the following cases:

  1. The Windows Vista or Windows 7 boot sector has been replaced with a non-standard boot sector.
  2. The boot sector is damaged.
  3. Has been installed previous version Windows operating system after Windows installations Vista or Windows 7. For example, if Windows XP was installed, NTLDR (Windows NT Loader, Windows NT loader) will be used, the code of the standard NT 6 loader (Bootmgr) will be overwritten by the Windows XP installation program.

It should be noted that a similar effect can be achieved using the bootsect.exe utility, also located on the Windows 7 bootable media. To do this, you need to run bootsect.exe with the following parameters:

Bootsect /NT60 SYS

The boot sector of the system partition will be overwritten with BOOTMGR compatible code. You can learn more about using the bootsect.exe utility by running it with the parameter /help.

Bootrec.exe /ScanOs

Launched with the /ScanOs key, the utility scans all disks for installed Windows Vista and Windows 7 operating systems. In addition, when using it, a list of found systems is displayed that are this moment are not registered in the configuration data store Windows boot(Boot Configuration Data (BCD) Store).

Bootrec.exe /RebuildBcd

Launched with this key, the utility scans all disks for the presence of installed Windows Vista or Windows 7 operating systems. Found operating systems are displayed in a list from which they can be added to the Windows boot configuration data store (Boot Configuration Data Store). Also use this option if you want to completely rebuild the boot configuration data store. Before doing this, you must delete the previous storage. The set of commands could be as follows:

Bcdedit /export C:\BCDcfg.bak attrib -s -h -r c:\boot\bcd del c:\boot\bcd bootrec /RebuildBcd

The example above exports the current boot configuration store to C:\BCDcfg.bak, removes its system, hidden, and read-only attributes, removes it with DEL, and rebuilds it with bootrec /RebuildBcd.


Enlarge picture

Of course the utility Bootrec.exe is very functional, however, it will not help if, for example, the Windows boot loader file bootmgr damaged or physically missing. In this case, you can use another utility, also included in the Windows 7 distribution media - bcdboot.exe.

Recovering the boot environment using BCDboot.exe

BCDboot.exe is a tool that is used to create or restore a boot environment located on the active system partition. The utility can also be used to transfer download files.

The command line in this case might look like this:

Bcdboot.exe e:\windows

Replace e:\windows with the path that matches your system.
This operation will repair the corrupted Windows boot environment, including the boot configuration data (BCD) store files, including the bootmgr file mentioned above.

Syntax of bcdboot command line parameters

The bcdboot.exe utility uses the following parameters command line:

BCDBOOT source]

source

Specifies the location of the Windows directory used as the source when copying boot environment files.

Optional parameter. Sets the boot environment language. The default is English (US).

Optional parameter. Specifies the drive letter of the system partition where the boot environment files will be installed. By default, the system partition specified by the BIOS firmware is used.

Optional parameter. Enables detailed logging mode of the utility operation.

Optional parameter. Combines the parameters of the newly created and existing boot storage record and writes them to the new boot record. If an operating system boot loader GUID is specified, combines the boot loader object with the system template to create a boot entry.

Summary

The article discussed the principles of working with the bootrec.exe and bcdboot.exe utilities, which are used to resolve problems associated with the inability to start the Windows 7 operating system due to a damaged or missing bootloader.

Often, after an inexperienced or simply overly self-confident user plays with the computer settings, it begins to produce various errors - even . In most cases, they can be easily fixed by simply asking Google the right questions.

But what to do if the system doesn’t even want to boot?

Description of the problem

A black screen and scary white inscriptions plunge inexperienced users into despondency, making them want to immediately format the C:\ drive and install new system. This is not always the smartest thing to do. Let's look at one of the most common errors that prevent the operating system from booting: Windows bootloader corruption. This error makes itself felt with a black screen and a system message:

Bootmgr is missing Press Ctrl+Alt+Delete to restart

This inscription is very deceptive; it cannot be perceived directly. Knowledgeable English language people can easily translate “The boot manager is missing, press Ctrl+Alt+Delete to reboot.”

Let's figure out what these words mean. For convenience, we will split this message into two parts:

  • There is no download manager. This does not mean that all information has been deleted from the disk or that the hard drive itself is missing. The system means that it cannot read information about where to boot the system from. It can’t, it means it doesn’t exist - that’s computer logic.
  • Press Ctrl+Alt+Delete to reboot. A classic of the genre - by pressing these keys, you simply restart the computer, but the error will remain. This can be repeated ad infinitum.

From this we conclude: everything is not so bad, because the problem can be fixed programmatically. To do this, we need to perform a special procedure - restoring the Windows 7 bootloader. This can be done in two ways.

Recovering the bootloader using System Restore

To restore using this method, you will need a boot disk ( installation disk Windows). Then simply follow the algorithm:


Let's look at them separately:

System utility Bootrec. This program is very functional, but its main purpose is to overwrite the master boot record on the system partition. That is, it should only be used when the boot record exists, and you just want to remove unnecessary code from it.

You can run this program by writing the command “Bootrec.exe” into the command line. After this, the utility will display a list of keys with which it works, and you select the one you need and write: Bootrec.exe “needed key”. Just remember that keys are written separated by a space.

System utility BCDBooT. This program is used to create or restore a boot record. That is, it needs to be used when it is damaged or completely missing.

To create a boot entry, write the command “bcdboot.exe” into the line. Then, separated by a space, write the path to your operating system. For example "C:\windows". The complete command will look like this: "bcdboot.exe C:\windows".

Recovering the bootloader without a boot disk

This method is almost identical to the first, except that you do not need a boot disk to implement it. This is very convenient, but does not always work.

To restore the bootloader Windows data way, you need to do the following:

  • After turning on the computer, press the F8 key before loading the operating system.
  • If you did everything correctly, a window for additional download options will open.
  • Select the first option, “Troubleshoot your computer.”

class="eliadunit">How to produce Windows 7 Boot Loader Recovery, if restoring the startup using the 7 installation disk did not help. I’ll briefly explain what’s going on: Windows 7 was first installed on the computer, then the second system needed Windows XP, after installation it naturally started alone, to boot two operating systems I used the EasyBCD program. Later, XP was no longer needed and I formatted the partition on which it was located from Windows 7. Now, when loading, there is nothing except a black screen. What can be done in this case? More details if possible. Sergey.

Restoring the Windows 7 bootloader

The most important thing is don’t worry, your problem is not complicated and, in principle, the Windows 7 Startup Repair tool should have helped, let’s try something else. Let me remind you that you cannot install an older operating system after a younger one. Under no circumstances will Windows 7 boot after installing Windows XP on a computer, since the latter overwrites the Master Boot Record (MBR) during installation. Therefore, you installed an additional boot manager EasyBCD, which is used to configure the boot of several operating systems and, in turn, has its own bootloader.

  • The master boot record (MBR) is the first sector on the hard drive, which contains a partition table and a small bootloader program that reads from this table the data from which partition of the hard drive to boot the OS, and then the information is transferred to the partition with the installed operating system, to download it. If the master boot record contains incorrect information about the location of the system, then we will receive various errors during boot, one of which is Bootmgr is missing, or we will see a black screen. The problem is being fixed restoring the Windows 7 bootloader.

When you uninstalled old XP along with EasyBCD, you left your computer to the mercy of fate with an incomprehensible boot record, and it gives you a black screen as a sign of gratitude. To rectify the situation, we will carry out boot recoveryWindows 7, namely, we will overwrite the master boot record using the utility Bootrec.exe, located on the recovery disk or on the Windows 7 installation disk. We will also use this utility to write a new boot sector that is understandable to Windows 7.
Boot from a recovery disk or installation disk with Windows 7, then System Restore.

Here you need to select the operating system that you need to restore, you most likely have only one, and then, even if there is nothing here, we need to get to the command line.

In the command line window, enter the command Bootrec And Enter

comes out full information about the utility's capabilities. Select the Master Boot Record entry Bootrec.exe /FixMbr.

The operation was completed successfully. A new boot record is written to the first sector of the boot partition.
Second team Bootrec.exe /FixBoot writes a new boot sector.

Restoring the Windows 7 bootloader - performing actions to restore the operating system after problems occur when loading Windows. Due to a system failure, the user may lose data and personal files located on the computer.

At one point in time, the operating system will not be able to boot on the computer. Various messages (not always in Russian) appear on the screen, indicating a problem loading Windows.

The main causes of problems with the Windows 7 bootloader:

  • user actions: attempt to use hidden system partitions, incorrect changes to boot files using EasyBCD, etc.;
  • system failure;
  • exposure to malicious software;
  • the appearance of bad blocks on the computer’s hard drive;
  • operating systems are installed on the computer in the wrong order;
  • hardware problems.

The problem with the bootloader must be solved, otherwise you will not be able to use Windows, because the system will not start on the computer. Problems can be resolved in a radical way: again on the PC.

If there is one created by the system tool, or using third party programs you need to restore from backup Windows image created in advance. Many users, unfortunately, do not remove due attention backup systems, so these methods will not suit them.

How to restore Windows 7 bootloader? To restore operating system boot files, use the built-in using Windows: automatic startup recovery, as well as using the BootRec and BCDboot utilities included in the operating system, launched on the command line.

Before using operating system tools, you need to know the markup hard drive. Modern computers have style hard marking GPT disk and a new BIOS - UEFI, and in Windows times 7, the disks used MBR partitioning and now an outdated BIOS. On some computers, Windows 7 64-bit is installed on UEFI and GPT drives, and in general, Windows 7 PCs use MBR (Master Boot Record) partitioning.

In this article, we will look at instructions on how to restore the bootloader in Windows 7 using system tools: first, we will perform an automatic recovery, and then we will try to restore the bootloader from the command line.

To perform bootloader recovery operations, you will need either an installation DVD with the operating system, or a bootable Windows flash drive 7. Bootable media are needed to be able to load the Windows RE recovery environment on a personal computer ( Windows Recovery Environment), with which you can try to solve the problem with the inability to start the system.

Perform Windows 7 recovery automatically using the system tool

The easiest way: automatic recovery of the boot partition on the hard drive using the operating system. This action occurs without user intervention, you just need to boot on the computer with boot disk.

Immediately after starting the computer, use the keyboard keys to enter the Boot Menu to select external device For loading: DVD disc or USB flash drives. Which keys to press depends on the hardware manufacturer, check this in advance. Another way: you can enter the BIOS and set the boot priority from the connected device there: USB storage or DVD disc.

In this example, I am using a Windows 7 installation disk, all actions with bootable flash drive are performed in a similar way.

In the first window of the Windows Setup program, click on the “Next” button.

In the window asking you to start installing the operating system on your computer, in the lower left corner click on “System Restore”.

In the “System Recovery Options” window that opens, a search will begin. installed systems.

After a while, a message will appear stating that problems have been detected in the computer's boot settings.

Click on "Details" to view a description of the fix.

To run automatic troubleshooting of system boot problems, click on the “Fix and restart” button.

After restoring the bootloader, the operating system Windows system 7 will boot on your computer again.

Automatic troubleshooting using system tools can be started a little differently:

  1. In the "System Recovery Options" window, enable the option "Use recovery tools to fix problems when Windows startup. Select the operating system to restore" and then click on the "Next" button.

  1. In the window for selecting recovery tools, click on “Startup Recovery”.

  1. Wait for the operation to automatically resolve problems that are preventing the system from starting to complete.

If the problem is not automatically resolved, go to in the following ways, in which the user will have to manually enter commands into the Windows command line.

Restoring the Windows 7 bootloader using the Bootrec utility

The next method involves restoring the Windows 7 boot loader via the command line. For this we use the Bootrec.exe utility. This method only works with disks that have a Master Boot Record (MBR).

From the boot disk you need to enter the Windows Recovery Environment using the method described above.

In the System Recovery Options window, click on the Command Prompt option.

The Bootrec.exe utility uses the following basic commands:

  • FixMbr - The option writes the master boot record (MBR) to the system partition of the disk, compatible with Windows 7, does not overwrite the existing partition table
  • FixBoot - using the command, a new boot sector that is compatible with Windows 7 is written to the system partition
  • ScanOS - searches all drives of installed Windows 7 compatible systems, displaying entries that are not in the system configuration store
  • RebuildBcd - searches all drives of installed Windows 7 compatible systems, selecting systems to add data to the boot configuration store

The FixMbr command is used to fix the master boot record, as well as to remove incorrect code from the master boot record.

The FixBoot command is used under the following conditions: the boot sector is damaged, the boot sector has been replaced with a non-standard boot sector, an earlier boot sector was installed on the Windows 7 computer Windows version(Windows XP or Windows Vista).

The ScanOS command searches all drives for operating systems compatible with Windows 7. As a result, all entries related to other operating systems installed on the computer that do not appear in the boot manager menu will be displayed.

The RebuildBcd command allows you to detect and add boot configurations installed on the system computer to the storage. This option is used to completely rebuild the system boot storage configuration.

In the command line interpreter window, enter the command (after entering commands in the command line, press the “Enter” key):

Bootrec/fixmbr

If the problem persists, you may need to enter the following command:

Bootrec /fixboot

The remaining commands are used if multiple operating systems are installed on the computer.

Close the Command Prompt, and in the System Recovery Options window, click the Restart button.

How to restore the Windows 7 bootloader from the command line using the BCDboot utility

Using the bcdboot.exe utility, you can restore the Windows 7 bootloader on computers with MBR or GPT hard disk partition styles.

Boot from the removable device, go to the window with the choice of system recovery method, and then launch the command line. Another option: in the very first window, press the “Shift” + “F10” keys on your keyboard to enter the command line window.

In the Command Prompt window, enter the command to launch the DiskPart utility:

Diskpart

To display information about your computer's drives, enter the following command:

List volume

We need to find out the drive letter (volume name) on which the operating system is installed.

The volume name (drive letter) in Diskpart may be different from the drive letter in Explorer. For example, in my case, in Explorer the system partition has the letter “C”, and in diskpart it is designated by the letter “E”.

To exit the diskpart utility, enter:

Bcdboot X:\windows

In this command: “X” is the drive letter on which the operating system is installed. In my case, it is the letter "E", you may have a different volume (disk) name.

Close the command prompt.

In the System Recovery Options window, click the button to restart your computer.

Conclusions of the article

If you have problems with the Windows 7 boot loader, you need to restore the system boot files by booting your computer from a Windows boot disk. You can restore damaged or missing files using operating system tools: automatic troubleshooting Windows downloads, using the Bootrec and BCDboot utilities, launched from the command line in the recovery environment.

Skills that will help the user restore the Windows 7 bootloader are necessary if the operating system does not start at all or a number of problems arise during the process of turning it on.

The operating system loader is a system program that is designed to start the OS.

In simple terms, this is a utility with which you turn on your computer.

With the advent of new versions of operating systems, bootloaders also improve. For example, Windows XP boots using UEFI.

Newer versions of the OS (starting from the seventh) use the BOOTMGR system utility during their boot process.

Types of bootloader problems

The most common cause for concern is the following errors:

  • When you try to start the system, messages called “Bootmgr is missing” and/or “Non system disk” appear. They occur as a result of damage to the bootloader or master boot record;
  • .
    In this case, it is necessary to restore the bootloader if a message from a hacker asking to send money for destroying the virus appears immediately after the user presses the start button personal computer or laptop;

Remember! If the operating system has already begun the startup process and errors began to appear only later, this does not indicate a problem with the bootloader. Try turning on the OS in safe mode and troubleshooting any problems (for example, virus software).

Before attempting to set up the boot loader, go to the BIOS and make sure that the system is set to the correct boot order for all hard drives.

If you have two installed on your computer at once hard drives The order in which they are launched is incorrect and problems with the bootloader may occur.

The first in line should be the disk on which the operating system to be launched is installed.

Automatic recovery using USB drive

You need to solve the problem starting with the easiest method.

If you are unable to fix the bootloader using the method below, try the following solution to the problem presented in the article.

To begin the process of solving the problem, take the disk from which the OS was installed.

If you don’t have one, you can restore without a disk - in this case, you need to create a bootable external usb media.

The version of the operating system located on the media must fully match that installed on the computer.

To perform automatic recovery from a flash drive or disk, follow these steps:

  • Insert the disk into the drive or flash drive into the slot. Start the computer and in the first few seconds press the F button on the keyboard. This way you will instantly launch the BIOS menu before a problem occurs.
    In the BIOS, change the boot order of the OS components - the disk or flash drive should come first (depending on which device with the OS image you connected to the computer).
    After the boot queue has been set, save all changes and exit the BIOS settings. The OS startup process will begin again, however, now it will boot directly from the image media. The following window will appear;

  • At the bottom of the window (Figure 2), find the OS recovery item and click on it. Now you need to select the OS that needs to be restored (if several systems are installed on the computer at the same time);

  • After you have decided on the name of the OS whose operation you want to fix, a window will appear with all the available operating system recovery options. To get started, select automatic troubleshooting.
    This method may help, but not in all cases. If the system still does not turn on after such an automatic fix, repeat steps 1-3 again and now select the second option (enabling a previously saved OS state).
    Wait until everything necessary actions will be carried out automatically by the program. If the system boots successfully, the problem is resolved. If not, you should restore it manually.

Restoring OS boot configuration data

OS startup configuration information contains detailed information about the order in which data should be loaded when the computer's operating system is turned on.

Often the OS bootloader fails to complete due to corrupted items in the Boot Configuration Data.

To fix the problem, you need to add new configuration data to the OS bootloader:

A complete configuration update can be performed using the rebuildbcd command.

To perform it, you need to open a command line window in the system recovery options (as in the figure above).

In the line, enter the text “bootrec.exe /rebuildbcd” (without quotes) and press the Enter button to execute the command. The update process may take several minutes.

After its completion, a line about the result of the command will appear in the utility window.

After restoring the data, you should turn off the computer, remove the disk with the OS image from it, configure the standard boot order in the BIOS and turn on the device again.

If all actions were done correctly, the system will start in standard mode.

If after executing the command you receive a system notification that the configuration could not be restored, you need to boot into safe mode.

To do this, enter the command bootrec.exe/safeboot at the command line - it allows you to start the operating system using a minimum number of drivers and third-party utilities that can cause an OS bootloader error.

To view and edit bootloader configuration parameters, run the BCDEdit.exe command:

Recovery using Bootrec utility

If the above methods for restoring the OS do not work, you need to try to fix the bootloader using system utility called bootrec.

Go to the command line (second instruction of the article) and enter the following command in it:

bootrec/fixmbr– this command allows you to instantly rewrite the bootloader data in the corresponding partition on the hard drive.

Now enter the command bootrec /fixboot to write a new partition for later booting.

The command line window after successfully entering and executing the commands should look like this:

Close the command line, exit the recovery environment, return the boot queue to the BIOS and turn on the OS in the usual way, everything should work fine.

Restarting Windows 7 boot after installing XP

If two versions of Windows OS are installed on your PC at the same time: XP and the seventh version, in most cases a failure will occur when you try to run more than new version systems.

This happens because the XP boot loader does not assume that there are any other boot loaders in the system, so it does not allow you to select and run another OS installed on the computer.

To fix the problem, just return the boot selection using the MultiBoot utility - this is a small program that effectively eliminates the problem of bootloader conflict.

Install the application on your computer and follow the instructions:

  1. Check all the necessary boxes in the main window of the utility;
  2. Click on the “Run” button;
  3. Once the process is complete, restart your computer.

Restoring the windows bootloader.

In this video you will learn about restoring the windows bootloader. If you installed windows 7 on a computer where windows xp was already installed, then xp will stop loading.