Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

December 01, 1998 12:00 AM

The NT Boot Process

Windows IT Pro
InstantDoc ID #4538
Rating: (4)
Understanding the boot process helps you prevent problems

To troubleshoot Windows NT problems, you need a working knowledge of NT's diagnostic tools and the Microsoft Windows NT Server 4.0 Resource Kit. But sometimes you have problems that this knowledge cannot help you solve. For example, if a problem occurs in the boot process, you cannot bring up NT to run its diagnostic tools. Understanding the steps of the NT boot process will help you troubleshoot problems that might occur.

Problems with the boot process can generate error messages about missing files, cause the system to hang, or crash the system with the infamous blue screen of death. Fixes might involve replacing a damaged file or using Emergency Repair Disks (ERDs) to reinstall NT. As I discuss the steps in the boot sequence, I will examine possible problems and suggest solutions.

Required Files
The NT boot process requires certain files. If these files are missing or corrupted, the boot process cannot complete properly. Intel-based computers require the following files: ntldr, boot.ini, bootsect.dos (if you want to boot to DOS on a multiple-boot computer), ntdetect.com, and ntbootdd.sys (if you have a SCSI controller with the BIOS disabled). Each of these files plays a specific role in the boot process.

The files ntldr and ntdetect.com are not computer-specific. Thus, you can copy these files directly from one computer to another. The file boot.ini is computer-specific, but you can easily edit the file if you need to copy it from one computer to another. The file bootsect.dos is computer-specific, and you cannot copy it from one computer to another. You can copy this file to a 3.5" disk and then restore it from the disk, or you can use NT Backup to restore it. The file ntbootdd.sys is specific to your SCSI controller. You can copy this file from another computer that has the same SCSI controller.

The Preboot Sequence
The preboot sequence is not truly a part of NT. The process involves the computer going through its startup routine. First, the computer runs the power-on self test (POST). If the POST finds a problem, it identifies the cause of the problem with a series of beeps. (For information about beep codes, see Table 1, page 214. These beep codes are for older AMI BIOS systems. For the beep codes specific to your system, see the motherboard and BIOS manufacturers' specifications.) Possible trouble areas include a hard disk failure and the absence of a working video card.

After the POST completes successfully, the BIOS must load the Master Boot Record (MBR) from the hard disk or a 3.5" disk and run the program that the MBR contains (i.e., the boot program). If the hard disk starts to fail, the MBR can become corrupted. A virus might also infect the MBR. Viruses have a harder time running under NT than under many other operating systems (OSs), but a user might reboot the computer with an infected 3.5" disk in the drive and thus damage the MBR. If you damage the MBR, the boot process cannot proceed. (For information about recovering from MBR problems, see Bob Chronister, "Tricks & Traps," March 1998.)

The next step in the preboot sequence is for the system to load the boot sector from the hard disk's active partition into system memory. The boot sector on an NT computer or NT-formatted 3.5" disk contains instructions to load the ntldr file. If this file is missing, you receive the message BOOT: Couldn't find NTLDR. Insert another disk. If the drive partition that contains the boot files uses the FAT file system, you can use a 3.5" DOS disk to boot and then copy ntldr back to the hard disk's root directory. If the partition uses NTFS, you must use a 3.5" NT boot disk. (For information about creating this disk, see the sidebar "Building an NT Boot Disk," page 214.) Use the disk to boot the system. Then, start NT and copy ntldr from the 3.5" disk to the hard disk.

The Boot Sequence
After you load ntldr, the NT boot sequence starts. The system switches to the flat memory model, which supports as much as 4GB of RAM. Next, ntldr loads the mini file system drivers into memory and starts them. These drivers contain just enough code to read the hard disk (whether FAT or NTFS) and to load the rest of the OS from the hard disk.

During this stage of the boot sequence, the boot.ini file might cause problems. The boot.ini file controls the NT startup menu. The startup menu typically gives you the option of starting NT or starting NT in VGA mode only. If your computer can boot several OSs, you might see options such as NT, DOS, Windows 98, and Win95. You might see several versions of NT, especially if you are using a development system with NT Workstation and NT Server installed.

Listing 1 shows a typical boot.ini file. You'll notice that some of the lines in Listing 1 wrap for fit. These lines do not wrap in the original file, so you must be careful to not edit boot.ini in Notepad using the word-wrap feature.

Related Content:

ARTICLE TOOLS

Comments
  • Anonymous User
    7 years ago
    Jul 23, 2005

    The answer to the question posted on January 19, 2005 is because Americans are complete pricks. 51% of yanks voted fot Bush, so well over half of Americans are wankers.

  • Anonymous User
    7 years ago
    Jul 23, 2005

    The answer to the question posted on January 19, 2005 is because Americans are complete pricks. 51% of yanks voted fot Bush, so well over half of Americans are wankers.

  • Anonymous User
    7 years ago
    Jun 18, 2005

    Thanks for this reach information..

    Yosef From Saudi Arabia

  • Anonymous User
    7 years ago
    Jan 24, 2005

    Well I think the post left on the 19th takes the cake here as far as unintelligent posts. Only a fool would gage the one's intelligence from one sentence.

  • Anonymous User
    7 years ago
    Jan 19, 2005

    The least intelligent question posted is by someone far more intelligent then the posts left on Jan. 10, 12, and 18. Why do Americans allways insist on showing thier ass's in public?

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.