• Windows 7 boot partition

    Hello dear readers.

    Sometimes, as a result of various actions, it may happen that the computer refuses to enter the operating system. And in some cases, this is due to a malfunction of an important tool. The solution is to restore the Windows 7 bootloader.

    There are several main signs indicating the need to “return to life” the corresponding element of the operating system:

    Bootrec( )

    To return your computer to working condition, you need to perform a number of steps. In addition, for the procedure we will need Windows installation files. So we can’t cope with the corresponding data without a disk. We do the following:


    This command will show all the possible parameters it works with.

    Description of Bootrec keys( )

    Teams in the environment cmd.exe can be launched in the standard version, or with special additions. So, for example, if you write “ bootrec.exe /FixMbr", the program writes a boot record to the main partition. Moreover, the latter is compatible with Windows 7 and Vista. This will help restore the functionality of the device. In addition, you can resort to this trick if there is a need to remove non-standard code in the corresponding segment. However, the existing partition table remains the same.

    If you use the key " /FixBoot", the program writes a new boot sector. It is also compatible with the above operating systems from Microsoft. This option is used in several cases:

      The boot file has been replaced with a non-standard one.

      It's damaged.

      After the seventh version or Vista, the previous build was posted. For example, after installing XP, the Windows NT bootloader is used.

    Interesting to know! The same effect can be achieved by using the program " bootsect.exe" It is also on disk. To do this, we write “ bootsect /NT60 SYS" A boot sector that is compatible with "" will appear. For detailed information, you need to run the utility with the key " /help».

    When writing " bootrec.exe /ScanOs", the application scans all available disks for OS 7 and Vista. As a result, users receive a list of all systems found, even those not registered in the boot data storage.

    Using the key " /RebuildBcd"will start scanning all disks for installed operating systems. A list is compiled from which they can be added to the storage. In addition, this command will allow you to rebuild the database. However, before doing this, you definitely need to delete past data.

    The above utility has wide functionality. But it will not help if the system startup file is missing. In this case, you need to resort to another tool.

    It is worth noting that it works automatically. That is, users only need to get to certain tools, enter a command, and everything will be done independently - there is no need to do anything during the process itself.

    BCDboot( )

    This tool is designed to create or repair a bootloader located on the main partition. The program also allows you to transfer files between hard drives. Even if the system is not visible on the latter.

    To get started, just type “ bcdboot.exe C:\windows" The operation recovers damaged data, including storage files.

    The process has several parameters:

      Source – the location of the directory in which the Windows distribution is located. In our case, this is a plastic disk or USB flash drive. This parameter is required. The rest are indicated as necessary.

      « /I» — sets the environment language. If left unchanged, English is used.

      « /s"—indicates the drive letter where the required files will be placed. By default, this is the location that is set by the BIOS or the new system - UEFI.

      « /v"—the detailed work accounting mode starts.

      « /m» - combining the parameters of an existing record and a newly created one. All this is written to a new boot area.

    Returning after using Linux( )

    It’s worth imagining a situation where you previously had an operating system from Microsoft. And after installing Linux, the first one suddenly stopped starting. This happened as a result of some errors.

    If Windows doesn't work for you after installing Ubuntu, don't panic right away. The problem can be solved simply.

    dd if=/dev/sda2 of=/linux.boot bs=512 count=1

    The code above allows you to copy the boot sector from the " sda2" in linux.boot.

    It is worth noting that in this operating system the root element “ / " If this is not the case in your personal situation, first you need to find out which of the existing areas is bootable.

    The entry was copied to the user's folder. Therefore, we go to the appropriate directory and transfer the file to the partition where Windows is already installed.

    The result will be " Command line", in which we write only two lines and after each click " Enter»:
    Bootrec.exe /FixMbr
    Bootrec.exe /FixBoot
    After that, we restart the device and see how everything works in our OS.

    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 reasons for problems with the Windows 7 boot loader:

    • 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 a system tool, or using third-party programs, you need to restore from a Windows backup image created in advance. Many users, unfortunately, do not pay enough attention to system backup, so these methods will not work for them.

    How to restore 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 included in the operating system, launched on the command line.

    Before using operating system tools, you need to know the hard drive layout. Modern computers have a GPT hard drive layout style and a new BIOS - UEFI, but in the days of Windows 7, MBR partitioning was used on disks, 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 operations to restore the boot loader, you will need either an installation DVD with the operating system, or a bootable USB flash drive of Windows 7. Bootable media is needed to be able to load the Windows RE (Windows Recovery Environment) recovery environment on a personal computer, with which you can try to solve 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 onto the computer from the boot disk.

    Immediately after starting the computer, using the keyboard keys you need to enter the Boot Menu to select an external device to boot: a DVD drive or a USB flash drive. 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: a USB drive or a DVD drive.

    In this example, I am using a Windows 7 installation disk; all actions from a bootable USB 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 for installed systems will begin.

    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 system boot troubleshooting, click on the “Fix and restart” button.

    After restoring the bootloader, the Windows 7 operating system will boot onto the 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 help fix problems starting Windows. 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, then move on to the following methods, in which the user will have to manually enter commands in the Windows Command Prompt.

    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 disk partition, 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, or an earlier version of Windows (Windows XP or Windows Vista) was installed on the Windows 7 computer.

    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 of Windows boot problems, using the Bootrec and BCDboot utilities, launched from the command line in the recovery environment.

    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 text make inexperienced users feel despondent, making them want to immediately format the C:\ drive and install a 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. People who know English can easily translate “The download manager is missing, press Ctrl+Alt+Delete to restart.”

    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 (Windows installation disk). 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 entry 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 Windows bootloader using this method, 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.”

    A Windows 7 recovery disc is needed if serious problems occur in the operating system. If Windows boots, the user can enter the Windows RE recovery environment directly from the operating system to troubleshoot problems with the computer.

    In the recovery environment, the user performs the necessary actions to restore the computer to normal operating condition, depending on the nature of the malfunctions and failures that have occurred in the operating system.

    What to do in a situation where the system refuses to boot at all? In this case, the Windows 7 recovery disk will help solve the problem (of course, if it is solvable).

    After turning on the computer, you need to enter the BIOS in order to set the boot priority from an optical drive (CD/DVD) or from a bootable flash drive (USB flash drive). Alternatively, go to the Boot Menu to select the drive you want to boot from. After booting, the user needs to restore Windows 7 from the disk by performing certain actions.

    To restore system settings if Windows 7 cannot be started, there are two options for downloading the recovery environment:

    • Using a Windows recovery disk (CD/DVD disk or bootable USB flash drive).
    • Using a Windows installation disk (DVD or bootable USB flash drive with the operating system).

    In the first case, the user creates a system recovery disk in advance, from which, after loading this disk, the recovery environment is launched.

    In the second case, an installation DVD or bootable flash drive with an operating system distribution is used (a disk or flash drive with Windows 7 is required).

    In both cases, the user can perform the necessary steps to restore the system:

    • Restore system startup - automatic solution to problems related to the Windows boot loader.
    • Restore Windows using restore points - restore the state of Windows to the date the restore point was created.
    • Run system image recovery - restore the system from a system image created earlier using the function.
    • Perform some other technological operations to solve problems with the computer - memory diagnostics, launching the command line.

    If the Windows boot loader is damaged, the system repairs it, making it possible to start the operating system.

    A fairly simple way to solve problems with the system: perform a system restore using previously created ones, provided that the function for creating restore points has not been disabled on the computer.

    System image recovery involves restoring an image of the entire system disk with Windows OS, with installed programs, user data, from a previously made backup copy of the disk image created using the Windows 7 archiving and backup tool.

    If necessary, you can run memory diagnostics for errors, or open a command prompt window to run the necessary commands.

    You can create a Windows installation disk yourself. The image of the Windows 7 operating system must be burned to a DVD using a disc burning program, or create a bootable USB flash drive.

    When creating a recovery disk in Windows 7 using the standard system tool, one nuance is revealed: by default, the recovery disk can only be written to a CD/DVD disk.

    What should those who do not have a disk drive on their computers (especially laptops) do? You can bypass this limitation and create a Windows 7 recovery disk on a flash drive.

    How to create a Windows 7 system repair disc

    The process of creating a recovery disc on a CD or DVD disc takes place in several successive steps:

    1. Go to the Start menu.
    2. Follow the path: “All programs” => “Maintenance” =>
    3. In the “Create a system repair disc” window, select a device for reading CD/DVD discs.
    4. Insert a blank laser disc into the optical drive.
    5. Click on the "Create Disk" button.
    1. Next, the disc creation process will begin.
    2. When the disc is burned, the tool will inform you that a system recovery disc has been created.

    1. The window that opens provides information about the name of the recovery disk.
    2. Click on the "Close" button.

    1. In the “Create a recovery disk” window, click on the “OK” button.

    The Windows 7 recovery disc is ready for further use.

    How to create a Windows 7 recovery disk on a flash drive

    It is not possible to create a Windows 7 recovery disk on a flash drive using a standard tool, because it does not initially provide support for a USB drive. But owners of laptops that do not have a disk drive can bypass this limitation.

    Please note that there are articles on the Internet describing the creation of a Windows 7 recovery disk on a flash drive, in which the image is first created on a physical optical disk and then transferred to a flash drive. But I have one question: “How can a user first burn a recovery disk to a CD or DVD if the computer does not have a disk drive?” It turns out that such articles are divorced from practice.

    We will need an emulator program to create virtual record drives. This is a must. I was interested in the possibility of creating a Windows 7 recovery disk on a flash drive, so in the process of writing this article, I spent several hours testing similar programs until I found a working application for this method.

    The Phantom Drive program (you can find a program with a crack on the Internet) successfully completed the task.

    To create a Windows 7 recovery disk on a flash drive, you must follow these steps:

    1. A system recovery disk is created in the burner drive emulator.
    2. A bootable USB flash drive is then created for the recovery drive.
    3. The contents of the recovery disk are copied from the optical disk emulator to the bootable USB flash drive.

    First step: First you need to burn the recovery disk to the virtual Phantom Drive:

    1. Launch the Phantom Drive program.
    2. In the start window of the program, select the task: “Create. Create a new blank disk."
    3. In the “Phantom Drive – Create” window, in the “Create as” setting, select the disc type (I chose DVD-RW), click on the “Create” button.

    1. After that, in the Explorer window, the inserted virtual optical disk will be displayed in the virtual drive.

    1. Follow the path: “Start” menu => “Maintenance” => “Create a system repair disk.”
    2. In the “Create a system recovery disk” window, select the virtual drive and click the “Create disk” button.

    1. Next is the process of creating a recovery disk; upon completion, close the system tool windows.

    Second stage: creating a bootable USB flash drive using the command line.

    1. Insert the flash drive into the USB connector of the computer.
    2. Go to the “Start” menu => “Accessories” “Command Prompt”.
    3. Launch the command prompt as an administrator, enter the following commands sequentially (after entering the command, you must press the “Enter” key to execute the command):
    Diskpart list disk
    1. The command line interpreter window will display all drives connected to the computer. Identify the USB flash drive among the computer disks, based on the size of the USB flash drive. From this image it is clear that the flash drive is named “Disk 1” (you may have a different drive number, depending on the number of connected drives).
    2. Select the drive, in this case "Disk 1".
    select disk 1
    1. Next, you need to enter the following commands, which will result in clearing the flash drive of data, creating partitions, selecting a partition, marking the partition, formatting the partition in FAT32, assigning a drive letter, and shutting down the DiskPart utility.
    2. In the command line interpreter, run the following commands in sequence:
    clean create partition primary select partition 1 active format fs=FAT32 QUICK assign exit
    1. After DiskPart is finished, close the Command Prompt. The bootable USB flash drive has been created.

    Open an Explorer window and give the bootable flash drive a meaningful name.

    1. Open the Phantom Drive start window, select the “Image” task. Insert existing image."
    2. Right-click on the drive with the recovery disk and select “Open” from the context menu.
    3. The Explorer window will display all the files on the disk.

    1. Copy the contents of the disk from the Explorer window to the bootable USB flash drive.

    That's it, now, in the event of an emergency, you can boot from the Windows 7 system recovery disk using a bootable USB flash drive.

    If you don't want to mess with the command line, use the UltraISO program. The procedure is as follows:

    1. After burning the disc using the virtual drive, open the image in Phantom Drive.
    2. Insert the flash drive into the computer's USB port.
    3. Launch the UltraISO program.
    4. Go to the "File" menu, select "Open CD/DVD...".
    5. Select the image mounted in the virtual drive.
    6. Next, go to the “Boot” menu, select “Burn Hard Disk Image...”.
    7. Create a bootable USB flash drive with a system recovery disk according to the article.

    Running a system restore from a Windows 7 recovery disc

    Boot your computer using the Windows 7 recovery disc. Next, follow these steps:

    1. Immediately after booting from the recovery disk, in the “System Recovery Options” window, select the keyboard input language, and then click on the “Next” button.

    1. Next, the recovery tool will search for installed Windows systems.
    2. In the Recovery Options window, select your operating system (if there is more than one). By default, standard recovery tools are used.
    3. If you need to start recovery using a backup system image, activate the “Restore your computer using a previously created system image” option.
    4. Click on the "Next" button.

    1. Then select one of the suggested recovery environment tools:
    • Startup recovery.
    • System Restore.
    • Restoring the system image.
    • Windows memory diagnostics.
    • Command line.

    1. Depending on the tool you choose, take the necessary steps to restore the operating system to a working state.

    Restoring Windows 7 from an installation disk

    Restoring Windows 7 from the installation disk is the best option for system recovery. The advantage is that from the installation disk or flash drive, in addition to recovery, you can install the operating system on your computer.

    To run the Windows 7 recovery tool, you need to boot your computer from a bootable USB flash drive or DVD with the operating system.

    After loading it starts.

    In the “Windows Installation” window, agree to select the Russian language, click on the “Next” button.

    In the next window, in the lower left corner, click on “System Restore”.

    Conclusions of the article

    The user can burn a Windows 7 recovery disk to a CD/DVD disk or flash drive for use in case of problems with the system. In another way, the recovery environment is launched directly from a bootable USB flash drive or installation disk with Windows 7, having first booted from removable media.

    Creating a Windows 7 recovery disk on a flash drive (video)

    Using a laptop or desktop PC on the Windows 7 operating system, users often encounter problems loading it, system freezes or a “blue screen”. The main causes of these problems can be viruses, deletion of system files and low-quality software. To solve these problems, it is enough to use system restore points.

    These restore points are designed to restore the OS to the point in time when it was worked stably. Each restore point is created automatically when there are some changes in the system. For example, when installing a driver or software.

    In this material we will pay special attention command line, with which we will restore Windows 7. By restoring the OS through the console, you will significantly speed up the process. Our article will be of particular interest to novice system administrators and advanced PC users.

    Running System Restore in the console when the OS boots normally

    If in Windows 7 after loading there is unstable operation, programs do not open, system components freeze and do not work, then in this case you need to roll back to the previous saved point. Let's launch the console as Administrator. To do this, go to the menu “ Start" and in the search we will type " CMD" Then right-click on the result found and select “ Run as administrator».

    After these steps, the console will start in Administrator mode. In the running console window, enter the command rstrui.exe

    After executing the command, the System Restore Wizard will open. Click the Next > button in the window that appears to proceed to selecting recovery points.

    Let's choose suitable the restore point at which Windows 7 functioned normally and we will continue.

    In the window that opens, click the Finish button and confirm the message. After confirming the message, we will start a system rollback to the selected restore point. If the restoration is successful, you will see a corresponding message.

    As you can see, launching recovery through the console is not difficult at all.

    Recovering via the console in safe mode

    The recovery method described below is necessary if Windows 7 cannot be started in the usual way. To go to the Windows alternative boot menu, press the F8 key when the system starts (there may be other options, for example, Del or others). In this menu you need to select the item shown in the image below.

    By selecting this item, the operating system will boot no GUI, and the only means through which the system can be controlled will be console. In the console window, enter the already familiar command rstrui.exe

    By executing this command we will open the System Restore Wizard. Let's select a suitable access point in the wizard.

    From the example it is clear that it is identical to the previous one. The only difference is the launch Windows in safe mode with console support. Typically, this method almost always works, even if the system heavily damaged by viruses, since at startup the OS loads only the main drivers and there is no access to the Internet.

    Running System Restore in the console using the Windows 7 installation disc

    If the second method does not help restore the system, then the only option to start recovery using the console is installation disk or boot flash drive. Let's turn on our PC and boot from the Windows 7 installation disk.

    Now let's move directly to the console itself. To do this, click the hyperlink “ System Restore", which will start searching for installed systems.

    Let's select the operating system we need and move on to the next window.

    In this window, select the item “ Command line", after which it must start.

    In the console, we will type the command rstrui.exe that is already familiar to us. After executing this command, the recovery wizard will start. The work of the master is identical to the examples described above. Therefore, we will skip further description of the recovery wizard.

    Recovering the Windows boot record using the console

    Using a PC with the Windows 7 operating system, users often encounter problems loading it and receive messages of this type when the OS starts.

    Or something like that.

    The main culprit for this problem is a corrupted boot record. MBR or broken boot configuration BCD. You can solve this problem using the utility Bootrec.exe. Using the commands " /FixMbr" And " /FixBoot"The utility can create a new boot entry and fix it.

    To use these commands, we need to boot from the installation disk and launch the command prompt, as in the previous example. Let's use the first command " /FixMbr» utilities Bootrec.exe.

    By running this command we have fixed our boot entry MBR. If this command does not help, then use the second command " /FixBoot» utilities Bootrec.exe.

    By running this command we will create a new boot entry that will allow Windows 7 to start.

    From the example it is clear that using Bootrec.exe in most cases, you will be able to restore or fix the boot record in Windows 7. I would also like to note that the main reasons that damage or overwrite the boot record are:

    • Changing the local disk size with the operating system using special software;
    • Installing old Windows OS on top of new ones. For example, installing Windows XP on the same PC with Windows 7 installed;
    • Third party recording boot sector, which does not support Windows. For example, linux bootloader GRUB;
    • Various viruses and malware.

    By paying attention to the reasons that damage or overwrite the boot record, you can keep your PC in working order.

    BCDboot utility

    The Windows 7 installation disc contains another great utility that can be used to restore the OS. Let's also boot from the installation disk into the command line. Then enter the command shown below.

    In our case, Windows is installed on the “E:\” drive, so we specified the path in the “ E:\windows" By running this command we will restore the configuration files BCD, as well as the bootloader file bootmgr.

    By entering the bcdboot.exe command in the console, you can see a description of the utility, as well as a list of additional keys that can be used when starting it.

    Console utility MBRFix

    This console utility comes bundled with a multiboot disk Hiren's Boot CD.

    Hiren's Boot CD this is a disk with dozens of programs that help many computer scientists and system administrators. The main task MBRFix is to restore the Windows bootloader. Disk image Hiren's Boot CD can be downloaded from the official website www.hirensbootcd.org. Booting from Hiren's Boot CD, we will be taken to its boot menu.

    In this menu you need to select “ Mini Windows XP" and press Enter. By completing this action, we will download a portable version of Windows XP with the necessary utilities for diagnosing and repairing the system, including our utility MBRFix. Now let's go to " HBCD Menu» from a shortcut on the Desktop. Then in the menu " Programs"let's move on to the points " Partition/Boot/MBR/Commandline/MBRFix».

    This will allow us to open the console utility MBRFix. In the console window, enter the command MBRFix.exe /drive 0 fixmbr /win7 /yes

    This team will restore the boot record and bootloader, which will allow you to start Windows 7.

    Use disk Hiren's Boot CD with utility MBRFix It’s especially convenient if you don’t have the original disk with the seven.

    Let's sum it up

    In this material, we tried to look at all the ways to restore Windows 7 using the command line. Therefore, after reading this article, you can easily restore the functionality of your computer running Windows 7.

    I would also like to note that if the OS system files are severely damaged or erased, then it will not be possible to restore the system or its boot loader. Therefore, if this is exactly the case for you, then make a backup all important information on the hard drive and reinstall Windows.

    We hope that our material will help you restore your system or its boot record, and will also allow you to avoid similar problems in the future or quickly solve them.

    Video on the topic