Page 1:PC Diagnostics, Testing, And Maintenance
Page 2:The POST
Page 3:BIOS POST Beep Codes, Checkpoint Codes, And Onscreen Messages
Page 4:Peripheral And Operating System Diagnostics
Page 5:Commercial Diagnostics Software And Free/User Supported Diagnostics
Page 6:The Boot Process
Page 7:The Hardware Boot Process: Operating System Independent
Page 8:DOS And Windows 9x/Me Boot Processes And Windows 2000/XP Startup
Page 9:Windows 7/Vista And Windows 8 Startup
Page 10:PC Maintenance Tools
Page 11:Hand Tools Continued
Page 13:Test Equipment: Electrical, Loopback Connectors, And Meters
Page 14:Test Equipment: Logic Probes, Outlet Testers, And Memory Module Testers
Page 15:Special Tools For The Enthusiast
Page 16:Preventative Maintenance
Page 17:Cleaning A System
Page 18:System Disassembly And Cleaning Procedures
Page 19:Passive Preventive Maintenance Procedures
Page 20:Passive Preventive Maintenance Procedures Continued
Page 21:Troubleshooting Tips And Techniques
Page 22:Troubleshooting: Replacing Parts And The Bootstrap Approach
Page 23:Problems During POST, Running Software, And Adapter Cards
The Hardware Boot Process: Operating System Independent
If you have a problem with your system during startup and can determine where in this sequence of events your system has stalled, you know which events have occurred and probably can eliminate each of them as a cause of the problem. The following steps occur in a typical system startup regardless of which operating system you are loading:
- You switch on electrical power to the system.
- The power supply performs a self-test (known as the POST). When all voltages and current levels are acceptable, the supply indicates that the power is stable and sends the Power_Good signal to the motherboard. The time from switch-on to Power_Good is normally between 0.1 and 0.5 seconds.
- The microprocessor timer chip receives the Power_Good signal, which causes it to stop generating a reset signal to the microprocessor.
- The microprocessor begins executing the ROM BIOS code, starting at memory address FFFF:0000. Because this location is only 16 bytes from the very end of the available ROM space, it contains a JMP (jump) instruction to the actual ROM BIOS starting address.
- The ROM BIOS performs a test of the central hardware to verify basic system functionality. Any errors that occur are indicated by audio beep codes because the video system has not yet been initialized. If the BIOS is Plug and Play (PnP), the following steps are executed; if not, skip to step 10.
- The PnP BIOS checks nonvolatile random access memory (NVRAM) for input/output (I/O) port addresses, interrupt request lines (IRQs), direct memory access (DMA) channels, and other settings necessary to configure PnP devices on the computer.
- All PnP devices found by the PnP BIOS are disabled to eliminate potential conflicts.
- A map of used and unused resources is created.
- The PnP devices are configured and reenabled, one at a time. If your computer does not have a PnP BIOS, PnP devices are initialized using their default settings. These devices can be reconfigured dynamically when Windows starts. At that point, Windows queries the PnP BIOS for device information and then queries each PnP device for its configuration.
- The BIOS performs a video ROM scan of memory locations C000:0000–C780:0000 looking for video adapter ROM BIOS programs contained on a video adapter found either on a card plugged into a slot or integrated into the motherboard. If the scan locates a video ROM BIOS, it is tested by a checksum procedure. If the video BIOS passes the checksum test, the ROM is executed; then the video ROM code initializes the video adapter and a cursor appears onscreen. If the checksum test fails, the following message appears: C000 ROM Error
- If the BIOS finds no video adapter ROM, it uses the motherboard ROM video drivers to initialize the video display hardware, and a cursor appears onscreen.
- The motherboard ROM BIOS scans memory locations C800:0000–DF80:0000 in 2KB increments for any other ROMs located on any other adapter cards (such as SCSI adapters). If any ROMs are found, they are checksum-tested and executed. These adapter ROMs can alter existing BIOS routines and establish new ones.
- Failure of a checksum test for any of these ROM modules causes the message XXXX ROM Errorto appear, where the address XXXX indicates the segment address of the failed ROM module.
- The ROM BIOS checks the word value at memory location 0000:0472 to see whether this start is a cold start or a warm start. A word value of 1234h in this location is a flag that indicates a warm start, which causes the BIOS to skip the memory test portion of the POST. Any other word value in this location indicates a cold start, and the BIOS performs the full POST procedure. Some system BIOSs let you control various aspects of the POST procedure, making it possible to skip the memory test, for example, which can be lengthy on a system with a lot of RAM.
- If this is a cold start, the full POST executes; if this is a warm start, a mini-POST executes, minus the RAM test. Any errors found during the POST are reported by a combination of audio and displayed error messages. Successful completion of the POST is indicated by a single beep (with the exception of some Compaq computers, which beep twice).
- The ROM BIOS searches for a boot record at cylinder 0, head 0, sector 1 (the very first sector) on the default boot drive. At one time, the default boot drive was always the first floppy disk (or A: drive). However, the BIOSs on today’s systems often enable you to select the default boot device and the order in which the BIOS will look for other devices to boot from if necessary, using a floppy disk, hard disk, or even a CD-ROM drive in any order you choose. This sector is loaded into memory at 0000:7C00 and tested.If a disk is in the drive but the sector can’t be read, or if no disk is present, the BIOS continues with step 19.
Booting from Optical, USB, or Floppy
If you want to boot from an optical or USB drive, be sure the drive is listed before the hard disk in the boot devices or sequence menu in your BIOS setup. If you have a floppy drive installed, you can set that to come before the hard disk in the sequence as well. This enables you to always be ready for an emergency. So long as you do not start up the system with a bootable USB drive, floppy, or optical disc loaded, the BIOS bypasses them and boots from the hard drive instead.
- If you are booting from a floppy disk and the first byte of the volume boot record is less than 06h, or if the first byte is greater than or equal to 06h and the first nine words contain the same data pattern, this error message appears and the system stops: 602-Diskette Boot Record Error
If the volume boot record can’t find or load the system files, or if a problem was encountered loading them, one of the following messages appears: Non-System disk or disk error, Replace and strike any key when ready; Non-System disk or disk error, Replace and press any key when ready; Invalid system disk, Replace the disk, and then press any key; Disk Boot failure; Disk I/O Error
All these messages originate in the volume boot record (VBR) and relate to VBR or system file problems.
- If no boot record can be read from drive A: (such as when no disk is in the drive), the BIOS then looks for an MBR at cylinder 0, head 0, sector 1 (the first sector) of the first hard disk. If this sector is found, it is loaded into memory address 0000:7C00 and tested for a signature.
- If the last two (signature) bytes of the MBR are not equal to 55AAh, software interrupt 18h (Int 18h) is invoked on most systems. This causes the BIOS to display an error message that can vary for different BIOS manufacturers, but which is often similar to one of the following messages, depending on which BIOS you have.
Note: Some IBM computers since 1987 display a strange character graphic depicting the front of a floppy drive, a 3 1/2-inch disk, and arrows prompting you to insert a disk in the drive and press the F1 key to proceed.
Although the messages vary from BIOS to BIOS, the cause for each relates to specific bytes in the MBR, which is the first sector of a hard disk at the physical location cylinder 0, head 0, sector 1.
The problem involves a disk that either has never been partitioned or has had the Master Boot Sector corrupted. During the boot process, the BIOS checks the last two bytes in the MBR (first sector of the drive) for a signature value of 55AAh. If the last two bytes are not 55AAh, an Interrupt 18h is invoked, which calls the subroutine that displays one of the error messages just shown, which basically instructs the user to insert a bootable floppy to proceed.
The MBR (including the signature bytes) is written to the hard disk by the FDISK, Disk Management, or DISKPART programs. Immediately after a hard disk is low-level formatted, all the sectors are initialized with a pattern of bytes, and the first sector does not contain the 55AAh signature. In other words, these ROM error messages are exactly what you see if you attempt to boot from a hard disk that has been freshly low-level formatted but has not yet been partitioned or if the MBR has been corrupted such that the signature bytes were overwritten.
- The MBR searches its built-in partition table entries for a boot indicator byte marking an active partition entry.
- If none of the partitions are marked active (bootable), the BIOS invokes software interrupt 18h, which displays an error message (refer to step 20).
- If any boot indicator byte in the MBR partition table is invalid, or if more than one indicates an active partition, the following message is displayed and the system stops: Invalid partition table
- If an active partition is found in the MBR, the partition boot record from the active partition is loaded and tested.
- If the partition boot record can’t be read successfully from the active partition within five retries because of read errors, the following message is displayed and the system stops: Error loading operating system
- The hard disk’s partition boot record is tested for a signature. If it does not contain a valid signature of 55AAh as the last two bytes in the sector, the following message is displayed and the system stops: Missing operating system
- The volume boot record is executed as a program. This program looks for and loads the operating system kernel or system files. If the volume boot record can’t find or load the system files, or if a problem was encountered loading them, one of the following messages appears: Non-System disk or disk error, Replace and strike any key when ready; Non-System disk or disk error, Replace and press any key when ready; Invalid system disk, Replace the disk, and then press any key; Disk Boot failure; Disk I/O Error
All these messages originate in the volume boot record (VBR) and relate to VBR or system file problems.
From this point forward, what happens depends on which operating system you have. The operating system–dependent boot procedures are discussed in the next several sections.
- PC Diagnostics, Testing, And Maintenance
- The POST
- BIOS POST Beep Codes, Checkpoint Codes, And Onscreen Messages
- Peripheral And Operating System Diagnostics
- Commercial Diagnostics Software And Free/User Supported Diagnostics
- The Boot Process
- The Hardware Boot Process: Operating System Independent
- DOS And Windows 9x/Me Boot Processes And Windows 2000/XP Startup
- Windows 7/Vista And Windows 8 Startup
- PC Maintenance Tools
- Hand Tools Continued
- Test Equipment: Electrical, Loopback Connectors, And Meters
- Test Equipment: Logic Probes, Outlet Testers, And Memory Module Testers
- Special Tools For The Enthusiast
- Preventative Maintenance
- Cleaning A System
- System Disassembly And Cleaning Procedures
- Passive Preventive Maintenance Procedures
- Passive Preventive Maintenance Procedures Continued
- Troubleshooting Tips And Techniques
- Troubleshooting: Replacing Parts And The Bootstrap Approach
- Problems During POST, Running Software, And Adapter Cards