What causes Windows 2000 to crash?

Windows 2000 is more stable than previous incarnations of Windows, but it can still crash. Brien Posey lists the most likely causes of a major system crash--knowledge that can help you recover from a crash or prevent one.

If you’ve worked with computers for any length of time, you’ve no doubt encountered situations in which a crash was so severe that it took a full day (or longer) to restore the system to working order. Meanwhile, your workload was piling up and users were kept waiting for less significant repairs while you tackled the big one.

Unfortunately, there’s no foolproof method of preventing a massive crash. You can significantly reduce the amount of time required to recover from a really big crash, though, if you know what causes the crashes in the first place. This knowledge can also help you prevent crashes.

People have different ideas of what constitutes a major crash. For the purposes of this Daily Drill Down, I’ll define a major crash as one that prevents the Windows 2000 operating system from booting.

Incorrect device drivers
One of the most frequent causes of a system failing to boot is an incorrect driver. An incorrect driver can be one of the easiest problems to track down and fix. If you change a driver and suddenly the system fails to boot, it’s pretty obvious that the driver is probably what’s causing the problem. What makes this problem even easier to track down is that most of the time there are only a handful of device drivers that have the potential to cause a boot failure.

If you suspect an incorrect device driver, the device with the incorrect driver is most often a video adapter, network card, sound card, or some other high-profile hardware component that’s used during the boot process. A modem driver or a printer driver, even if incorrect, won’t usually cause a boot failure because modems and printers aren’t usually initialized during the boot sequence.

The incorrect device driver also probably won’t have anything to do with lower-level system components such as hard drives, CD-ROM drives, USB, LPT, or serial ports, because all of these items typically rely on generic device drivers that work for just about any system. The exception to this is SCSI devices, which rely on specific device drivers. An incorrect SCSI device driver can and usually will cause a boot failure.

Bad device drivers
A bad device driver is one that has been loaded appropriately but is malfunctioning. Sometimes drivers go bad when a registry entry or file that’s associated with the driver is accidentally modified, deleted, or corrupted. Many of the rules that apply to incorrect device drivers apply to bad device drivers. A bad device driver will only cause a boot failure if the device that’s associated with the bad driver is used during the boot process.

Hard disk corruption or failure
Another major cause of major system crashes is a hard disk failure or hard disk corruption. Obviously, if the hard disk that contains the boot or system partitions (or both) were to fail, then booting the operating system would be impossible. Likewise, even if the hard disk doesn’t physically fail, if some or all of the information contained on the system or boot partitions becomes corrupted, then the boot process may also be impossible.

If the hard drive physically fails, the only real solution is to replace the drive and reload the operating system, restore a backup, or both. If the drive is still working, but some corruption has occurred, things quickly become much more interesting. Getting the system back up and running becomes a question of what was on the failed drive or partition.

For example, if the failed drive or partition contained only the Windows 2000 operating system, the quickest and easiest solution might be to reformat the drive and restore a backup or reload the operating system. If, on the other hand, the affected drive or partition contained data, you’d probably be better off trying to salvage the drive or partition rather than simply reformatting it.

User tampering (security)
Another cause of massive failures is user tampering. I’ve seen more situations than I can count in which a user crashed a workstation. One example is the user who was running out of hard disk space and “corrected” the problem by erasing every file he didn’t recognize (COMMAND.COM, WIN.COM, etc.).

User tampering isn’t nearly as big an issue in Windows 2000 as it was in Windows 9x because of the integrated security. I have seen it happen, though. For example, in one situation, Windows 2000 workstations used the FAT file system instead of NTFS, and there was nothing preventing users from making changes to system files.

An even uglier situation involved the Windows 2000 security system. Windows 2000 is designed so that you can log into either a domain or the local machine. Each individual workstation contains its own Administrator account that can be used to make changes to the individual machine’s configuration.

A help desk technician logged into a workstation to perform some routine maintenance. During the course of this maintenance, the technician received a phone call. The machine’s user knew just enough about Windows 2000 to be dangerous and changed the local administrator’s password. After the technician got off the phone, he finished the job, unaware of the password change. The rogue user then made a few changes and crashed the system. The technician was unable to get back into the system to fix the problem because the password had been changed.

As you can see, even a fairly secure operating system like Windows 2000 can be subject to user tampering if security policies and procedures are lax. It’s impossible for me to tell you that if a user tampers with the system, you can follow a specified procedure to fix the problem. The user could have done almost anything to the system. Fortunately, just about any type of tampering that’s severe enough to crash the system falls into one of the other categories discussed here.

Incorrect version of files or missing files
Incorrect or missing system files can cause a crash. This can happen when files are accidentally deleted, a buggy service pack is installed, or when a technician attempts to copy a missing file from another machine.

There’s been a lot of focus on viruses lately because of all of the e-mail viruses going around. Although this type of virus usually can’t prevent a system from booting, there are viruses that can, such as boot sector viruses and file viruses.

CPU failure
It may seem obvious that if a CPU fails, the system may not boot. Unfortunately, there are many types of CPU failures. For example, rather than the CPU completely going bad, one particular memory block may go bad.

One of the trickiest problems to fix is a bad registry entry. There’s a very real chance that registry corruption can lead to a major crash. (In upcoming Daily Drill Downs, I’ll discuss some registry repair techniques you can use.)

Major systems crashes can be extremely disruptive to both users and the help desk staff. When a major crash occurs, your goal is usually to recover from the crash as quickly as possible with minimal data loss. The first step in recovering from a really big crash, whether on a server or a workstation, is to understand the factors that could have led to the crash. Only then can you effectively begin the troubleshooting process.

Editor's Picks