OS X - Operating System General OS operation information and support

Lion boot sequence/process


Post Reply New Thread Subscribe

 
Thread Tools
dm33

 
Member Since: Oct 27, 2011
Posts: 2
dm33 is on a distinguished road

dm33 is offline
Does anyone know the technical details regarding how Lion boots? I've found references online discussing Tiger and earlier releases, but nothing since then. Its changed quite a bit since Tiger. rc.* files are no longer used. launchd appears to drive most of the boot, but I haven't found references regarding how.

Thanks
QUOTE Thanks
thorn101

 
Member Since: Oct 20, 2011
Posts: 9
thorn101 is on a distinguished road

thorn101 is offline
Launchd is pretty well documented (man launchd), I'm not sure where you looked.
Anyway here's the short version of the boot process
  1. EFI activates, initializes the hardware, and then loads boot.efi.
  2. boot.efi loads the kernel , draws the “booting” image on the screen and loads any needed kernel extensions (kexts).
  3. The kernel loads launchd.
  4. launchd runs through /System/Library/LaunchAgents and /Library/LaunchDaemons and acts on the plists as needed, and starts the login window.

If you are interested in the early boot process, it is documented here
The Early Boot Process

If you want to go through the code of launchd, it is available here http://www.opensource.apple.com/sour...aunchd-392.35/
QUOTE Thanks
dm33

 
Member Since: Oct 27, 2011
Posts: 2
dm33 is on a distinguished road

dm33 is offline
Quote:
Originally Posted by thorn101 View Post
Launchd is pretty well documented (man launchd), I'm not sure where you looked.
Anyway here's the short version of the boot process
  1. EFI activates, initializes the hardware, and then loads boot.efi.
  2. boot.efi loads the kernel , draws the “booting” image on the screen and loads any needed kernel extensions (kexts).
  3. The kernel loads launchd.
  4. launchd runs through /System/Library/LaunchAgents and /Library/LaunchDaemons and acts on the plists as needed, and starts the login window.

If you are interested in the early boot process, it is documented here
The Early Boot Process

If you want to go through the code of launchd, it is available here Source Browser
Thanks! Thats great info. What I've specifically been looking for is where in the boot process it invokes fsck_hfs on the boot drive. I recently had some trouble with an HP printer uninstall which made my system a vegetable stuck with the last message that it was going to run fsck_hfs when booting showing verbose output. I've grepped the launch agents and daemons and find no mention of fsck. Maybe its implied or occurs during an earlier phase.
QUOTE Thanks
thorn101

 
Member Since: Oct 20, 2011
Posts: 9
thorn101 is on a distinguished road

thorn101 is offline
I'm not sure that fsck is initiated by launchd. Fsck is just a wrapper for other tools like fsck_msdos and fsck_udf etc.
The mach_kernel starts the fsck (fsck together with the other fsck_xxx are in /sbin/).

I guess because of the driver problems you are experiencing (kext driver) the kernel doesn't load and the last message you see is fsck message (even though your problem I think has nothing to do with the file system)

Anyway, regarding your problem, how did you uninstall the driver?
Can you boot in single user mode? etc

Maybe if you supply more info someone might be able to help you better.

Last edited by thorn101; 10-29-2011 at 03:32 PM.
QUOTE Thanks

Post Reply New Thread Subscribe


« Mac OSX 10.5.8 black squares over icons | Macbook ar with Lion - fast battery discharges »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Need to boot broken Mac-Mini using retail Snow Leopard 10.6 DVD zita_escobar OS X - Operating System 11 03-07-2012 07:52 AM
Dual or Triple Booting? Mac OS-X Snow Leopard, Lion and Windows? ELSELS OS X - Operating System 3 10-20-2011 12:25 PM
OS 10.7 Lion feature/rumour roundup the8thark Apple Rumors and Reports 44 08-17-2011 02:03 PM
Amazon Germany lists Mac OS X 10.7 Lion on DVD OneMoreThing... Apple Rumors and Reports 0 04-25-2011 06:03 PM
Boot Camp cannot partition / Bootdisk failing mmav OS X - Operating System 3 09-24-2008 04:26 PM

All times are GMT -4. The time now is 02:42 PM.

Powered by vBulletin
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?