Re: The first file loaded is?



On Mon, Feb 08, 2010 at 09:23:41AM -0500, Decker, Ross wrote:

I'm just starting my adventure into BSD along with C++. I know that
this OS gives you all the source files that are used in the OS. What I'm
asking, is what is the name of the first file that is loaded and where
is the source file for it? I want to start with the very first line of
code and see if I can step my way through the entire boot process. There
are many things that I see during boot up that I have no idea what they
are (SMAP Type....) that aren't that Google Friendly.

So if anyone knows the names of the source files and their locations for
the boot sequence could you please post them..... SUPER thank you's!

Well, the first thing executed is the BIOS.
It discovers an MBR to suck in and transfer control to.
The MBR that it chooses is the one on the first one of its
list of boot devices that has an MBR. That all is pretty much
the same for all PC systems regardless of OS. Once it loads and
transfers control to the MBR it is dependand on the OS. The MBR
generally checks a couple things and chooses a boot sector from one
of the bootable partitions to read in and hand over control to.

If you poke around in man pages for boot and init you will learn a lot
of what you are asking.

////jerry


_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Boot Manager
    ... >>> No boot manager that usurps the MBR bootstrap area ... >>> will cooperate with a drive overlay manager which also usurps the MBR ...
    (microsoft.public.windowsxp.general)
  • Re: is this booting info correct?
    ... Microsoft/Windows and FreeBSD ... called the boot sector. ... If it contains boot up code the motherboard BIOS ... Each physical hard drive in the PC has it's own MBR (Master Boot ...
    (freebsd-questions)
  • Re: Mbr messed up?
    ... can't boot up at all after coming out of hibernation. ... Looked at the MBR sector which seems to be ok ... The bootstrap program is in the first 460 ... > program reads the partition table to find out which partition is marked ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: OT File recovery Software
    ... I guess some of you never used the fix MBR command? ... The Master Boot Record contains the Partition Table for the disk and a small ... first sector on the disk. ...
    (alt.med.fibromyalgia)
  • Re: OT File recovery Software
    ... > I guess some of you never used the fix MBR command? ... > The Master Boot Record will be created when you create the first ... > partition on the hard disk. ... > first sector on the disk. ...
    (alt.med.fibromyalgia)