Upgrading and Repairing PCs Free Open Book

Upgrading and Repairing PCs

Previous Section Next Section

BIOS Error Messages

When a PC system is first powered on, the system runs a POST. If errors are encountered during the POST, you usually see a text error message displayed onscreen. Errors that occur very early in the POST might happen before the video card is initialized. These types of errors can't be displayed, so the system uses two other alternatives for communicating the error message. One is beeping—the system beeps the speaker in a specific pattern that indicates which error has occurred.

For detailed lists of the BIOS POST beep codes, see Chapter 23, "PC Diagnostics, Testing, and Maintenance," p. 1229.


The other alternative is to send a hexadecimal error code to I/O port address 80h, which can be read by a special card in one of the bus slots. When the ROM BIOS is performing the POST, in most systems the results of these tests are continuously sent to I/O Port 80h so they can be monitored by special diagnostics cards called POST cards (see Figure 5.7). These tests sometimes are called manufacturing tests because they were designed into the system for testing systems on the assembly line without a video display attached.

Figure 5.7. A typical POST card with two-digit hexadecimal code display (left) and a POST card in operation (right).

graphics/05fig07.gif

The POST cards have a two-digit hexadecimal display used to report the number of the currently executing test routine. Before executing each test, a hexadecimal numeric code is sent to the port and then the test is run. If the test fails and locks up the machine, the hexadecimal code of the last test being executed remains on the card's display.

Note

The DVD accompanying this book contains an exhaustive listing of additional error codes, error messages, and BIOS POST codes for BIOSs from Phoenix, AMI, Award, Microid Research, and IBM.

Many tests are executed in a system before the video display card is enabled, especially if the display is EGA or VGA. Therefore, many errors can occur that would lock up the system before the system could possibly display an error code through the video system. Because not all these errors generate beep codes, to most normal troubleshooting procedures, a system with this type of problem (such as a memory failure in Bank 0) would appear completely "dead." By using one of the commercially available POST cards, however, you can often diagnose the problem.

These codes are completely BIOS dependent because the card does nothing but display the codes sent to it. Some BIOSs have more detailed POST procedures and therefore send more informative codes. POST cards can be purchased from JDR Microdevices or other sources and are available in both ISA and PCI bus versions.

For simple but otherwise fatal errors that can't be displayed onscreen, most of the BIOS versions also send audio codes that can be used to help diagnose such problems. The audio codes are similar to POST codes, but they are read by listening to the speaker beep rather than by using a special card.

The following section details the text error codes for all the popular BIOS versions. For detailed lists of the BIOS POST beep codes, see Chapter 23.

General BIOS Boot Text Error Messages

During the boot process, the bootstrap loader routine in the motherboard ROM BIOS reads the first physical sector of each of the bootable drives or devices, which is cylinder 0, head 0, sector 1 in CHS mode or logical block address 0 in LBA mode. The code from the first sector is loaded into RAM, and the last two bytes are checked to see whether they match a signature value of 55AAh. If the signature bytes match, that tells the ROM that the first sector contains a valid MBR and that the ROM can continue by transferring control to the MBR code.

If the last two bytes of the first physical sector do not match 55AAh, the ROM continues by checking the first physical sector of the next bootable device in the boot sequence until it either finds one with a valid MBR or runs out of devices to check. If after checking all the drives or devices in the boot sequence, none are found to have the proper signature bytes indicating a valid MBR, the ROM invokes an interrupt 18h that calls a subroutine that displays an error message. The specific text or wording of the message varies according to the ROM manufacturer and version. The messages are detailed in the following section.

ROM BIOS Messages Indicating Boot Failure (No Valid MBR Found)

With no valid MBR or bootable device found, systems with a very old IBM BIOS display the infamous ROM BASIC interpreter, which looks like this:

The IBM Personal Computer Basic
Version C1.10 Copyright IBM Corp 1981
62940 Bytes free
Ok

IBM ROM BASIC

The ROMs of most PCs are similar to the original IBM systems with which they are compatible—with the exception of the ROM BASIC interpreter (also called Cassette BASIC). It might come as a surprise to some PC users, but the original IBM PC actually had a jack on the rear of the system for connecting a cassette tape recorder. This was to be used for loading programs and data to or from a cassette tape. IBM included the cassette port because cassette tapes were used by several early personal computers (including the Apple) because floppy drives were very expensive and hard disks were not even an option yet. However, floppy drives came down in price quickly right at the time the PC was first released, and the cassette port never appeared on any subsequent IBM systems. The cassette port also never appeared on any PC-compatible systems because floppy drives were cheap by the time they came out.

The reason for having BASIC in ROM was so the original PC could come standard with only 16KB of memory and no floppy drives in the base configuration. Many computer users at the time either wrote their own programs in the BASIC language or ran BASIC programs written by others. The BASIC language interpreter built in to the ROM BIOS of these early IBM systems was designed to access the cassette port on the back of the system, and by having the interpreter in ROM, all the 16KB of RAM could be used to store a program.

Even after the cassette port was eliminated, IBM left the BASIC code in the motherboard ROM until the early 1990s! I liken this to our having an appendix. The ROM BASIC in those IBM systems is sort of like a vestigial organ—a leftover that had some use in prehistoric evolutionary ancestors but has no function today.

You can catch a glimpse of this ROM BASIC on older IBM systems that have it by disabling all the disk drives in the system. In that case, with nothing to boot from, those systems unceremoniously dump you into the strange (vintage 1981) ROM BASIC screen.

People used to dread seeing this because it usually meant that the floppy disk or hard disk they were trying to boot from had become corrupted or had failed. Because no compatible systems ever had the BASIC interpreter in ROM, they came up with different messages to display for the same situations in which an IBM system would invoke this BASIC. The most confusing of these was the message from AMI BIOS, which simply said NO ROM BASIC - SYSTEM HALTED, which really meant that the system was incapable of booting.

With no valid MBR or bootable device found, systems with a more recent IBM BIOS display a screen using text graphic characters that look similar to Figure 5.8.

Figure 5.8. When the PC can't find the master boot record on a modern IBM BIOS, you are confronted with this graphic.

graphics/05fig08.gif

The meaning here is, "Insert a bootable floppy disk into the A: drive and press the F1 key."

With no valid MBR or bootable device found, systems with an AMI BIOS display the following message:

NO ROM BASIC - SYSTEM HALTED

This message is confusing to some because it seems to point to a problem with ROM BASIC, which of course is not what it really means! The AMI ROM does not include a BASIC interpreter in the ROM (neither do any other ROMs except those found in very old IBM machines), so instead of jumping into BASIC or displaying a useful message indicating there are no bootable devices, it displays this confusing message. The real meaning is the same as for all these messages, which is to say that none of the bootable devices in the boot sequence were found to contain signature bytes indicating a valid MBR in their first physical sectors.

With no valid MBR or bootable device found, systems with a Compaq BIOS display the following message:

Non-System disk or disk error
replace and strike any key when ready

This is another confusing message because this very same (or similar) error message is contained in the DOS/Windows 9X/Me VBR and normally is displayed if the system files are missing or corrupted. So, if you see this message on a Compaq system, you can't be sure whether the problem is in the MBR, VBR, or the system files, which makes tracking down and solving the problem more difficult.

With no valid MBR or bootable device found, systems with an Award BIOS display the following message:

DISK BOOT FAILURE, INSERT SYSTEM DISK AND PRESS ENTER

So far, that appears to be the least confusing of these messages. You don't need a secret decoder ring to figure out what it is really trying to say.

With no valid MBR or bootable device found, systems with a Phoenix BIOS display either this message:

No boot device available -
strike F1 to retry boot, F2 for setup utility

or this one:

No boot sector on fixed disk -
strike F1 to retry boot, F2 for setup utility

Which of these two messages you see depends on whether no boot devices were found or readable, or a boot sector could be read but was found not to have the proper signature bytes.

Although the message displayed varies from BIOS to BIOS, the causes are the same for all of them. Several things can cause these messages to be displayed, and many of them relate to the MBR.

The primary causes are disks that are new (have never been partitioned) or that have had the MBR corrupted.

The MBR, including the signature bytes, is written to the hard disk by the FDISK, DISKPART, or Disk Management program. When a drive is new or freshly low-level formatted, all the sectors are initialized with a default pattern of bytes. At that point, the first sector contains a test pattern or all 0s and the last two bytes of the sector do not contain the 55AAh signature. In other words, these ROM error messages are exactly what you see if you attempt to boot from a new hard disk or one that has been low-level formatted but not yet partitioned.

Now consider another situation that can cause these messages. If the signature bytes are correct, the BIOS executes the MBR code, which performs a test of the Boot Indicator bytes in each of the four partition table entries. These bytes are at offset 446 (1BEh), 462 (1CEh), 478 (1DEh), and 494 (1EEh), respectively. They are used to indicate which of the four possible primary partition table entries contains an active (bootable) partition. A value of 80h at any of these byte offsets indicates that the particular table contains the active partition, whereas all other values must be 00h. If more than one of these bytes is 80h (indicating multiple active partitions), or any of the byte values is anything other than 80h or 00h, you see the following error message:

Invalid partition table

If all these four boot indicator bytes are 00h—which indicates that no active (bootable) partitions exist—then the MBR returns control to the motherboard ROM. Also, if no other bootable devices exist, interrupt 18h is called and displays the same error messages as listed earlier.


This is exactly what occurs if you were to remove the existing partitions from a drive but had not created new partitions on the drive, or if you had failed to make one of the partitions Active (bootable) during partitioning before rebooting your system.

For more information on repairing or restoring the master boot sector (MBR), see Chapter 24, "File Systems and Data Recovery," p. 1299.


Another cause for these errors can occur with hard disks that are 8.4GB in size or less, which run in CHS mode. The problem is caused by tampering with the translation mode in the system BIOS for drives less than 8.4GB in size. Translation is used by drives between 528MB and 8.4GB, which alters the reported CHS geometry of the drive into a format that enables the entire disk (up to 8.4GB) to be used by DOS and Windows. Typically, three settings exist for translation: It can be disabled (often indicated by a setting of normal) or enabled using either CHS or LBA values. Translation using CHS values is often indicated by a setting of large, and translation using LBA values is indicated by a setting of LBA. If a drive is partitioned and formatted with LBA translation and the setting is later changed to CHS (often indicated as large), the bootstrap loader in the BIOS translates drive sector locations differently and might not properly load the MBR or make the proper jump from the MBR to the VBR of the bootable volume. This can cause one of the previously discussed error messages to appear, or it can cause the MBR to display the following message:

Missing operating system

Thus, if you see such errors on a system with a hard drive between 528MB (504MiB) and 8.4GB (7.9GiB), be sure to check the translation settings for the drive. On some of the older AMI BIOS Hi-Flex and WinBIOS (graphical) versions, the translation mode setting is not on the same screen as the hard disk setup but is buried in the Advanced or Built-in Peripherals setup screens where it can be turned off by autoconfiguring BIOS setup options.

Caution

Although 32-bit versions of Windows will not boot if the boot hard disk is changed from LBA mode back to Normal mode, a dangerous situation can take place if a hard disk greater than 528 MB (504 MiB) is partitioned with MS-DOS and LBA translation mode is turned off afterward. In such cases, if the hard disk needs to use more than the maximum of 1,024 cylinders supported by Normal mode to store new information, the hard disk loops back to the beginning of the disk and overwrites the master boot record! All the data on the drive is inaccessible until the MBR is restored, along with the partition tables it contained. See Chapter 24 for more information on the MBR and partition tables, including some tools and techniques for recovery.

    Previous Section Next Section


         Main Menu
    Main Page
    Table of content
    Copyright
    About the Author
    Acknowledgments
    Introduction
    Chapter 1. Development of the PC
    Chapter 2. PC Components, Features, and System Design
    Chapter 3. Microprocessor Types and Specifications
    Chapter 4. Motherboards and Buses
    Chapter 5. BIOS
    BIOS Basics
    BIOS Hardware/Software
    Motherboard BIOS
    Upgrading the BIOS
    CMOS Setting Specifications
    Plug and Play BIOS
    BIOS Error Messages
    Chapter 6. Memory
    Chapter 7. The ATA/IDE Interface
    Chapter 8. The SCSI Interface
    Chapter 9. Magnetic Storage Principles
    Chapter 10. Hard Disk Storage
    Chapter 11. Floppy Disk Storage
    Chapter 12. High-Capacity Removable Storage
    Chapter 13. Optical Storage
    Chapter 14. Physical Drive Installation and Configuration
    Chapter 15. Video Hardware
    Chapter 16. Audio Hardware
    Chapter 17. I/O Interfaces from Serial and Parallel to IEEE-1394 and USB
    Chapter 18. Input Devices
    Chapter 19. Internet Connectivity
    Chapter 20. Local Area Networking
    Chapter 21. Power Supply and Chassis/Case
    Chapter 22. Building or Upgrading Systems
    Chapter 23. PC Diagnostics, Testing, and Maintenance
    Chapter 24. File Systems and Data Recovery
    Appendix A. Glossary
    Appendix B. Key Vendor Contact Information
    Appendix C. Troubleshooting Index
    List of Acronyms and Abbreviations
    Index


    More Books
    PHP Hacks
    Processing Xml With Java - A Guide To Sax, Dom, Jdom, Jaxp, And Trax
    The Koran (Holy Qur'an)
    Macromedia Flash 8 Bible
    Search Engine Optimization for Dummies
    YouTube Traffic
    PHP 5 for Dummies
    Harry Potter and The Chamber of Secrets
    Harry Potter and the Sorcerer's Stone
    The Pilgrim's Progress
    Wireless Hacks
    Flash Hacks. 100 Industrial-Strength Tips & Tools
    PayPal Hacks. 100 Industrial-Strength Tips and Tools
    Amazon Hacks
    Pdf Hacks
    The Da Vinci Code
    Google Hacks
    The Holy Bible
    Windows XP For Dummies
    Harry Potter and the Half-Blood Prince
    Seo Book
    Upgrading and Repairing Networks
    Macromedia Dreamweaver 8 UNLEASHED
    Windows XP Annoyances
    Windows XP Hacks
    Microsoft Windows XP Power Toolkit
    Teach Yourself MS Office In 24Hours
    iPod & iTunes Missing Manual
    PC Hacks 100 Industrial-Strength Tips and Tools
    PC Overclocking, Optimization, and Tuning - 2th Edition
    PC Hardware In A Nutshell 3rd Edition
    PC Hardware in a Nutshell, 2nd Edition
    Upgrading and Repairing PCs
    Google for Dummies
    MySQL Cookbook
    Teach Yourself Macromedia Flash 8 In 24 Hours
    PHP CookBook
    Sams Teach Yourself JavaScript in 24 Hours
    PHP5 Manual
    Free Games Paper Airplanes
    500 Juegos Gratis 500 Giochi Gratis 500 Jeux Gratuits 500 Jogos Gratis 500 Kostenlose Spiele