Boot Loader Process
The boot loader enables you to select the operating system that you want to start, and loads the operating system files from the boot partition. Boot loader processing is different on x86-based and RISC-based computers.
NTLDR Functions (x86-based Computer)
NTLDR controls the operating system selection process and hardware detection prior to the Windows NT Kernel initialization. NTLDR must be in the root folder of your startup disk, and also requires that the following files be located in the root folder:
- Bootsect.dos (if dual-booting)
- Ntbootdd.sys (if using the scsi() syntax in the Boot.ini file)
If the path name in the Boot.ini file for your system partition uses the scsi() syntax, the file Ntbootdd.sys must be in the root folder of the system partition. For more information about the scsi() syntax and Ntbootdd.sys, see Chapter 20, "Preparing for and Performing Recovery."
When NTLDR starts executing, it clears the screen and displays the boot loader message, which is:
OS Loader V4.0
NTLDR then performs the following steps:
- Switches the processor into the 32-bit flat memory mode. When x86-based computers first start, they are running in real mode, like an 8088 or 8086 CPU. Because NTLDR is mostly a 32-bit program, it must switch the processor to 32-bit flat memory mode before it can perform any other functions.
- Starts the appropriate minifile system. The code to access files on FAT and NTFS volumes is built into NTLDR. This code enables NTLDR to read, access, and copy files.
- Reads the Boot.ini file, and displays the operating system selections. This screen is referred to as the boot loader screen.
- Allows the user to select an operating system from the boot loader screen.
- If the user selects an operating system other than Windows NT, NTLDR loads Bootsect.dos and passes control to it. The other operating system then starts up as normal, because Bootsect.dos contains the Partition Boot Sector that was on the primary partition or logical drive before you installed Windows NT.
- If you select a Windows NT version, NTLDR executes Ntdetect.com to gather information about currently installed hardware.
- NTLDR presents you with the choice of starting the computer in the configuration in use when Windows NT was last shutdown (Default), or the Last Known Good configuration. You have this option only if you press the space bar when prompted, or you have more than one hardware profile. You have approximately five seconds to select this option.
- NTLDR loads and starts Ntoskrnl.exe. NTLDR passes the hardware information collected by Ntdetect.com to Ntoskrnl.exe.
OSLOADER Functions (RISC-based Computers)
On RISC-based computers, Osloader.exe performs all of the functions that are performed by the x86-based components NTLDR, Ntdetect.com, and Bootsect.dos.
The NVRAM contains environment variables that provide the functional equivalent of the Boot.ini file on x86-based computers.