Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How does a computer boot and how does this differ for Windows, Linux and other OSes?

share|improve this question
    
For further discussion, please look here: meta.superuser.com/questions/1856/… –  Ivo Flipse Jan 9 '11 at 20:15
    
As pointed out by some users, please help us clarify and split this question into sub questions as there are different types of firmware and OSes. We can write the common things they share in this question and refer to the other questions for a more detailed explanation, example question titles would be "How does an EFI load the boot sector?" and "How does OS X boot?". –  Tom Wijsman Jan 9 '11 at 23:33

4 Answers 4

up vote 3 down vote accepted

What are the several steps the computer does during boot on a BIOS PC?

When you power your computer on, the processor will start the BIOS boot program.

The BIOS phase

If everything goes well; the computer will look for a video card, execute a power-on self test and show all the useful information about this and the next steps on the BIOS startup screen:

enter image description here

You will see the computer perform a memory test, detect any storage devices connected and depending on BIOS you might also see a second screen showing you an inventory of everything the computer has detected through common interfaces like COM/LTP/USB/PnP/...

So, as your computer is now ready it will now follow the boot sequence to determine which drive to boot from, it will look through the master boot records until a boot partition has been found, in which case the computer will start to boot the operating system by executing the boot record.

The Boot Loader phase

Back in these days, we had to boot DOS and Unix which we could boot in a direct way. Nowadays, the boot procedure is subject to limits. So at this point we'll have to let a small boot loader load the larger boot procedure. The small boot loader will set up important stuff the boot procedure needs and will load the essential parts of boot procedure into memory.

This leads on to booting Windows, booting Linux or ...

share|improve this answer
1  
This is probably correct, however the OP asked about his computer and didn't tell us if it's EFI, BIOS, or one of the other firmware types. –  Ben Voigt Jan 9 '11 at 4:49
1  
That's the nice part of answering your own question: You're always right! –  Hello71 Jan 9 '11 at 19:27
2  
Oh that old BIOS picture...brings back memories. –  Simon Sheehan Sep 30 '11 at 23:24

Your computer will initialize, do some tests and load the boot loader first, then it will load Windows.

How does Windows boot after it's boot loader has been loaded?

The Kernel Booting phase

In this phase, the boot procedure will load the kernel, the device drivers, set up a session and start the first system processes, start the system services and load in basic functionality.

enter image description here

Once everything in this phase is done, the Local Security Authority Subsystem Service and Service Control Manager will be loaded followed by more services that load and Windows Logon.

The Windows Logon phase

Before and after you login; there might execute scheduled tasks, scripts and applications. Furthermore, once you login, the Desktop loads. Some people consider their computer booted once it hits the login screen, some when you get a working desktop...

In either case, your computer has finished booting!

share|improve this answer

Hey this may be useful as well http://duartes.org/gustavo/blog/post/kernel-boot-process

I have not read it myself(in my intsapaper queue for years) but it may be what you are looking for.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.