What Does Happen During Boot Process? - BIOS and MBR


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers What Does Happen During Boot Process? - BIOS and MBR
# 1  
Old 12-11-2009
What Does Happen During Boot Process? - BIOS and MBR

I'm talking about boot process in multi-boot Linux perceptive.

Please tell me whether my explanation is right or wrong? If wrong, please explain.

"The BIOS checks the system and loads this initial bootstrapping code into
memory. This initial bootstrap code searches for an active partition and looks for a first sector of that active partition.

After that, bootstrap code gets whatever boot code (usually GRUB Stage 1) in the VBR and loads it in memory, so GRUB Stage 1 in this case overrides the MBR initial bootstrap that's in memory.

Once GRUB Stage 1 is in memory, it takes GRUB Stage 2 from /boot/ and loads it memory. Thus, GRUB Stage 2 overrides the GRUB Stage 1.

Now once GRUB Stage 2 is in memory, it presents an interface where the user
can select which OS to boot.

Once OS is selected, the GRUB stage 2 loads the selected Kernel into Memory, so the chosen OS Kernel overrides GRUB Stage 2.

Now this Kernel has the control and finishes the process.
"

Thanks!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Trying to understand the boot process

I understand the OBP program looks for the boot-device, loads the bootblk (located on physical disk sectors 1 through 15). Then the secondary boot program, /platform/`arch -k`/ufsboot is run. This program loads the kernel core image files (genunix and unix). So how does it uses the ufsboot and... (1 Reply)
Discussion started by: MR.bean
1 Replies

2. Red Hat

Boot process hang

Hello, Sometime i see that the boot process hangs. I am using rhel 6.2. At that time in the console i see Probing EDD (edd=off to disable)... SSH service seems to be started but i can't login... ssh logs (last lines) in verbose mode level 3: debug2: we did not send a packet,... (3 Replies)
Discussion started by: @dagio
3 Replies

3. UNIX for Advanced & Expert Users

Understanding the boot process

Hey guys, I am working on a security module which checks signatures of binarys/shared libs. The Linux security framework (and thus my module) gets loaded early in the bootprocess. Right now all my module does is - whenever a binary gets mmap'ed for execution - print out a message using printk()... (1 Reply)
Discussion started by: disaster
1 Replies

4. Red Hat

Dual Boot Problem - Vista & Redhat -Incorrect BIOS geometry

Hi Folks, Initially I had vista and redhat 9 .. due to some reasons i had to re instal my vista again.. since then the dual boot menu disappeared.. i tried to re install redhat and changing the boot configuration of redhat 9 but i am not getting both the OS back .. I am not aboe to boot linux... (2 Replies)
Discussion started by: subhotech
2 Replies

5. Filesystems, Disks and Memory

Creating /boot partition & MBR concerns

I have 40GB HD with mepis8, swap, MBR and under flags word boot. I also have a 160 GB external with a few Linux OS, no swaps, no extended etc. I am total Linux no MS I would feel more secure by resizing that sda1 partition and creating a /boot partition with the MBR housed there. Is that a... (1 Reply)
Discussion started by: worthamtx
1 Replies

6. Programming

what would happen if a process wrote to its own stdin?

what would happen if a process wrote to its own stdin? #include<unistd.h> #include<fcntl.h> int main() { if((write(STDIN_FILENO,"arrgh!",6))==-1) { perror("error writing to file"); } } output: $ gcc temp.c $ ./a.out arrgh!$ (9 Replies)
Discussion started by: c_d
9 Replies

7. UNIX for Dummies Questions & Answers

About MBR,Boot Loader programe.

Hi all, I am newbie here.I want to know what is MBR,boot loader & boot strap programe. What is procedure of loading OS in to memory. Thanx in advance:) (1 Reply)
Discussion started by: vishwasrao
1 Replies

8. UNIX for Advanced & Expert Users

Unix ID deleted - What happen to process

I have an unix id (AIX system) which is used to run a couple of processes. They also write some log files into a file system (that is not in the home directory of the user id, but in different location). One bad day, the id was deleted accidentally. But the home directory, files and everything... (1 Reply)
Discussion started by: cmgreat
1 Replies

9. Red Hat

Dual boot (Booting Windows from Linux MBR)

Hi , I have two disk installed with Linux(disk 1) and WinXP(disk 2) .Now i am changing Hardisk jumbper manualy to get in to Linux/Windows .I want to configure my REDHAT linux boot manager to list Linux and WindowXP and wanna boot according to my choice . Here is what my fdisk -l shows (Only... (2 Replies)
Discussion started by: gkrishn
2 Replies
Login or Register to Ask a Question
NVRAM(4)						   BSD Kernel Interfaces Manual 						  NVRAM(4)

NAME
nvram -- non-volatile RAM SYNOPSIS
To compile this driver into the kernel, place the following line in your kernel configuration file: device nvram Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5): nvram_load="YES" DESCRIPTION
The nvram driver provides access to BIOS configuration NVRAM on i386 and amd64 systems. PC motherboard uses a small non-volatile memory to store BIOS settings which is usually part of its clock chip and sometimes referred as ``CMOS SRAM''. This driver exposes bytes 14 through 128 of the NVRAM, or a total of 114 bytes, at offset zero of the device file /dev/nvram. This driver is useful for cloning machines that shares the same hardware configuration and need same BIOS setting tweaks. IMPLEMENTATION NOTES
The BIOS NVRAM's bytes 16 through 31 are checksummed at byte 32. This driver does not take care for these checksums. EXAMPLES
Backup existing BIOS NVRAM to nvram.bin: dd if=/dev/nvram of=nvram.bin Restore BIOS NVRAM from nvram.bin: dd if=nvram.bin of=/dev/nvram SEE ALSO
dd(1) HISTORY
The nvram device driver first appeared in FreeBSD 6.4. AUTHORS
The nvram device driver was written by Peter Wemm. This manual page was written by Xin LI. BSD
February 8, 2010 BSD