To understand what is a boot loader, it is recommended to see my previous post-Basics of Booting.
Here is the link if you haven't seen it yet-
https://sairohithkaranam.blogspot.com/2020/05/what-is-booting.html
What is a Boot Loader?
- The boot loader is the small program stored in ROM that loads the kernel from a storage device and then starts the OS.
- A boot environment like BIOS/UEFI reads the boot loader from ROM so that boot loader can execute various operations to start the process.
- Boot loaders are able to protect the boot process with a password to prevent unauthorized booting of the system.
- In addition, boot loaders can load more than one OS into the computer's memory.
Components of a Boot Loader:
The boot loader uses three main components that load the operating system together.
- Boot Sector Program:
→The first component of the boot loader.
→It is loaded by a boot environment on startup and has a fixed size of 512 bytes.
→Its main function is to load the second stage boot loader.
→However, it can load another sector or kernel. - Second Stage Boot Loader:
→Loads the operating system and contains a kernel loader. - Boot Loader installer:
→This controls the installation of drive sectors and can be run only when booting from a drive.
→It coordinates the activities of the boot sector program and second stage boot loader.
Comments
Post a Comment