Boot Process
Boot Process
Server 2003. There can be various reasons for startup failures. Some can be easily corrected, while others might require you to reinstall Windows Server 2003. This article will help you understand and troubleshoot most of the errors commonly occurring during the Windows Server 2003 boot process.
While diagnosing a server error, it is important to first determine at which stage the error occurred. A server error can occur when the server is booting, during its running time or even when it is shutting down.
Many files are used during these stages of the boot process. The following sections describe the steps in each boot process stage, the files used, and the errors that might occur.
1. When the computer is powered on, it runs a power-on self-test (POST) routine. The POST detects the processor you are using, how much memory is present, the hardware is recognized and what BIOS (Basic Input/Output System) your computer is using. 2. The BIOS points to the boot device and the Master Boot Record (MBR) is loaded. It is also sometimes called the master boot sector or even just the boot sector.The MBR is located on the first sector of the hard disk. It contains the partition table and master boot code, which is executable code used to locate the active partition. 3. The MBR points to the Active partition. The active partition is used to specify the partition that should be used to boot the operating system. This is normally the C: drive. Once the MBR locates the active partition, the boot sector is loaded into memory and executed. 4. The Ntldr file is copied into memory and executed. The boot sector points to the Ntldr file, and this file executes. The Ntldr file is used to initialize and start the Windows Server 2003 boot process.
If the POST cannot recognize your hard drive, the preboot stage will fail. This error can occur even if the device was working properly and you havent changed your configuration.
No partition is This can happen if you used the Fdisk utility and did not If the partition is FAT16 or FAT32 and marked as create a partition from all of the free space. If you created on a basic disk, you can boot the active your partitions as a part of the Windows Server 2003 computer to DOS or Windows 9x with a installation and have dynamic disks, marking an active boot disk. Then run Fdisk and mark a partition is done for you during installation. partition as active. Corrupt or missing Ntldr file There are chances that, Ntldr file may be corrupted or deleted by virus attack. . You can restore this file through Automated System Recovery or a Windows Server 2003 boot disk.
The contents of the Boot.ini file are read and the information is used to build the initial boot menu selections. When Windows Server 2003 is selected, Ntdetect.com gathers the systems basic hardware configuration data and passes the collected information back to Ntldr. The system also checks to see if more than one hardware profile is detected; if so, the hardware profile selection menu will be displayed as a part of the startup process.
Unrecognizable or If the error that appears is due to Ntdetect.com, Best method to trouble shoot it is to remove improperly the issue is surely due to hardware problems. all the hardware that is not required to boot configured hardware the computer. Add each piece one by one and boot your computer. This will help you to identify the culprit.
Important Files
Along with the Ntldr file, which was described in the previous section, the following files are used during the boot sequence:
Boot.ini
This is used to build the operating system menu choices that are displayed during the boot process. It is also used to specify the location of the boot partition. This file is located in the root of the system partition. It has the file attributes of System and Hidden.
Bootsect.dos
An optional file that is loaded if you choose to load an operating system other than Windows Server 2003, Windows 2000, or Windows NT. It is used only in dual- boot or multiboot computers. This file is located in the root of the system partition. It has the file attributes of System and Hidden.
Ntdetect.com
Used to detect any hardware that is installed and add that information about the hardware to the Registry. This file is located in the root of the system partition. It has the file attributes of System, Hidden, and Read-only.
Ntoskrnl.exe
Used to load the Windows Server 2003 operating system. This file is located in WindirSystem32 and has no file attributes.
boot
system-start
device
NOTE: By executive subsystems, I meant Process and Thread Manager, The Virtual Memory Manager, The Input/Output Manager, The Object Manager, Runtime Libraries which all runs in kernel mode. o Prepares the system for running native applications.
NOTE: If you are not familiar with native applications, then it needs explanation. Windows provide two type of API. Well known Windows API (All Windows programs must interact with the Windows API regardless of the language.) and Native API. Native API is used by some windows components like kernel level drivers and system process aka csrss.exe o runs Smss.exe.
The function of Ntoskrnl.exe: 2. The Hardware Abstraction Layer (or HAL) is loaded. The HAL is a kernel mode library (HAL.DLL) that provides a low-level interface with the hardware. Windows components and third-party device drivers communicate with the hardware through the HAL. 3. The control for the operating system is loaded. The control set is used to control system configuration information such as a list of device drivers that should be loaded. 4. Low-level device drivers, such as disk drivers are loaded.
HKEY_LOCAL_MACHINE HARDWARE is created. This Registry key is used to specify the hardware configuration of hardware components when the computer is started. 2. The device drivers that were loaded during the kernel load phase are initialized. 3. Higher-order subsystems and services are loaded. Note: Higher order subsystem include, POSIX Subsystem, OS/2 subsystem.
If you have problems during the kernel initialization sequence, you may trying booting Back to the Top to the Last Known Good configuration.
HKLMSystemCurrentControlSetControlSession ManagerSubSystems Registry key. 3. smss.exe starts winlogon.exe, the Windows logon manager. winlogon.exe is a system service that enables logging on and off of users. It is also responsible for loading user profile. It invokes GINA( Graphical Identification and Authentication) which displays login prompt. The GINA accepts the user login credentials and passes it back to Winlogon. Winlogon then Starts Lsass.exe (the Local Security Authority) and passes login credentials to LSA. LSA determine which user account databases is to be used for authentication eg: Local SAM or Active Directory in case you are in a windows domain. 4. smss.exe finally starts the Services subsystem (Services.exe), also known as the Service Control Manager (SCM). It executes and performs a final scan of
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices to see if there are any remaining services that need to be loaded.
If Windows Server 2003 has detected any new devices during the startup process, they will automatically be assigned system resources. If the device is Plug and Play and the needed driver can be obtained from the Driver.cab file, they are extracted. Device detection occurs asynchronously with the initial user logon process when the system is started.
Conclusion
I have explained how you can workaround most of the common errors encountered during the booting process. Also I have explained the actual sequence of steps happening during each stage of the booting process. This will help you understand the actual cause behind the error and thus diagnosis the issue better. You can also find a brief explanation about important files and executables that come under the various stages.