8
1
I'm trying to understand what happens when a computer is turned on. How the computer works on startup, various initializations that take place, etc. For example, is the bootstrap loader the first step? When are device drivers loaded?
8
1
I'm trying to understand what happens when a computer is turned on. How the computer works on startup, various initializations that take place, etc. For example, is the bootstrap loader the first step? When are device drivers loaded?
7
The startup/boot sequence varies somewhat between different operating systems (although the early steps are generally common).
Also providing any sufficiently detailled description of the boot sequence is well beyond the scope of an SO answer. I'd rather refer you to the following links
For Windows, "Windows Internals" by Russinovich et al provides a very detailed walkthrough of the Windows boot sequence (and lots of other stuff, of course). – None – 2010-04-14T02:15:16.157
1Regarding the POST in the BIOS: I wonder if the handbook of the first IBM PC is still around. It included the source of the BIOS in 8086 assembler, after reading you could understand why the boot process was so slow. – ott-- – 2013-09-02T11:24:21.600
@ott-- I'm sure there are still copies around. Lots of folks are "into" those old PCs and have stuff like that. (Though I tossed mine out at least a week ago.) – Daniel R Hicks – 2013-09-05T20:15:46.127
4
First, the hardware in your motherboard does a basic check to make sure the minumum number of components is present such as RAM, video out, hard drive, keyboard, mouse etc.
This is why your keyboard flashes when you boot your computer. Then, the program embedded in the motherboard finds the boot sector of your hard drive, and looks for an operating system there.
If it finds it, then it passes control to the operating system, which then begins to load itself into memory, and do things like load device drivers and such.
If you are interested in the steps the operating system is taking, you can press F8(assuming Windows here) while your computer is booting, and that will give you some options for booting. I believe one of the options will let you see what the OS is doing step by step in its load.
Windows comes with a utility called msconfig which allows you to see all of the things that the OS loads.
1
Google's Chromium OS Fast Boot goes over boot sequence from a traditional operating system. Though if you want specifics we'd have to know the operating system.
Thanks you.. I just wanted to understand the common boot sequence across all the O.S .. – name_masked – 2010-04-14T16:54:02.847
1
In summary following things happen
Qualification: On a standard PC. "Real" computers generally use a different sequence, often involving having a "service processor" do the POST and initial load. – Daniel R Hicks – 2013-09-05T11:33:15.940
Real computers, at least from the advent of the 80386 onwards, don't start as given in step #3, either. – JdeBP – 2014-01-01T16:20:59.817
2Watch a few different linux distros boot up such as Debian - that may give you some idea of what's going on. – None – 2010-04-14T02:01:01.203
2Are you interested from a "poweruser" perspective or a "if I was going to write my own OS, what would I need to handle" perspective? As it stands, I think the question is too broad to get a good answer. – SqlRyan – 2010-04-14T02:03:49.113
3The magic smoke goes to all the right places and powers things up. ;) – vivin – 2010-04-14T02:09:41.103
I'm going to guess from an "i want to know as much as is possible" perspective. – RCIX – 2010-04-14T06:08:39.860
@RCIX: That is right :) .. A common sequence across all the O.S would also be great – name_masked – 2010-04-14T17:10:24.080
Well, first you use the switches and lights on the front panel to key in the bootstrap loader, then load the loader tape in the paper tape reader or card reader. Then... What? It's time for my meds? Oh, well, you folks can fill it in from there. – Daniel R Hicks – 2013-09-03T16:54:32.453
@DanielRHicks: Hahaha .. is that enough or you want more laughter? :-) – name_masked – 2013-09-04T18:48:02.673
@darkie15 - You don't think I was serious?? – Daniel R Hicks – 2013-09-05T11:30:34.820
@DanielRHicks: I am pretty sure " It's time for my meds?" does not qualify as a appropriate answer for any technical query .. – name_masked – 2013-09-05T19:55:23.670
@darkie15 - Well, when you get to my age it kind of goes with the territory. – Daniel R Hicks – 2013-09-05T20:14:30.183