Chapter 9: System Startup - 13 Questions Flashcards

1
Q

What are the primary system startup stages and user environment stages in OS X, and in what order do they start?

A

The primary system startup stages are: firmware, booter, kernel, and system launchd (in that order). The primary user environment stages are loginwindow, user launchd, and user environment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the visual and audible cues of the stages of system startup?

A

The visual and audible cues for system startup stages are: firmware—startup chime or bright flash of the power-on light followed by a light gray screen on the primary display; booter —a dark gray Apple logo on the primary display; kernel—a small dark gray spinning gear or spinning earth icon below the Apple logo; and system launchd—a white screen on all displays followed by the login screen.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the firmware do? What is the POST?

A

The firmware initializes the Mac’s hardware and locates the booter file on a system volume. The Power-On Self-Test (POST) checks for basic hardware functionality when your Mac turns on.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What role does the system launchd process serve during
system startup?

A

The system launchd process is ultimately responsible for starting every system process. It also manages system startup and starts the loginwindow process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What items are automatically started by the system
launchd during system startup?

A

During system startup, the system launchd process automatically starts /System/Library/LaunchDaemons, / Library/LaunchDaemons, /Library/StartupItems (via SystemStarter), and the /etc/rc.local UNIX script if it exists.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What role does the loginwindow process serve in system
startup?

A

The loginwindow process displays the login screen that allows the user to authenticate, and then sets up and manages the graphical interface user environment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the difference between launch daemons, startup items, launch agents, and login items?

A

The launchd process opens launch daemons and startup items during system startup on behalf of the root user. Launch agents and login items are opened during initialization of the user environment by the user’s specific launchd process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What happens during user logout?

A

During user logout, the user’s loginwindow process does the following: requests that the user quit all applications; automatically quits any user background processes; runs any logout scripts; records the logout to the main system.log file; resets device permissions and preferences to their defaults; and quits the user’s loginwindow and launchd processes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What happens during system shutdown?

A

During system shutdown, the loginwindow process logs all users out and then tells the kernel to quit all remaining system processes. Once the kernel quits all system processes, the Mac will shut down.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the difference between Safe Boot, Safe Mode, and Safe Login?

A

Safe Boot refers to when the system is starting up; Safe Mode is when the system is actually running; and Safe Login is when the system starts up the user session.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which items aren’t loaded when OS X safe-boots?

A

When OS X safe-boots, it doesn’t load any third-party items, such as KEXTs, launch agents, launch daemons, startup items, fonts, any user login items, or any user-specific launch agents.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What keyboard shortcut do you use to safe-boot OS X?

A

A Safe Boot is initiated by holding down the Shift key during system startup.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you resolve an issue that disappears when the Mac successfully safe-boots?

A

If an issue disappears when the Mac successfully safe-boots, then you must find and remove or quarantine the third-party startup resource that caused the issue. The best way to isolate the problematic item is to start up the Mac in Verbose mode and then see where the startup process fails. Verbose mode is initiated by holding down Command-V during system startup.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly