Computer Science/computer loader

Advertisement


Question
It is pleasant to talk with you sir,
sir we know boot strap will boot firstly when switch on the computer next it load operating system and rest things and run.
But my question is how the boot strap loader itself going to load for the first time.

Answer
Hi there, and thanks for your questions.

When a computer is first turned on, the BIOS does a system check (called the POST, or Power On System Test).  Once all of the checks are done, the BIOS looks for the first hard drive in its register that is marked as "bootable".  Marking a drive bootable is done when you format it (using fdisk or a tool like it).

Once it finds the drive marked "bootable", the BIOS looks at the Master Boot Record of the bootable disk by default.  If there is code there, the BIOS executes it.  This is the point at which the bootloader takes control.

The MBR (Master Boot Record) starts at sector 0 of a disk and is about 512 bytes in size.  From there, you're technically in the boot loader (in Grub, it's called "stage 1").  From here, the initial (stage 1) bootloading code can boot the drive directly, or it can point to another, more advanced bootloader (ie: Grub stage 1.5 in Linux).

Hope this answers your questions!

Computer Science

All Answers


Answers by Expert:


Ask Experts

Volunteer


John OConnor

Expertise

Specific and general questions about computer science, including data structures, file systems, computer programming languages, regular expressions, and Software Engineering. I can answer general and specific questions about Linux. I can answer general and specific questions about the Android operating system. I cannot answer questions about specific problems with Microsoft(R) Windows(R) or Apple(R) Mac(R)

Experience

I've programming computers since 1993, and have a Bachelors of Science in Computer Science. I have 3 years of experience as a professional Software Engineer, and 5 years before that as a professional web developer. Since 2008, I've been the lead engineer at OC-Technology and RAD Software systems, developing mobile applications for various architectures, including the Android Operating System.

Organizations
Linux Users Group at LAX (LiLAX), Open Source Education Institute (founder), Northrop Grumman Linux Users Group (NoGLUG).

Education/Credentials
Bachelors of Science in Computer Science, California State University, San Bernardino.

Awards and Honors
Multiple Commendations from Northrop Grumman Mission and Space Systems,

©2012 About.com, a part of The New York Times Company. All rights reserved.