How to set up smartphones and PCs. Informational portal
  • home
  • Windows 7, XP
  • Repair windows 7 boot entry. Adding a Windows XP boot entry to the boot menu and store

Repair windows 7 boot entry. Adding a Windows XP boot entry to the boot menu and store

Need good advice how to produce Windows 7 bootloader recovery if the startup recovery using the installation disk of the seven did not help. I’ll briefly explain what’s the matter: Windows 7 was first installed on the computer, then Windows XP was needed as the second system, after installation it naturally started alone, I used the EasyBCD program to load two operating systems. In the future, XP became unnecessary and I formatted the partition on which it was located from Windows 7. Now, when loading, there is nothing but a black screen. What can be done in this case? More details if possible. Sergei.

Windows 7 bootloader recovery

Hello friends! Most importantly, do not worry, your problem is simple and, in principle, the simple tool "Windows 7 Startup Repair" described in our article should help, but! If this article does not help you, then two others should help:

These articles describe a few more good ways restore the boot of your operating system, besides them there is one more, so try it and just don't give up.

Let me remind you that you cannot install an older operating system after a younger one, Windows 7 will in no case boot after installation on a Windows XP computer, since the latter overwrites the master boot record (MBR) on itself during installation. So you set additional manager boot, which is used to configure the boot of several operating systems and has its own bootloader in turn.

  1. I also want to say that often in unsuccessful Windows boot 7 Blame Mistakes file system, you can fix them even when the operating system does not boot, all the details in our other article " "
  2. Friends, in this article we will work with the environment Windows recovery 7, or more precisely with the command line of the recovery environment. I will give you the necessary commands, but if it is difficult for you to remember them, you can. This will greatly facilitate your work.
  • The Master Boot Record (MBR) is the first sector on the hard disk, which contains the partition table and a small bootloader program that reads data in this table from which partition of the hard disk to boot the OS, in further information is transferred to the section with the installed operating system to download it. If in the main boot record there is incorrect information about the location of the system, which means we will get different errors during boot, here is one of them "BOOTMGR is missing press CTR-Alt-Del for restart" or we will observe a black screen. The problem is being fixed Windows 7 bootloader recovery.

When you uninstalled old XP along with EasyBCD, you left your computer to fend for itself with a boot record that it did not understand, and it gives you a black screen as a token of gratitude. To remedy the situation, we will boot recovery Windows 7, namely, we will overwrite the master boot record using the utility Bootrec.exelocated on the recovery disk or on the Windows 7 installation disk (friends, if you have a netbook and want to use the recovery environment located on a USB flash drive, then read the comments first). Also with this utility we will write a new boot sector understood by Windows 7.

Windows 7 Boot Repair Automatically

Boot from the recovery disk or installation disk with Windows 7, in initial phase booting the computer, when prompted to boot from the disk "Press any key to boot from CD ...", press any key on the keyboard for 5 seconds, otherwise you will not boot from the disk

There is a short search installed systems Windows and analysis of problems preventing them from loading

Usually problems are found quickly and the recovery environment offers to fix them automatically. Click on the "Fix and restart" button, after which the computer will restart and the Windows 7 boot will be restored.

If the system boot problems continue or you are not prompted to fix the problems automatically, then in this window you need to select the operating system that you want to restore, you most likely have one and Next.

Choose a tool firstLaunch Recovery, it can also solve problems with loading Windows 7

Restoring the Windows 7 bootloader manually

If this remedy does not help, choose the remedy Command line

We enter the commands:

diskpart

lis vol (we display a list of hard disk partitions and see that "Volume 1" is a hidden partition System Reserved(Reserved by the system), the volume is 100 MB, it should contain the Windows 7 download files and it should be made active). We also see a section with installed Windows 7, it has the letter D:, the volume is 60 GB.

sel vol 1 (select Volume 1)

activ (make it active)

exit (exit diskpart)

bcdboot D:\Windows (where D: is the partition with Windows 7 installed), given command restores Windows 7 boot files (bootmgr file and boot storage (BCD) configuration files)!

"Download files created successfully"

Restoring the Windows 7 bootloader manually (method number 2)

In the window command line enter the command Bootrec and Enter

coming out full information about the possibilities of the utility. Select the MBR entry Bootrec.exe /FixMbr .

Operation completed successfully. To the first sector boot partition a new boot record has been written.
The second command Bootrec.exe /FixBoot writes a new boot sector.

Operation completed successfully. exit. Next, we try to load our Windows 7.


Friends, if the Bootrec.exe /FixMbr and Bootrec.exe /Fixboot commands do not help you, do not despair, there is one more tool.

Method number 3

We enter the command Bootrec /ScanOs, it will scan all your hard drives and partitions for the presence of operating systems, and if such are found, an appropriate warning will be issued. Then you need to enter the command Bootrec.exe /RebuildBcd, this utility will offer to add the found Windows to the boot menu, agree and enter Y and press Enter, all the Windows found are added to the boot menu.

In my case, two operating systems were found. Everything is visible on the screenshot.

In addition to the above method, there is another one, enter bootsect /NT60 SYS on the command line, the main boot code will also be updated.

exit

So, the mistake is that on both of us hard drives the first hidden partitions System Reserved should be marked with a red flag. On Windows 7, the volume of such a partition is 100 MB, and on Windows 8 350 MB, these partitions have the following attributes: System. Active and it is on these partitions that the boot storage configuration (BCD) files and the system boot manager file (the bootmgr file) reside. And we get these attributes are other sections. Because of this, Windows 7 and Windows 8 won't boot.

Choose the first HDD 1, click on the first System section Reserved (Reserved by the system) with the right mouse button and select "Mark as active"

The "System Reserved" volume will be marked as active. We press OK.

We do the same with Disk 2. Acronis Software Disk Director works in pending operation mode, for the changes to take effect, click the "Apply pending operations" button

Proceed.

As you can see, after our changes, those sections that you need have become active.

Exit the program and reboot. The result of the work is positive - both operating systems are loaded in turn.

In spite of great amount built-in security measures, an abundance of multifunctional antiviruses and firewalls, the Windows bootloader can be damaged. This makes it impossible to start the operating system. If at startup you see a black screen for a long time without any visible changes or the inscription "bootmgr is missing" - you have become a victim of this particular problem. In this case, repairing the startup of Windows 7 can help.

Bootmgr- special program, called the Windows Startup Manager. It is to her that he conveys BIOS management after component health checks and hard drive. The manager reads information from the first sector of the disk and finds all the necessary data to start the OS, after which the process of starting the system itself begins.

Causes of breakdown

Most common cause damage to the Windows bootloader - infection of the computer with viruses. In the process of active surfing on the expanses of the Internet, as well as installing a variety of free software downloaded from dubious sources, the user can inadvertently download malware, which will change or remove part of the Bootmgr bootloader.

A similar result may occur due to power outages during operation of the device or an incorrect change in the boot hard disk. Therefore, never turn off the computer by unplugging the power cord or using the power supply shutdown button.

Windows recovery

Implement this procedure you can use the installation disk or bootable flash drive. There are many ways to create a flash drive. One of the simplest is with special utilities, like UNetBootIn or UltraISO. Burn the Windows 7 image to media, restart the computer and follow the instructions:

After this procedure, try restarting your computer and check the result. If the system still does not boot, try again to go to the options menu and select the "System Restore" item there. This process more complex and take longer, but may help solve the problem.

The bootloader is called special program responsible for starting the OS. Damage Windows components, inaccurate user actions, computer failure - all this can lead to disruption of its operation.

Possible Bootloader Issues and How to Fix Them

The two most common errors are related to Windows bootloader 7: the first - Bootmgr is missing, and the second - Non system disc. Their appearance indicates that the computer settings or system components are damaged.

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

Any of these problems require repair Windows bootloader. Otherwise, the use of 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 belongs to the second group, go to the second method.

When starting the PC, the first image has a text prompt 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 be in the first place. If this is not the case, install the correct device. Then exit and save changes.

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

Method 2: System image media

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

Recovery instructions:


Menu BIOS may differ depending on which motherboard connected to the computer and what version of its firmware. If you could not find the item responsible for the boot 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 persist, so it is likely reactivation not required. The first time you start the OS after following the steps above, it may take longer than it used to. The computer will adjust its configuration according to the changes made. Subsequent downloads will proceed normally.

Method 3: Bootrec utility

To get started, try the troubleshooting options above. If they did not work, or their use becomes impossible, then proceed to this paragraph.

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

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

bootrec /fixboot

This special teams to fix the bootloader. The first overwrites its data, and the second makes a bootable partition on the hard drive.

Then you need to remove the command line window, cancel the OS recovery and restart the computer. It remains only 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 just remove the USB stick or optical disc from a computer.

The Windows 7 bootloader stops working for many reasons - if boot.ini is damaged or if you try to install XP along with the Seven, after which the latter does not want to boot. This is due to XP overwriting the boot entry. MBR Windows 7. Windows 7 bootloader recovery is usually carried out standard means systems. You can also use another tool, such as Bootice.

The easiest way to restore the bootloader

If pressing F8 does not open additional ways launcher and troubleshooter, you will need to use a Windows 7 recovery disc or flash drive. From this drive, you will need to boot your computer into the recovery environment by clicking on the system restore link at the bottom of the OS installation window.

  1. The computer will automatically try to find a solution to the problem, which will notify you in the window that opens.
  2. If the recovery utility is up to the task, all that remains is to reboot.

If it was not possible to restore the Windows 7 bootloader after XP, use the startup repair tool, which, along with others, is part of the installation disk or flash drive. Usually these simple ways can handle simple MBR startup problems.

Edit boot.ini

Boot.ini is responsible for starting the system by default. At incorrect installation or deleting one of the OS, its non-working entry will be stored in the same boot.ini. It is located at the root of the system partition, so to edit it, the computer must be configured to show hidden files.

Sometimes boot.ini can be corrupted by a virus or some program could contribute to it, after which the OS does not start on its own.

The fix is ​​simple - boot from the LiveCD and edit boot.ini with regular notepad. There are only two sections here - boot loader, which controls the boot and operating systems. You should remember the value of several parameters:

  • timeout=10 - time in seconds during which the user can select an OS to run;
  • multi(0) and disk(0) are parameters that must have zero values;
  • rdisk(0) - disk number with the system partition (counted from zero).

In general, boot.ini from one OS should look like the one in the picture.

Using the command line to restore the MBR sector

You can get into command line mode from the same boot disk or flash drives by opening the system restore tool and selecting the very last item "Command Prompt".

  1. Type the Bootrec command and then press Enter, it will appear full list opportunities
  2. Write down the MBR sector, for which there is the Bootrec.exe /FixMbr command;
  3. On the successful completion of the operation after pressing Enter the computer will notify the user in the next line;
  4. Next, carry out the procedure for writing a new boot sector, for which enter Bootrec.exe /FixBoot;
  5. It remains only to enter Exit and try to restart the computer.
  1. Enter the command line from the installation disk or flash drive;
  2. Enter Bootrec /ScanOs, after which the utility will scan the computer for an operating system;
  3. Write to next line the Bootrec.exe /RebuildBcd command, the program will prompt you to add all found versions of Windows to the start menu, including XP, etc .;
  4. It remains to agree with this by pressing Y and Enter in sequence, after which, when the system boots, you will have a choice of which OS to boot - XP or the seven.

You can fix the problem with the MBR with one more command. To do this, at the command line, enter bootsect /NT60 SYS, then Enter. Enter Exit to exit. As a result, the master boot code will be updated and your systems will appear in the list during boot.

In case of serious problems, it may not be possible to restore the MBR using the described methods, so you should try overwriting the files in the boot storage.

BOOTMGR is missing

The computer usually displays such a message on a black screen when the computer is damaged or removed. MBR sectors. The reason may not be related to the MBR, for example, if the BIOS has lost the Boot tab settings and the system is trying to boot from the wrong disk. But more often it is the bootloader that is to blame, so we will describe how to restore Windows 7 boot.

The Windows 7 drive always has a small 100MB reserved hidden section, for recording boot files OS, including corrupted BOOTMGR. You can just copy BOOTMGR from installation media and write in this section. For this:

  1. Go to the command line from the recovery disk.
  2. Enter sequentially diskpart commands and list volume, after which a list of your disks and the letters that the system assigned to each of them will appear on the screen. We are interested in a 100 MB reserved partition and optical drive- disks C and F, respectively, as in the picture.
  3. To exit, type Exit and press Enter.

Type the letter of the installation drive followed by a colon and the command to copy bootmrg to the reserved partition. It will look like this:

  • F: and then Enter;
  • copy bootmgr C:\ and press Enter;
  • Exit, the utility will exit.

If copying to the hidden partition fails, the download store can be completely overwritten. Restoring the Windows 7 bootloader is done with the bcdboot.exe N:\Windows command, where N is the drive letter with the OS. After you are informed that the files were created successfully, you can exit the tool with the Exit command and restart your computer.

  • write the diskpart line on the command line, which calls the utility;
  • to list all available physical disks write list disk;
  • is chosen desired disk sel disk 0 command, where 0 is the number of the only installed HDD;
  • to display all partitions of the hard drive, enter list partition;
  • to select a reserved partition, write the sel part 1 command, where 1 is the partition number;
  • make it active by typing active;
  • Exit the application by writing exit.

In extreme cases, you can completely manually delete and format the system partition by starting from some LiveCD, and then using the bcdboot.exe command to create the sector again.

Using Bootice

If Windows XP was installed after the "Seven", due to the overwritten MBR sector, only XP starts up and you do not have the opportunity to select a system after you turn on the computer. However, both systems are fully operational, and you can return the start menu very easily, for which the Bootice utility is used:


In the new Bootice window on the left you will see the OS boot list, in which you will need to add the missing "Seven" to Windows XP:

  • click "Add";
  • in the list that opens, select the line new entry Windows 7;
  • in right side in the upper input field, select the hard drive;
  • in the field below, indicate the section with the "Seven";
  • click on save basic settings.

The program will notify you of a successful change given element in Boot and from Bootice it will be possible to exit. The next time you turn on your computer, you can already choose which OS to boot from your hard drive - Windows 7 or XP.

Complain about content


  • Copyright infringement Spam Invalid content Broken links


  • send

    Restoring the Windows 7 bootloader - performing actions to restore the operating system to working capacity after problems occur when loading Windows. Due to a system failure, the user may lose data, 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 appear on the screen (not always in Russian), which indicate a problem with loading Windows.

    The main causes of problems with the Windows 7 bootloader:

    • user actions: an 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 hard drive of the computer;
    • operating systems installed on the computer in the wrong order;
    • hardware problems.

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

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

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

    Before using the operating system tools, you need to know the layout of the hard disk. Modern computers have style markup hard GPT disk And new BIOS- UEFI, and in Windows times 7, the discs used MBR layout, and the now obsolete BIOS. On some computers, Windows 7 64-bit is installed on UEFI and GPT disks, 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. system means: First we will perform an automatic repair, and then we will try to restore the bootloader from the command line.

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

    Performing Windows 7 Recovery Automatically by System Tool

    The easiest way: automatic recovery of the boot partition on the hard drive using the operating system. This action takes place without user intervention, it is only necessary to boot on the computer from the boot disk.

    Immediately after starting the computer, using the keyboard keys, you need to enter boot menu (boot menu) to select external device For loading: DVD disc or USB flash drives. Which keys to press depends on the equipment manufacturer, check this in advance. Another way: you can enter the BIOS and set the boot priority from the connected device there: USB drive or DVD disc.

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

    In the first window of the program Windows installation click on the "Next" button.

    In the window prompting 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 for installed systems will start.

    After a while, a message appears stating that problems have been found in the computer's boot options.

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

    To start the automatic troubleshooting of system boot problems, click on the "Fix and restart" button.

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

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

    1. In the "System Recovery Options" window, activate 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 choosing recovery tools, click on "Startup Repair".

    1. Wait until the end of the operation to automatically fix problems that prevent the system from starting.

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

    Restoring the Windows 7 bootloader using the Bootrec utility

    The next method involves restoring the Windows 7 bootloader via the command line. To do this, we use the Bootrec.exe utility. This method only works with disks that have a master boot MBR entry.

    From the boot disk, you need to enter the Windows Recovery Environment as described above.

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

    The Bootrec.exe utility uses the following basic commands:

    • FixMbr - This option writes the Master Boot Record (MBR) to system partition disk compatible with Windows 7, existing table partitions are not overwritten
    • FixBoot - using the command, a new boot sector is written to the system partition, which is compatible with Windows 7
    • ScanOS - searches all drives of installed systems that are compatible with Windows 7, displays entries that are not in the system configuration store
    • RebuildBcd - searches all disks of installed systems that are compatible with Windows 7, select systems to add data to the boot configuration store

    The FixMbr command is used to fix the master boot record and to remove bad code from the master boot record.

    The FixBoot command is used under the following conditions: the boot sector is corrupted, the boot sector has been replaced with a non-standard boot sector, more than early version Windows (Windows XP or Windows Vista).

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

    The RebuildBcd command allows you to discover and add to the repository the boot configurations installed on the system machine. The parameter is used to completely rebuild the system boot storage configuration.

    In the command line interpreter window, enter the command (after entering commands on the command line, press the "Enter" key):

    Bootrec /fixmbr

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

    Bootrec /fixboot

    The rest of the commands apply if the computer has more than one operating system.

    Close the command prompt, and in the "System Recovery Options" window, click on the "Restart" button.

    How to repair the Windows 7 bootloader command line using the BCDboot utility

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

    Boot from a removable device, go all the way to the window with the choice of the method of restoring the system, 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 run the DiskPart utility:

    diskpart

    To display information about the disks on your computer, type 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 marked with the letter "E".

    To exit the diskpart utility, type:

    bcdbootX:\windows

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

    Close Command Prompt.

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

    Article Conclusions

    If you encounter problems with the Windows 7 bootloader, you must restore the system boot files by booting your computer from a bootable Windows disk. You can restore damaged or missing files using the operating system tools: automatic elimination malfunctions Windows downloads using the Bootrec and BCDboot utilities run from the command line in the recovery environment.

    Top Related Articles