How storage devices works


Windows Vista Boot Process Overview

The Windows Vista™ boot processenvironment by adding, deleting, editing, and
differs from WindowsÂ(R) XP in the wayappending entries in the BCD store.
the operating system is located andBcdedit.exe is located in the WindowsSystem32
initialized. Start-up begins with the BIOSdirectory  of  the  Windows  Vista partition.
loading the Master Boot Record (MBR) on the
bootable disk. The MBR in turn loads theBoot.ini  Compared  to  BCD
Partition Boot Record (PBR) on the active
partition. So far, Windows Vista remainsBCD eliminates the need for Boot.ini in
relatively  unchanged.Windows Vista, although Boot.ini is still
present on dual-boot systems for backwards
Windows Vista is different from XP startingcompatibility. Because the BCD boots to the
by the fact the PBR code written by Windowsboot environment first instead of Ntldr, the
Vista no longer looks for Ntldr. The new bootlocation of Ntldr is not verified unless a
loader in Windows Vista is Bootmgr. Thislegacy  operating  system  is  chosen.
component loads the Boot Configuration
Database (BCD), which in turn loads an OSConfiguration  Tools
loader boot application (Winload.exe, in the
case of Windows Vista). Finally, the OSThe BCD store can be modified or repaired
loader application is responsible forusing  several  tools:
initializing the kernel. This process is
illustrated  below.System  Properties  in  Control  Panel
You can think of this change in two elements:SystemPropertiesAdvanced.exe
The two key actions performed by Ntldr inMsconfig
previous Windows versions have been divided
between  two  components:Windows Recovery Environment (WinRE) Startup
Repair
1. Bootmgr reads the boot configuration,
including  device  and  path  locations.Bcdedit.exe
2. WindowsSystem32Winload.exe initializes theBootrec.exe
kernel.
Most of these tools enable you to perform
The boot configuration stored by Boot.ini insimple tasks, such as setting a boot menu
previous Windows versions is now stored in antimeout, setting a default operating system,
extensible database, BootBCD, the Bootor configuring boot options such as /SOS and
Configuration  Database  (BCD).SAFEBOOT. Others are repair-oriented tools;
Startup Repair and Bootrec.exe, in
These changes are significant because of theparticular, provide automated mechanisms for
impact  they  have:fixing  problems  in  the  BCD.
1. The boot process can be extended toBcdedit.exe is the main tool for detailed BCD
support other applications, such as otherstore modifications. You can use Bcdedit to
operating systems or other versions of thechange Bootmgr options; add boot, delete, and
OS.edit boot entries; import and export the BCD
store; and create a new store if it becomes
2. Only nonversion-specific components aresignificantly damaged. Bcdedit.exe is located
stored in the root of the active partition.in the WindowsSystem32 directory of the
This means that theoretically Windows VistaWindows Vista partition and is also available
could be installed on a machine running somein  WinRE.
future Windows version with the same boot
structure, and it would not break the bootBCD  Store  Location
process for that future version. With legacy
Windows, installing an older Windows versionThe BCD store is a registry hive, stored as
last causes the newer version to fail onBootBCD on the active partition. This hive is
start-up. This is due to version-specificloaded but hidden from view in Regedit.exe
code  improvements  in  Ntldr.within Windows Vista. The store is loaded to
the following registry location:
3. Tool-oriented boot entries can beHKLMBCD00000000.
supported to offer maintenance options on
boot when a previous start-up failed. In theYou can also view the store manually in WinRE
past, Windows supported an menu provided byby loading the hive from the Boot folder. To
a target operating system. This new structureobtain a copy of the hive on a running
can make tools available earlier during thesystem, use the Bcdedit /export filename
boot process, meaning that they are availablecommand to export a hive file for offline
even if all OS-specific boot entries areexamination. This command exports the BCD
damaged. The Windows Memory Diagnostic toolstore to a file called filename in the
is  provided  in  the  boot menu in this way.current  directory.
BCD  StoreRelated  Components
The Boot Configuration Data (BCD) storeMsconfig
contains boot configuration parameters and
controls how the operating system is startedMsconfig is the preferred PSS UI tool for
in Microsoft Windows Vista operating system.managing boot settings. The tool supports BCD
These parameters were previously in theand allows the user to enumerate all BCD
Boot.ini file in BIOS-based operating systemsobjects in the system store. It allows
or in the nonvolatile RAM (NVRAM) entries incertain elements to be altered for each OS
Extensible Firmware Interface-based operatingobject, including debug settings, safe mode
systems. You can use the Bcdedit.exe commandsettings, and other popular PSS options. It
line tool to affect the Windows code whichcannot be used with the WinRE console;
runs in the pre-operating system environmentBcdedit  needs  to  be  used  in these cases.
by adding, deleting, editing, and appending
entries in the BCD store. Bcdedit.exe isBcdedit.exe
located in the WindowsSystem32 directory of
the  Windows  Vista  partition.Bcdedit.exe is a command line tool that can
be used to manage BCD settings. In summary,
The BCD is a database used by Bootmgr. ItBcdedit.exe is a replacement for Bootcfg.exe.
contains the functions of Boot.ini and isHowever, it is enhanced for better scripting
located  in  the {ActivePartition}boot folderand to expose some of the more powerful
features of BCD that bootcfg.exe did not
Bcdedit.exeexpose for manipulating Boot.ini. Bcdedit.exe
is designed to work on previous operating
You can use Bcdedit.exe to modify the Windowssystems and in recovery environments.
code which runs in the pre-operating system



1 A B C D 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110