Skip to content

osonitc/System-Heirarchy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

System-Heirarchy

To learn system heirarchy from basics

   ┌──────────┐
   │ Power ON │
   └──────────┘
         │
         │
         ▼
   ┌──────────┐
   │  B I O S │ Basic Input Output System
   └──────────┘
         │
         │
         ▼
   ┌──────────┐
   │  M B R   │ Master Boot Record, also known as First Sector of Hard Disk
   └──────────┘
         │
         │  
         ▼
        ╱ ╲
       ╱   ╲
      ╱     ╲
     ╱       ╲
    ╱ MBR code╲     
   ╱checks the ╲
  ╱    MBR's    ╲
 ╱   partition   ╲      Found       ┌──────────┐
 ╲ table for a   ╱─────────────────►│  V B R   │ Volume Boot Record 
  ╲ partition   ╱                   └──────────┘ 
   ╲ set as    ╱                          │
    ╲bootable ╱                           │         
     ╲       ╱                            │   
      ╲     ╱                             │
       ╲   ╱                              │
        ╲ ╱                               │
Not found│                                │
         │ MBR may load a secondary boot  │
         │ loader which will select a     │    
         │       partition                │     
         │◄───────────────────────────────┘
         ▼  
  ┌─────────────┐
  │ Boot Loader │
  └─────────────┘
         │
         │
         ▼
   ┌───────────┐
   │   O  S    │ Operating System
   └───────────┘

First process to start when a system is started is to load the operating system. This process is called booting. Firstly, we need to get the instruction to boot. These instructions are stored in BIOS chip.

###BIOS The main purpose of BIOS is to load OS program. BIOS performs POST ( POWER ON SELF TEST ) for verifying all hardware components are working properly.

Following are the sequence of instructions that BIOS follows :-

  1) Load CMOS chip : CMOS stores the BIOS settings. That is why when you remove CMOS battery, the BIOS resets.
  2) Load interrupt handlers
  3) Initializes registers and power management
  4) POST
  5) Display system settings
  6) Detect bootable devices
  7) Initialize bootstrap sequence : Bootstrap sequence is to load OS.

###Boot Devices

BIOS supports booting from devices such as:
a. A local hard disk drive via the Master Boot Record (MBR) (and of several MS-DOS partitions on such a disk, or GPT through GRUB 2). 
b. an optical disc drive (using El Torito).
c. a USB mass storage device (FTL-based flash drive, SD card, or multi-media card slot; hard disk drive, optical disc drive, etc.). 
d. a network interface card (using PXE).

Older, less common BIOS-bootable devices include floppy disk drives, SCSI devices, Zip drives, and LS-120 drives.

This project is under active development.

This project can have mistakes. Contributers are welcome.

About

A detailed step by step guide for learning system heirarchy of a system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published