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
GRUB-BIOS-SETUP(3)					     Library Functions Manual						GRUB-BIOS-SETUP(3)

NAME
grub-bios-setup -- Set up images to boot from a device. SYNOPSIS
grub-bios-setup [-a | --allow-floppy] [-b | --boot-image=FILE] [-c | --core-image=FILE] [-d | --directory=DIR] [-f | --force] [-m | --device-map=FILE] [-s | --skip-fs-probe] [-v | --verbose] DEVICE DESCRIPTION
You should not normally run this program directly. Use grub-install instead. OPTIONS
--allow-floppy Make the device also bootable as a floppy. This option is the default for /dev/fdX devices. Some BIOSes will not boot images cre- ated with this option. --boot-image=FILE Use FILE as the boot image. The default value is boot.img. --core-image=FILE Use FILE as ther core image. The default value is core.img. --directory=DIR Use GRUB files in the directory DIR. The default value is /boot/grub. --force Install even if problems are detected. --device-map=FILE Use FILE as the device map. The default value is /boot/grub/device.map . --skip-fs-probe Do not probe DEVICE for filesystems. --verbose Print verbose messages. SEE ALSO
info grub Wed Feb 26 2014 GRUB-BIOS-SETUP(3)