Documente Academic
Documente Profesional
Documente Cultură
service.info.apple.com/service_training/en/063/en/Lion_StartupProcess/index.php?page=printer
OS X Lion: Startup Introduction Course Overview The Startup Process Stage 1: Hardware Stage 2: Startup Stage 3: Login What is a Safe Boot? Symptoms & Fixes Troubleshooting Practice Learning Resources Contact Us Printer Friendly
This course covers the startup process for OS X Lion. Each stage in the process will be reviewed in detai which will help you troubleshoot and resolve startup issues.
Courses Overview
Course Objectives
Explain the Mac OS X startup process and its different stages Recognize when the startup process if abnormal Identify startup issues and possible fixes Demonstrate when and how a Safe Boot is used Determine and resolve common startup issues
Audience
Prerequisites
Time Required
60 minutes
The OS X Lion startup process begins when the power button is pressed and ends when the desktop ap The entire process is comprised of these three stages:
1. Hardware First, the system powers up, tests and prepares the hardware, and finds the startup disk with the b loader (program that places the operating system into memory).
2. Startup The operating system loads and starts everything else required by the login stage. Most startup iss occur at this stage.
3. Login The selected user logs in (either automatically or using the login window) and the operating system up the user's environment.
service.info.apple.com/service_training/en/063/en/Lion_StartupProcess/index.php?page=printer
1/10
3/25/12
service.info.apple.com/service_training/en/063/en/Lion_StartupProcess/index.php?page=printer
Troubleshooting Tip
When troubleshooting a startup issue, first, identify how far the startup process has advanced. After you know where the system is in the startup process, you can most effectively troubleshoot the issue.
Learning Resources
"About firmware updates for Intel-based Macs" (HT1557) "Intel-based Mac: Startup sequence and error codes, symbols" (HT2674) "Mac OS X: 'Broken folder' icon, prohibitory sign, or kernel panic when computer starts" (TS1892) "Mac OS X: Gray screen appears during startup" (TS2570) "Mac OS X: Starting up in Safe Mode" (HT1455) "Mac OS X: What is Safe Boot, Safe Mode?" (HT1564) "Power or Start Up Quick Assist" (HT1149) "Startup key combinations for Intel-based Macs" (HT1533)
Stage 1: Hardware
During this stage, your Mac receives initial power and checks hardware. Permanent software embedded piece of hardware (firmware) loads and instructs the Mac to then load the boot loader (program that pla operating system into memory).
1. Power On and POST When you press the power button, your Mac provides power to the logic board and performs a quic check of the hardware. This hardware check is called the power-on self test, or POST. This test resi read-only memory (ROM) of the computer. If the POST is successful, you hear the startup chime an memory test completes. If a fault is detected during the test, you will not hear a normal startup chi Instead, you may hear error beeps. When this occurs, the screen remains black.
2. Firmware Loads the Boot Loader The computer's firmware takes over. After the firmware loads, the Mac displays a blank gray screen the firmware decides from which disk to start the Mac (hard disk, installation disc, or NetBoot serve Note: If FileVault is enabled, the correct password must be entered in order to continue. Next, the firmware looks for a specific file called "boot.efi". That file is found in the /System/Library/CoreServices/ folder. After the boot loader loads, you see the gray Apple logo on screen:
The Apple logo indicates that the Hardware stage has ended, and the Startup stage has begun.
service.info.apple.com/service_training/en/063/en/Lion_StartupProcess/index.php?page=printer
2/10
3/25/12
service.info.apple.com/service_training/en/063/en/Lion_StartupProcess/index.php?page=printer
5 beeps = Processor is not usable
Stage 2: Startup
During this stage, the Mac finds and loads files on the startup disk, and starts everything the Login stag needs.
3. Graphical User Interface Starts When you see a dark linen background, the OS X Lion graphical user interface (GUI) has started. GUI process that runs is called loginwindow, followed by windowserver which is responsible for everything on the screen. 4. Login Window Appears Finally, you can log in. Based on your preferences, OS X Lion logs in automatically or you will need enter your name and password at the Login window:
Stage 3: Login
During the final stage, OS X Lion starts looking for user accounts and user-owned files, and starts runn programs for the user. These include the Finder, Dock, and any login items the user has chosen.
3/25/12
service.info.apple.com/service_training/en/063/en/Lion_StartupProcess/index.php?page=printer
1. User Environment The Finder opens, along with other necessary background processes like the Dock:
2. Login Items OS X Lion then opens login items (as set in the Users & Groups System Preference):
Safe Boot is a special way to start up when troubleshooting. After a Safe Boot, the Mac will enter into Sa Mode which will assist in isolating and identifying problems. To perform a Safe Boot, hold the Shift key as the Mac starts up. The Safe Boot startup screen appears:
service.info.apple.com/service_training/en/063/en/Lion_StartupProcess/index.php?page=printer
4/10
3/25/12
service.info.apple.com/service_training/en/063/en/Lion_StartupProcess/index.php?page=printer
Deletes the dynamic loader shared cache at (/var/db/dyld/). A cache with issues may cause a blue sc on startup, particularly after a Software Update. Restarting normally recreates this cache. These changes can help resolve software or directory issues that may exist on the startup volume.
Warnings
1. Safe Boot may take longer than normal. When you see the progress indicator (spin gear), the disk's directory is being checked and or repaired. This process may tak several minutes.
2. You cannot perform a Safe Boot if the computer owner or administrator has enabl firmware password protection. 3. If FileVault is enabled, the correct password must be entered.
Learning Activity
Perform a Safe Boot and explore Safe Mode. Your goal is to learn how the Mac behaves while in Safe Mode.
1. Power on or restart your Mac. 2. Hold down the Shift key as the Mac starts up. 3. Once the desktop appears, try using DVD player, iMovie, Safari and other applicat
The behavior of some devices (such as an AirPort card or USB peripherals) may also va Safe Mode. For more information on Safe Mode, refer to the OS X Lion: Troubleshootin Tools and Techniques course.
Here are frequent problems reported by users during startup. Follow steps in the order indicated below resolve the issue. Symptom #1: Hardware Stage - Power-on self test (POST) Fails Symptom #2: Hardware Stage - Mac displays blank gray screen or question mark Symptom #3: Startup Stage - Mac doesn't progress past spinning gear Symptom #4: Startup Stage - Startup process stops at dark linen background Symptom #5: Startup Stage - Login window doesn't appear Symptom #6: Login Stage - User environment doesn't appear Symptom #7: Login Stage - Before completely starting up, Mac stop responding
Troubleshooting Tip
service.info.apple.com/service_training/en/063/en/Lion_StartupProcess/index.php?page=printer 5/10
If the Mac can startup from the recovery partition, this tells you that the computer doe
3/25/12
service.info.apple.com/service_training/en/063/en/Lion_StartupProcess/index.php?page=printer
hard drive hardware or the software on it.
If the Mac can startup from the recovery partition, this tells you that the computer doe
have a system-wide startup failure. The problem can then be isolated to either the act
If you hear no chime, hear a series of error beeps, or see a flashing LED on the computer after you pres power button. Resolution
Before proceeding, consult hardware-specific resources to match specific LED codes or error beeps to s symptoms.
1. Remove any third-party or other added hardware (including RAM), internal or external devices, and again. 2. Reset the computer's PMU, SMU, or SMC to resolve power issues. 3. Reset PRAM and NVRAM: a. Shut down the computer. b. Locate the following keys on the keyboard: Command, Option, P, and R. c. Turn on the computer. d. Press and hold the Command-Option-P-R keys. You must press this key combination before the screen appears. e. Hold the keys down until the computer restarts and you hear the startup sound for the second ti f. Release the keys. 4. Run Apple Hardware Test, if possible, to identify common hardware failures. 5. Perform any other appropriate hardware troubleshooting or repairs. Back to top
Symptom #2: Hardware Stage - Mac displays blank gray screen or question m
Summary Upon startup, Mac fails to progress past blank gray screen or displays a folder with a question mark. Resolution
This condition tell us that the firmware has not found the boot loader on a startup disk. If this screen d for more than a minute:
1. Reset PRAM and NVRAM: a. Shut down the computer. b. Locate the following keys on the keyboard: Command, Option, P, and R. c. Turn on the computer. d. Press and hold the Command-Option-P-R keys. You must press this key combination before the screen appears. e. Hold the keys down until the computer restarts and you hear the startup sound for the second ti f. Release the keys. If the issue persists: 2. Try starting from the recovery partition.
If you can start from the recovery partition, but resetting PRAM/NVRAM fails to resolve the blank gr screen: 3. Reinstall OS X Lion. Note: When a Mac displays a folder with a question mark (as seen below), it has searched all available and is unable to find a startup disk that contains boot files.
service.info.apple.com/service_training/en/063/en/Lion_StartupProcess/index.php?page=printer
6/10
3/25/12
service.info.apple.com/service_training/en/063/en/Lion_StartupProcess/index.php?page=printer
Back to top
Symptom #3: Startup Stage - Mac doesn't progress past spinning gear
Summary
Mac displays the gray screen with the Apple logo, shows a spinning gear, never progresses past it or sh down. Resolution This symptom signals that the kernel cannot completely load the operating system.
1. Continue to wait. The system can perform a disk directory check automatically if it was shut down improperly. This p may take longer on larger hard disks. If you have decided that the startup has truly failed: 2. Start up the computer from the recovery partition. Hold down "Command" and "R" keys at start up. 3. Run Disk Utility to repair the startup disk. This can fix directory issues that can undermine the System Folder. If the issue persists:
4. Reset NVRAM/PRAM to clear any boot settings that may cause this issue. a. Shut down the computer. b. Locate the following keys on the keyboard: Command, Option, P, and R. c. Turn on the computer. d. Press and hold the Command-Option-P-R keys. You must press this key combination before the screen appears. e. Hold the keys down until the computer restarts and you hear the startup sound for the second ti f. Release the keys.
Note: If the kernel could not progress and displays the prohibitory sign below, this indicates that the ro device or startup disk driver could not be found, disk verification failed, or the computer is not with this version of the Mac OS.
Back to top
Symptom #4: Startup Stage - Startup process stops at dark linen background
Summary The startup process stops at the dark linen background. Resolution When this occurs, OS X Lion failed to load its graphical environment and system services. 1. Start up into Safe Mode to see whether corrupt fonts or extensions are causing the issue. Hold down the shift key during start up.
service.info.apple.com/service_training/en/063/en/Lion_StartupProcess/index.php?page=printer
7/10
3/25/12
service.info.apple.com/service_training/en/063/en/Lion_StartupProcess/index.php?page=printer
boot attempt.
2. Check the logs in Console (system.log or Console messages) for failure errors around the time of th
Console is a utility built in to OS X Lion that displays log files. You can check the Console if you can from the hard drive in Safe Mode, or check other log files using Terminal while started from the installation disc. If you cannot isolate the cause: 3. Boot from the recovery partition. Hold down "Command" and "R" keys at start up. 4. Use Disk Utility to repair the startup volume's directory and/or permissions. If Disk Utility reports no errors and you have repaired the volume's directory and/or permissions: 5. Reinstall OS X Lion. Back to top
service.info.apple.com/service_training/en/063/en/Lion_StartupProcess/index.php?page=printer
8/10
3/25/12
service.info.apple.com/service_training/en/063/en/Lion_StartupProcess/index.php?page=printer
(system.log and any crash logs) If the problem still exists: 7. Reinstall OS X Lion. Back to top
Symptom #7: Login Stage - Before completely starting up, Mac stop respondin
Summary User can log in, but OS X Lion stops responding before the Mac has completely started up. Resolution Try suppressing login items. 1. Start up into Safe Mode to see whether login items are causing the issue. Hold down the shift key during start up. If you are able to login: 2. Go to System Preferences > User & Groups. 3. Click Login Items for the affected user. 4. Try deleting login items. Restart and verify the fix. If this doesn't isolate the problem: 5. Reinstall OS X Lion. Back to top
Troubleshooting Practice
Taken from the experiences of Apple service personnel, here is a troubleshooting scenario involving the concepts presented in this course.
A customer complains that his Mac doesn't boot up. It doesn't progress any further than a blank gray sc What procedures should you follow? Click here to view answer
service.info.apple.com/service_training/en/063/en/Lion_StartupProcess/index.php?page=printer
9/10
3/25/12
service.info.apple.com/service_training/en/063/en/Lion_StartupProcess/index.php?page=printer
service.info.apple.com/service_training/en/063/en/Lion_StartupProcess/index.php?page=printer
10/10