Frame Corner

Frame Top

GSW Study Notes Home

GSW MCSE Notes Home Networking Essentials Notes NT Server 4.0 Notes NT Administration Notes

Module 18: Windows NT Boot Process

Introduction

NT boots in stages:

Windows NT boot process occurs in these stages:

Files Required for System Boot
Intel x86 Boot Sequence Files

    File

    File Attributes 

    Function

    Ntldr H; R ; S
    • Loads OS
    Boot.ini R ; S
    • Builds OS Loader V4.00 Operating System Selection menu
    Bootsect.dos H
    • Loaded by Ntldr if another OS (MS-DOS, Windows 95, OS/2 1.x ) is selected instead of Windows NT.
    • Contains a copy of the boot sector that was on hard disk before installing Windows NT
    NTdetect.com H; R ; S
    • Used to examine available hardware and to build a hardware list. Information is passed back to Ntldr to be added to registry later in boot
    NTbootdd.sys H; R ; S
    • Only on systems booting from BIOS-disabled SCSI hard disk,
    • Driver accesses devices attached to SCSI adapter during Windows NT boot sequence.
RISC Boot Sequence Files

    File

    Function

    Osloader.exe OS loader; equivalent to Ntldr
    *.pal (Alpha only) these files contain PAL code, software subroutines that provide an OS with direct control of the microprocessor
Boot Sequence Files Common to both Systems

File

Function

NToskrnl.exe Windows NT kernel file, 
System Collection of system configuration settings, location. Controls which device drivers and services are loaded during initialization
Device drivers Files that support device drivers, such as Ftdisk and Scsidisk
Hal.dll Hardware abstraction layer protects kernel and rest of Windows NT Executive from platform-specific hardware differences. Manipulates hardware directly. 

Files Required for NT System Boot

Intel x86

RISC

Ntldr

Osloader.exe

Boot.ini

*.pal (Alpha only)

Bootsect.dos

NTdetect.com

NTbootdd.sys (SCSI only)

NToskrnl.exe

System

Device Drivers

Hal.dll

 

The Intel x86 Boot Sequence

Preboot Sequence

 

Note: when Windows NT is first installed on the machine, it changes the boot sector so that Ntldr loads on system startup.

Boot Sequence

This is called the Boot Loader Operating System Selection menu.

If Windows NT is selected If an OS other than NT is selected

ê

ê

Ntldr runs NTdetect.com. This scans the hardware and then sends the list of detected hardware back to Ntldr for later inclusion in registry under: HKEY_LOCAL_MACHINE\HARDWARE Ntldr loads and runs Bootsect.dos and passes control to it. The other OS then boots. The NT boot process is an end. :-(
Files Needed for Boot and their locations

Folder

Intel x86-based file

System root partition Ntldr, Boot.ini, Bootsect.dos, NTdetect.com, NTbootdd.sys
Systemroot\System32 NToskrnl.exe, Hal.dll
Systemroot\System32\Config System 
Systemroot\System32\Drivers Device drivers
The RISC Boot Sequence
NOTE: Ntldr, Boot.ini, and Bootsect.dos files required for Intel x86 based computers are not needed on RISC-based computers.
Preboot Sequence
  1. ROM firmware selects a boot device by reading a boot precedence table from nonvolatile RAM.
  2. For hard-disk boot, firmware reads MBR and determines whether system partition is present.
  3. If system partition exists, firmware reads the first sector of partition into memory. It then examines BIOS Parameter Block to determine whether the volume’s file system is supported by the firmware.
  4. If file system is supported by firmware, the firmware searches root directory of the volume for Osloader.exe, loads it and passes control to it, along with a list of available hardware.
Boot Sequence
  1. Osloader.exe loads
    • NToskrnl.exe,
    • Hal.dll,
    • *.pal and the
    • System hive.
  2. Osloader.exe scans System hive, and then loads the device drivers that are configured to start at boot time.
  3. Osloader.exe then passes control to NToskrnl.exe. This ends the NT boot sequence.

Files Needed for Boot:

Folder

RISC file

Os\nt40 Osloader.exe, Hal.dll, *.pal (Alpha only)
Systemroot\system32 NToskrnl.exe
Systemroot\system32\Config System
Systemroot\system32\Drivers Device drivers
Windows NT Load Phases

The boot sequence for both the RISC and Intel x86 platform ends and the load process starts when control is passed from Ntldr to NToskrnl.exe, with the following phases:

Kernel Load Phase

Kernel Initialization Phase

ErrorControl Values

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\

Name_of_service_or_driver\ErrorControl.

Services Load Phase

The services Load Phase starts the Session Manager (Smss.exe), which starts the higher-order subsystems and services for NT. Session Manager carries out the instructions under the following four registry entries:

   Entry for BootExecute can be modified. 

    Example: autocheck autochk /p* forces equivalent of Chkdsk /f on each partition on every subsequent system restart.

BootExecute value can also contain more than one command; 
 

    Example: Autocheck autochk * autoconv \DosDevices\ d: /FS:ntfs; second command causes drive D to be converted to NTFS on the next system boot.

Win32 Subsystem Start Phase

User Logs On

Creating a Windows NT Boot Disk

Required Boot Files:

Intel x86-based system Ntldr, boot.ini, Bootsect.dos, NTdetect.com, NTbootdd.sys (for system with a BIOS-disabled SCSI adapter.
RISC-based system Osloader.exe Hal.dll, *.pal (Alpha only)
Precautions
  1. Windows NT boot disk must be formatted on a Windows NT computer so that the boot sector on the floppy disk can find and run Ntldr.
  2. If computer is Intel x86-based, Boot.ini on boot disk may need to be modified to reflect the Advanced RISC Computing (ARC) path to system partition on the failed computer. The path includes disk controller, disk drive and partition for Windows NT system files.
  3. After created, use it to start Windows NT. Only certain files are loaded from floppy disk. All others are accessed from the hard disk of computer. If NToskrnl.exe or other files on hard disk are corrupt, the boot disk will be of NO use until the file is restored.

Use the Emergency Repair Disk to restore missing or corrupt files.
 

Last Known Good Configuration

Function of Last Known Good Configuration

When to Use the Last Known Good Configuration

If NT is going to load, normally the default control set will load

Use it to recover from following types of problems:

Using it doesn't help in following situations:

How to Use the Last Known Good Configuration

To use the Last Known Good, when you see OS loader v4.00 (or 5.00) press space bar to evoke Hardware Profile/Configuration Recovery menu and select L to choose the Last Known Good configuration and press Enter to select the original configuration.

The Update Repair Info Option

Note: - This option deletes and creates files if Windows NT is installed on an NTFS partition, this user must have appropriate permissions.  One must be member of Administrators or Power Users group or have appropriate privileges. For others it seems to work, but with saving files you get an error message that not all files could be saved

Repair Disk utility will not back up Default, SAM, or Security files, unless the /s parameter with rdisk command is specified.

Files Included on the Emergency Repair Disk
"._" means compressed version.

File

Description

Setup.log Information file used for verifying files installed on system. Read-only, Hidden, System file
System._ Copy from System hive from registry 
Sam._ Copy from Sam (Security Accounts Manager)  from registry
Security._ Copy from Security hive from registry
Software._ Copy from Software hive from registry
Default._ Copy from Default hive from registry
Config.nt NT version of Config.sys
Used when initializing a NT Virtual DOS Machine (NTVDM)
Autoexec.nt NT version of Autoexec.bat
File used when initializing an NTVDM
NTuser.da_ Compressed version of systemroot\Profiles\Default user\NTuser.dat

Decompress the compressed files with the expand utility.
 

The Emergency Repair Process

To perform Emergency Repair Process, you need:

The repair process in Windows NT Setup enables selection of what is to be repaired.
 
Inspect Registry Files. Setup replaces one or more registry files with the files that were created when NT was first installed, or when the ERD was last updated. All changes made to the system since the last update to the repair files are lost. Inspect startup environment. Select this option if NT is installed but does not appear in the list of bootable systems. For this option, the ERD is needed. Verify Windows NT system files. Select this option to verify that each file in the installation is good and matches the files that was installed from the distribution files. The repair process also verifies that files need to start, such as Ntldr and NToskrnl.exe are present and valid. When the repair process determines that file on the disk does not match what was installed, it displays a message that identifies the file asks whether you want to replace it. Inspect boot sector. Select this option if no system that is installed on the computer boots. Setup copies a new boot sector the hard disk.

Troubleshooting the Boot Process

Common Boot Process Errors

Boot: Couldn't fine NTLDR

Please insert another disk.

NTDETECT V4.0 Checking Hardware..

NTDETECT failed

Windows NT could not start because the following file is missing or corrupt:

winnt root\system32\ntoskrnl.exe

Please re-install a copy of the above file

I/O Error accessing boot sector file

Multi (0)disk(0)rdisk(0)partition (1):\bootos

All above cases can be restored with Emergency Repair process.

The Boot.ini File

Boot.ini file contains two parts: [boot loader] and [operating system] sections

Troubleshooting Boot.ini Problems

There are three situations when you get this message:

  1. Boot.ini is missing. Ntldr automatically tries to boot NT if NT is installed in the default folder of multi(0)disk(0)rdisk(0)partition(1)\Winnt or scsi(0)disk(0)rdisk(0)partition(1)\Winnt, Windows NT boots successfully. Otherwise, the following message appears
  2. Invalid Windows NT Path Name. If the path anme to NT is incorrect in the Boot.ini file, the following message appears.
  3. The NToskrnl.exe could actually BE missing or corrupt!

OS Loader v4.0

Windows NT could not start because of a computer disk hardware configuration problem.

Could not read from the selected boot disk. Check boot path and disk hardware.

Please check the Windows NT (TM); documentation about hardware disk configuration and your hardware reference manuals for additional information.

In all cases boot.ini can be edited or Emergency Repair can restore the Boot.ini file.
Troubleshooting Revisited

You receive the following error message, find out what file is missing.

Boot: Couldn't find NTLDR

Please insert another disk

Ntldr
NTDETECT failed NTdetect.com
No error message, but the Operating System Select menu failed to appear Boot.ini
I/O Error accessing boot sector file

Multi(0)disk(0)rdisk(0)partition(1)\BOOTS

Bootsect.dos

Non-system disk or disk error

Replace and press any key when ready
 

The disk that you used was not formatted under NT. Boot disk must be formatted under NT.

Last Known Good is updated with the current control set following the first successful logon after a reboot. When you notice something wrong following a restart, DO NOT LOG ON.

The Emergency Repair Process replaces the entire directory database with the original directory database that was created during installation, or with the last updated version from using Rdisk.exe. If he had never updated the directory database stored on the ERD the only accounts present after the repair would be the Administrator and the Guest account (and possibly an initial user account) created during installation.

To correct it, he could use the original administrator PW to log on, and then restore the directory database from a tape backup.

Boot: Couldn't find NTLDR

Please insert another disk
 

The Ntldr is either missing or corrupt. Use a NT Boot disk or Emergency Repair process.

Top of Page Top of page

E-mail Me! Comments and suggestions? E-mail me at grantwilson21@yahoo.com
I'm sorry, but I can't answer specific network-related, or exam-related questions.
Last Updated: August 6, 2001 Grant Wilson, Edmonton, AB Canada