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.

   Prev. page   [1] 2     next page



You must log on before posting a comment.

If you don't have a username & password, please register now.

Reader Comments

Dear sir i am new in nt and have problem with my pc (system32\ntoskrnl.exe is missing or corrupt)can you explain me how to restore nt from abackup tape or basic installation of nt in a diffrent directory.cause until now i can boot my pc thanks for your kind attention. thanks

candra

a while ago i was using my friends usb logitech mouse..when i was done. i uninstalled the software and such that came with it because i was putting a new mouse in...after the uninstall was complete the computer did the usual reboot.and after it was done i got to the password screen on win2k and i couldnt use my mouse or my keyboard.i put the harddrive in someone elses computer .it works fine.. i put someone elses harddrive on my computer.it also works fine..whats going on?

bryan

I have XP and I get the "ntldr missing" when I try to boot up and can't boot until I reload system or rollback if there is a rollback point saved. What is going on here?

dave

I have XP and I get the "ntldr missing" when I try to boot up and can't boot until I reload system or rollback if there is a rollback point saved. What is going on here? ...

Salumu K. Kiumba

Wonderfull!!! by this site i was much helpful and i got the job

sushanth

What is TCP/IP, & how to it is working & why it is divided in different classes what is use for it.

Awaneesh Singh

i tried to upgrade my windows me to win 2000 when i start my computer there is a ntldr error how can i fix that???

akbar

i was editing my bootscreen and deleted my original boot line... now everytime i boot up i see a bootscreen on my windows 2000 that shows OS/2 Warp with an IBM picture in the top right corner and i want to get my original boot.ini back so i can edit my bootscreen again. i've tried editing over the one i have right now but it doesnt do anything

jarred farrell

Why do people think they should ask questions here?

Anonymous User

Article Rating 5 out of 5

why is this such a crappy site

Anonymous User

Why are you all tools?

Anonymous User

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?

Anonymous User

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

Thanks for this reach information..

Yosef From Saudi Arabia

Anonymous User

Article Rating 5 out of 5

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

Article Rating 5 out of 5

See More Comments  1   2 
 
 

ADS BY GOOGLE