If Windows Goes on Strike while Booting Up: Use BcdEdit to Take Back Control

Similar documents
Perform Manual System Restore Xp Recovery Console

How to Restore Windows Server 2008 Domain Controller System State

How To Startup Windows Service Windows 7. Repair Dual Boot >>>CLICK HERE<<<

How To Fix Regedit Windows Xp Install Bootable Usb Flash Disk

Restoration onto different Hardware. Quick and easy system restore with O&O DiskImage

Quickly Repair the Most Common Problems that Prevent Windows XP from Starting Up

How To Fix Regedit Windows Xp Installation >>>CLICK HERE<<<

How To Install Windows Update Vista From Usb Flash Drive Step By Step

IT S NE VER DONE THAT BEFORE!

Ubuntu Installation Manually Partition Windows 7 Create System Reserved

Do A Manual System Restore On Windows 8 From Startup Repair

Windows 2000/XP History, and Data Management

AOEMI Backupper V4.0

Boot Process in details for (X86) Computers

Full System Restore Manually Run Cmd Prompt

Windows 7 Manual Update Install On New Hard Drive

Vista Manual Startup Repair Loop Corrupt Registry

Manually Windows Update Xp To 7 Without Cd

v5: How to recover your PC using the Linux Rescue CD

How To Fix Regedit Windows Xp With Disk Boot Failure

1 of 9 4/17/2015 7:19 AM

A+ Certification Guide. Chapter 15 Troubleshooting and Maintaining Windows

Full file at Chapter 2: Securing and Troubleshooting Windows Vista

Creating rescue media

IT ESSENTIALS V. 4.1 Module 5 Fundamental Operating Systems

Instructions for Installing FlashUpdate and Downloading Updates for NPRT 2200 Noise Power Ratio Test Set

Windows Xp Installation User Manually Create Bootable Usb Flash Drive

Windows 10: Solve Creators Update Errors. Solve Nasty Errors During or Following the Installation of the Latest Windows 10 Version

How to install the software of ZNS8022

Windows 7 Manual Partition Hard Drive During Install Xp

Applied ICT Skills MS Windows

Version 11. NOVASTOR CORPORATION NovaBACKUP

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 16 Fixing Windows Problems

Description of the Windows XP Recovery Console for advanced users

User. Applications. Operating System. Hardware

Contents. Getting Started...1. Managing Your Drives...9. Backing Up & Restoring Folders Synchronizing Folders...52

Instructions For Formatting Hard Drive Windows 7 Command Prompt

Manual Boot Camp Install From Usb Windows 7 Without Dvd Drive

A+ Guide to Software: Managing, Maintaining, and Troubleshooting, 5e. Chapter 7 Fixing Windows Problems

Full System Restore Manually Windows 7 No Disk

Manually Windows Update Xp Sp3 Iso Bootable

Manual Format Windows 7 With Cd Steps To

The following documents are included with your Sony VAIO computer.

v5: How to restore a backup image

How To Reinstall Grub In Windows 7 With Cd Rom

Perform Manual System Restore Windows 8 Hp

WinDSX New Installations

GOLD SERIES DVD/CD Duplicator Manual

Performance Analysis of Startup Time in CPU within Windows Environment

Format Hard Drive Using Windows 7 Recovery Disk

VIGIL Server Recovery User Guide

Installing New External Hard Drive Windows 7 Upgrade Blank >>>CLICK HERE<<<

Manual Repair Windows 7 System File Command Prompt Checker

Parallels Desktop 4.0 Switch to Mac Edition. Migrate your PC Tutorial.

How To Repair Win 7's Boot Loader After You Install Xp

How To Reset Your Computer To Factory Settings Windows Vista Without Cd

CompTIA A+ OS Technologies. Download Full Version :

Finding information on your computer

How To Reinstall Grub In Windows 7 With Cd Bootcamp Partition

Windows 2000 Flavors Windows 200 ws 0 Profess 0 P ional Windows 2000 Server Windows 200 ws 0 Advan 0 A ced Server Windows 2000 Datacen ter Server 2

LENOVO THINKSTATION P520C, P520, P720, & P920 WINDOWS 10 INSTALLATION

How To Reinstall Grub In Windows 7 Without Cd Dell

Perl Install Module Window Xp Without Cd Or Usb

Manual Repair Windows 7 System Files Command Prompt Check

Windows 7 Handbook Tool Usb Error Unable To Copy Files Windows 8

Table of Contents. Installation and Software 1

2. install windows vista

How To Install Windows Update Vista From Usb Hard Drive Iso

UBDR GOLD VERSION 3.0 USER GUIDE

INSTALLING THE PS3 XBOX READY SOFTWARE:

DUAL OS INSTALLATION

EaseUS Disk Copy User Guide

DOWNLOAD PDF CREATOR FOR WINDOWS 8 64 BIT

Net Start Error Code 5 Windows 7 Boot From Disk

Basic Edition A Windows Embedded Partner

Lab - Data Migration in Windows

JetFlash User s Manual

Cd Manually To Your Hard Drive Without Windows Xp

How To Install Windows Updates 8 From Usb

If you have problems with your Windows system, you may use the Diagnostic Startup mode to diagnose the cause of the problem.

2. INSTALLATION OF SUSE

AMD RAID Installation Guide

C A S P E R USER GUIDE V ERSION 10

How To Fix Regedit Windows Xp Install Cd Step By Step Pdf

Blu-ray/DVD/CD Duplicator Control Manual. User s Manual

Full System Restore Manually Windows 7 No Disk

Full System Restore Manually Run Command Prompt Windows Xp

Zinstall FullBack User Guide. Thank you for purchasing Zinstall FullBack. If you have any questions, issues or problems, please contact us:

Steps To Format Laptop Windows Xp And Install Windows 7 Dell

Veritas System Recovery Disk Help

Safe Mode: Solve Startup Problems & Crashes S 3/1. Solve (Almost) Any Problem Your Computer May Have

HOW TO: Perform a Hardware Independent Restore (HIR)

Installing VersaWorks on Windows Vista and Windows 7 Follow the steps below to install VersaWorks on Windows Vista or Windows 7:

Cdboot Cannot Boot From Cd Error Code 5 Windows 7

H A N D O U T : I D E N T I F Y I N G A N D M I T I G A T I N G H A R D D R I V E I S S U E S

DriveClone Workstation. Users Manual

COMMON WINDOWS 10 QUESTIONS & ANSWERS

Full System Restore Manually Run Command Prompt Xp

Module 15. Troubleshooting Software

Perform Manual System Restore Xp Safe Mode Not Working

Transcription:

B 102/1 If Windows Goes on Strike while Booting Up: Use BcdEdit to Take Back Control Using the information given in this article you will be able to: Edit your Windows system s boot configuration, Remove an old operating system from the boot menu, Restore a faulty boot sector using BootRec. On Windows XP, you could change the boot menu and configure the process simply by editing the BOOT.INI file. This was especially useful if you had a multiboot system, and needed to quickly change the options displayed in the menu when you start up your PC. With the introduction of Windows 7, everything changed, and modifying your boot menu became much more complicated than editing a single file. That s because Microsoft replaced the BOOT.INI file with the BCD (Boot Configuration Data) database. Unfortunately, this data could no longer be edited with a text editor and now it is only possible to make configuration changes using the BcdEdit tool. In this article, I ll show you how to use the BcdEdit program in order to add operating systems to the boot configuration data, or remove entries from the list of displayed operating systems. BcdEdit: The New Boot File Editor in Windows... BcdEdit: The Boot Configuration Data Editor... You Should Know these BcdEdit Parameters... Manage Multi-boot Systems Using BcdEdit... How to Rescue Windows 10, 8.1 & 7 Multi-boot Systems... How to Solve System Boot Problems with System Boot Repair... B 102/2 B 102/4 B 102/5 B 102/8 B 102/11 B 102/14 23

B 102/2 Two likely problems you ll come across Configuration was simpler in the past BCD = Boot Configuration Data BcdEdit: The New Boot File Editor in Windows The following two examples show just how important the correct boot file configuration is in order for Windows to function properly: Reader Luke wanted to try out the alternative Linux operating system in addition to his Windows system. The steps he followed online promised everything would go without any problems and that Windows and Linux would run in parallel. Once Linux was installed, Luke was horrified to see that Windows had disappeared and only Linux was available to use. Reader Henry installed the new Windows 10 system a while ago, in parallel to his old Windows 7 operating system. As his hard drive space dwindled, he wanted to remove Windows 7. He was able to delete the Windows 7 installation folder but every time he booted the computer, a menu would appear asking which Windows system he wanted to boot from: Windows 7 or Windows 10. It used to be easier to solve boot problems in earlier Windows operating systems. You opened the BOOT.INI system file that contained all the information regarding which Windows versions were installed on the computer, and from there you could make the necessary changes to solve the problems. The BOOT.INI file was also particularly useful for multi-boot configurations or more experienced users that wanted to customise the Windows boot process. Starting from Windows 7, the BOOT.INI file was replaced with the BCD (Boot Configuration Data) database. The advantage of this is that the boot configuration settings were stored on the system partition. The BCD data is read from there to decide how to boot the computer. On UEFI-based 24

B 102/3 computers, BCD has a firmware entry that allows it to make references to the boot files. If you want to make changes to the BCD, for example, in order to delete an old Windows XP system from the list of the operating systems displayed at startup, then you have to use the BcdEdit command line program. Windows has a graphical interface with limited functionality that allows you to change the boot configuration options. If you have a multi-boot configuration, you can change the operating system that is opened by default, and configure how long the boot menu is displayed for. Configure via the Control Panel To do so, proceed as follows: 1. Press + R and type control into the Open : field, then click OK. Set the View by drop-down list in the top right-hand corner to Large icons. 2. Click on System, then click on Advanced system settings. 3. In the System Properties window, click on the Advanced tab and click on Settings under Startup and Recovery. Set how long the menu is displayed Choose the operating system How to configure the boot settings on Windows 25

B 102/4 Modify the boot configuration data Launch BcdEdit BcdEdit: The Boot Configuration Data Editor You can alter the data stored in your BCD database using the BcdEdit command line program. Similar to the BOOT.INI file, you will find the boot configuration parameters and information on how the operating system is to be booted using this tool. With BcdEdit you can add, delete, edit or create entries to the boot configuration database. To launch BcdEdit, press + R and type cmd into the Open field then click OK. At the command prompt, type bcdedit in order to launch the tool. You may get the following error message: Run with Administrator privileges : If this happens, then you don t have the administrative privileges required to run the program. To launch a command prompt with administrative privileges, proceed as follows: 1. In Windows 10, right-click on the Start button and click on Command Prompt (Admin) or Windows PowerShell (Admin). 2. In Windows 8.1, press + X and click on Command Prompt (Admin). 3. In Windows 7, click Start > All Programs > Accessories, right-click on Command Prompt and choose Run as administrator. 26

B 102/5 You Should Know these BcdEdit Parameters Just type bcdedit and press Enter to get a full summary of all of the operating systems installed on your computer: See all installed systems In this example, you can see four operating systems To get detailed information about a particular parameter, type in bcdedit /? <parameter>, (without the angled brackets), where <parameter> stands for the individual parameter you want to find out more about (as listed in the Find more information using /? 27

B 102/6 table below). For example, to get detailed information about the /delete parameter you need to type in: bcdedit.exe /? /delete With the command bcdedit /? TOPICS you will get a list of the topics in the help file, sorted alphabetically. Area Parameter Description Store-related commands Store entry commands Commands that operate on entry options /createstore /export /import /copy /create /delete /deletevalue /set Creates a new and empty boot configuration data store. Exports the contents of the system store to a file. This file can be used later to restore the state of the system store. Restores the state of the system store using a backup file created with the /export command. Creates copies of entries in the store. Creates new entries in the store. Deletes entries from the store. The ID that is required for these commands can be found by using the bcdedit /? ID command. Deletes entry options from the store. Sets the entry option values in the store. The data types that are required by these commands can 28

B 102/7 Area Parameter Description be found with the bcdedit /? TYPES command. Output commands Boot manager commands Emergency management service control commands /enum /v /boot sequence /default /displayorder /timeout /toolsdisplayorder /bootems /ems /emssettings Lists the entries in the store. Displays all the entry IDs in full, instead of using abbreviations for known IDs. Sets the one-time boot sequence for the boot manager. Sets the default entry that the boot manager uses. Sets the order in which the boot manager displays the boot menu. Sets the time out limit value for the boot manager. Sets the order that the boot manager uses to display the tools menu. Activates or disables the emergency management services for a boot application. Activates or disables the emergency management services for an operating system entry. Sets the global emergency management services parameters. 29

B 102/8 Run multiple Windows versions The old boot process The new boot process in detail Manage Multi-boot Systems Using BcdEdit Windows XP and older Windows versions use a different boot system to Windows 8/7/Vista, but fortunately the BcdEdit tool is able to cope with older Windows versions too, meaning that you can use it to apply changes to entries for Windows XP and older in your boot menu. With older Windows versions such as XP, the boot process begins with the system BIOS. The BIOS locates the boot device, then loads the first hard drive sector, known as the Master Boot Record (MBR). The MBR contains the partition table and the necessary boot code. This code searches the partition table to find the active boot partitions, then hands over control to the boot sector program on the active partition. This boot sector code then loads the Ntldr program onto the active partition. The Ntldr program analyses whether the BOOT.INI file contains details of how to boot the operating systems that are installed on the PC. When you launch Windows 10, 8.1, 7 or Vista, the BIOS loads the Master Boot Record (MBR) and then the boot sector of the hard drive. The boot code loads the new Windows Startup Manager program, Windows Boot Manger or Bootmgr. The Bootmgr program analyses the binary coded file DEFAULT.BCD or a corresponding BCD storage file to find the list of installed operating systems, then uses this information to display the boot menu. If you have an older version of Windows installed alongside Windows 10 in a dual boot configuration, the Windows Startup Manager program passes control over to the Ntldr program from the older Windows version (such as Windows XP). If you install an older Windows version on a computer with Windows 10, the setup program overwrites the whole MBR, the Boot Sector and the boot files. It will then no longer be possible to boot Windows 10. 30

B 102/9 How to Delete an Operating System Entry Using BcdEdit If you have installed an older operating system, such as Windows XP, on a spare partition alongside an existing Windows 10 system, then Windows 10 will no longer boot. Windows 10 does however, still exist. You just have to reactivate it and then you can remove the old entry. To do so, proceed as follows: 1. Launch the older Windows version and insert your Windows 10 installation disk into the DVD drive on your computer. Fix problems after installing Windows XP : 2. On your XP system, click on Start > All Programs > Accessories > Command Prompt. 3. At the Command Prompt, navigate to the partition that contains your newer Windows operating system (e.g. Windows 7). If, for example, you have it on the C drive, type in the following command: cd C:\Windows then press Enter. 4. Now, type in the following command: D:\boot\ Bootsect.exe -NT60 All and press Enter. Then, replace D with the drive letter used by the CD/DVD drive containing your Windows installation disc, if it appears to be different. 5. The next command to type is: C:\Windows\system- 32\Bcdedit -create {ntldr} -d Name of Windows version and press Enter. You can replace the name of Windows version with anything you like, e.g. Windows 10. 31

B 102/10 6. Next, type: C:\Windows\system32\Bcdedit -set {ntldr} device partition=x: and press Enter. Replace x with the drive letter of the hard drive partition containing the original operating system (e.g. Windows 7). 7. Next, you must type in the following command: C:\Windows\system32\Bcdedit -set {ntldr} path \ntldr and press Enter. 8. Finally, type in: C:\Windows\system32\Bcdedit - displayorder {ntldr} -addlast and press Enter. 9. Restart your computer. You will now see a boot menu which you can use to switch between all of the operating systems installed on your PC. Remove the old operating system Now you will be able to use BcdEdit to remove entries for older Windows versions that you have removed from your hard drive by proceeding as follows: Open a command prompt on the Windows 10 system and type in the following command: Bcdedit /enum then press Enter. This command lists the GUIDs (identifiers) of the operating systems installed on your PC. Note the GUID for the Windows XP installation. Type in the following command: bcdedit /delete {802d5e32-0784-11da-bd33-000476eba25f} followed by Enter, where the entry in the curly brackets ({}) stands for the GUID of the operating system that you wish to delete from the menu. Warning: If you do not type in a GUID, the boot option for the current operating system will be deleted. 32

B 102/11 How to Rescue Windows 10, 8.1 & 7 Multi-boot Systems If you have an existing installation of Windows 10/8.1/7 on your PC and then install a different operating system, such as Linux, you will find that you no longer have an option to boot Windows 10/8.1/7. Fortunately, the operating system is still installed on your system. You just need to reactivate it. To do so, proceed as follows: 1. Launch the older Windows version and insert your Windows 10/8.1/7 installation disk into the DVD drive on your computer. 2. Open a Command Prompt as follows: In Windows 10, right-click on the Start button and click on Command Prompt (Admin) or Windows PowerShell (Admin). In Windows 8.1/8, press + X and click on Command Prompt (Admin). In Windows 7/Vista, click Start > All Programs > Accessories, right-click on Command Prompt and choose Run as administrator. 3. At the Command Prompt, navigate to the partition that contains your newer Windows operating system (e.g. Windows 7). If, for example, you have it on the C drive, type in the following command: cd C:\Windows then press Enter. 4. Now, type in the following command: D:\boot\ Bootsect.exe -NT60 All and press Enter. You can replace D with the drive letter used by the CD/DVD drive containing your Windows installation disc, if it is different. Fix problems if your boot menu goes missing : 33

B 102/12 5. The next command to type in is: C:\Windows\ system32\bcdedit -create {ntldr} -d Name of Windows version and press Enter. You can replace the name of Windows version with anything you like, e.g. Windows 7. 6. Now, type in: C:\Windows\system32\Bcdedit -set {ntldr} device partition=x: and press Enter. Replace x with the drive letter of the hard drive partition containing the original operating system (e.g. Windows 7). 7. Next, you must type the following command: C:\Windows\system32\Bcdedit -set {ntldr} path \ntldr and press Enter. 8. Finally, type in: C:\Windows\system32\Bcdedit -displayorder {ntldr} -addlast and press Enter. 9. Restart your computer. You will now see a boot menu which you can use to switch between all of the operating systems installed on your PC. Remove the other operating system : You can now use BcdEdit to remove the entry for the other operating system from your boot menu (for example, Linux). To do so, proceed as follows: 1. At the command prompt, type in the following command: Bcdedit /enum and press Enter. 2. Type in the command: bcdedit /delete {802d5e32-0784-11da-bd33-000 476eba25f} and press Enter. The entry in the brackets ({}) stands for the GUID from step 1 that you want to delete. 34

B 102/13 Warning: If you do not type in a GUID, the boot option for the current operating system will be deleted.! The drive identifier is shown here This command lists the GUIDs (identifiers) for the installed operating systems. How to Change the Sequence of the Entries in the Boot Menu If you want to alter the order that operating systems are listed in the boot menu, use BcdEdit with the /Default parameter. You ll also need to find the GUID identifiers for the operating systems installed on your PC, since the GUID specifically identifies each operating system installation. Type in the following command to set the default operating system that your PC will boot if you do not select a different menu option. This operating system will be selected by default on the menu: The /default parameter Set the default entry bcdedit /default {GUID} Example: bcdedit /default {466f5a88-0af2-4f76-9038- 095b170dc21c}. 35

B 102/14 To change the ordering of the boot sequence in the menu, type in the GUIDs in the desired order: bcdedit /bootsequence {GUID} {GUID}{GUID} Fix a faulty master boot record Automatic repair : How to Solve System Boot Problems with System Boot Repair Boot problems on your PC are often down to errors in the master boot record (MBR). This is stored on the first sector of your hard drive and is there to boot the operating system that is installed on the primary partition of your drive. Without the master boot record, it would be impossible to boot Windows from a hard drive. There are many things that can damage your MBR. Changing the partitions on your hard drive or getting a virus can both cause the MBR to be overwritten. The Windows 10 boot files may also be overwritten when you try to install an operating system such as Windows XP. Fortunately, it is possible to boot your computer from your Windows installation DVD or USB stick and then repair the boot settings: 1. Insert your Windows 10 installation DVD into your DVD drive, or connect your flash drive containing the Windows 10 installer. 2. Switch on the computer, or re-boot it. 3. After a few seconds you will see a message on screen telling you to press any key in order to boot your system from the DVD drive. Press Enter to do so. If you don t see this message, consult your motherboard manual for details of how to boot your system from the DVD or USB drive. 36

B 102/15 4. The Windows 10 setup program will be launched. A few moments later, the Windows 10 setup message will load. You should ensure that the following settings are selected: Language to install: English (United Kingdom), Time and currency format: English (United Kingdom), Keyboard or input method: UK. Click on Next. 5. The installation screen will then be shown. Do not click on the Install now button, but rather click on the Repair my computer link shown at the bottom of the screen. 6. If your computer finds multiple hard disk partitions containing operating systems, the Recovery Environment will show you a list of the Windows systems present. Select the installation that is to be repaired and then click on Next. The System Recovery Options menu will be shown. 7. In the next window, select Troubleshooting then click on Advanced Options. Select the option Startup Repair. The tool will then analyse the MBR and try to repair it. If the boot sector of the hard drive is faulty, it is rewritten. The tool also checks the BCD (Boot Configuration Data) database, to make sure all installed operating systems have been detected. After the analysis and repair, Windows 10 then informs you on the success of the action. 8. You may have to restart your computer and repeat the whole process a second time, since not all boot files are repaired the first time around. A maximum of three run-throughs may be necessary to completely fix boot problems, since Windows first tries to repair the MBR, then the PBR (Partition Boot Record) and finally the boot manager. You may need to re-boot three times 37

B 102/16 Fix problems when the automatic repair fails The Bootrec repair tool : What to do When the Startup Repair Fails Unfortunately, the Startup Repair tool doesn t solve all of the possible boot problems Windows 7 might experience. If the BCD database or the Windows startup files have been deleted, then the Startup Repair tool cannot help you. In this case, try to create a new partition on the hard drive concerned and install another copy of Windows on this partition. By doing so, the startup files will be recreated on the active partition and all the operating system versions on your hard drive will be accessible. You can then copy back the BCD database from a data backup. There is an additional manual way to repair your Windows 10 installation, using the extremely useful Bootrec program. If the MBR or BCD database is faulty and the Startup Repair fails, proceed as follows: 1. Launch the System Recovery Options menu as described previously. 2. Instead of selecting the option Startup Repair, click on Command Prompt. 3. At the command prompt, type in bootrec /FixMbr and press Enter in order to restore the MBR. 4. Type the command, bootrec /FixBoot followed by Enter to rewrite the boot sector on your hard drive. 5. Type bootrec /RebuildBcd followed by Enter to recreate the BCD database. Summary BcdEdit is the boot configuration editor. You can use it on one or multiple operating systems to edit and repair the Windows boot menu and solve startup problems, by following the steps in this article. 38