It is important to properly Shutdown a Macintosh before turning it off. The computer keeps several files "open" (active) when it is turned on, including the Finder and System files. If these files are not closed before the Macintosh is turned off, the open files may be corrupted. Also, any changes to open files that are still cached will not be saved.
The startup hardware diagnostic checks the memory, boot blocks, and other componants of the Macintosh. For example, the diagnostic checks a specific location in the boot sector that is written when the system is properly shut down. If the computer was not shut down correctly the last time it was on, the diagnostic will see this and perform a quick test of the file structure of the hard drive. If any of the diagnostic tests fail, the Macintosh will halt the startup sequence and display the "Sad Mac":
If a Macintosh boots and gives a "Sad Mac" immediately, the problem is probably caused by either faulty hardware or corrupted boot blocks. If the "Sad Mac" occurs later in the startup sequence, there may be other problems. Use the TroubleShooting Flowchart to diagnose problematic Macin toshes.
A startup disk's System folder must contain both a System File and a Blessing" the System folder. If the computer does not find a blessed System folder, it will display the "flashing disk" icon: