After this chapter you will be able to
- explain the boot process step by step
- distinguish cold and warm booting
- compare BIOS and UEFI, and MBR and GPT
- explain files, folders, paths and file attributes
- compare common file systems (FAT32, exFAT, NTFS, ext4, APFS)
18.1 Booting
Booting is the process of starting a computer and loading the operating system into RAM.
- The word comes from “bootstrap” — pulling oneself up by one’s bootstraps.
- The small program that starts loading the OS is the bootstrap loader (boot loader).
- The first start-up instructions are kept in ROM. The bootstrap loader is the part that starts the process of loading the OS.
- The OS itself is stored on secondary storage (hard disk or SSD). During booting it is copied into RAM.
- In Unix/Linux, init is the first process started at boot. Its process ID (PID) is 1, and it is the ancestor of all other processes.
- Some exam books treat the operating system as the first program run at power-on. Technically, the firmware (BIOS/UEFI) runs first and then loads the OS.
| Type | How | Also called |
|---|---|---|
| Cold boot | Starting a computer that was switched off (power button) | Hard boot |
| Warm boot | Restarting a computer that is already on (Restart option, or Ctrl + Alt + Del in older systems) | Soft boot |
- Power ON
- SMPS supplies power
- CPU runs BIOS/UEFIfrom ROM / flash
- POSTchecks CPU, RAM, keyboard, disks — beep codes on error
- Find boot deviceorder set in BIOS setup
- Boot loaderfrom MBR/GPT — Windows Boot Manager, GRUB
- OS kernel loaded into RAM
- Drivers & services start
- Login screen / desktop
Steps
- Power on — the SMPS supplies power; the CPU starts running firmware.
- POST (Power-On Self-Test) — checks essential hardware. Errors are shown as beep codes or messages.
- Find boot device — as per boot order (SSD/HDD, USB, network).
- Load boot loader — from the MBR/GPT of the boot disk.
- Load the OS kernel into RAM.
- Start services and drivers, then show the login screen.
★ EXAM POINT — POST runs at every start and is stored in ROM as part of the BIOS/UEFI. The OS is loaded from hard disk/SSD into RAM during booting.
18.2 BIOS, CMOS and UEFI
| Term | Full form | Meaning |
|---|---|---|
| BIOS | Basic Input Output System | Firmware in ROM/flash that tests hardware and starts the boot loader (1975 onward) |
| CMOS | Complementary Metal-Oxide Semiconductor | Small memory that stores BIOS settings, date and time; powered by the CMOS battery |
| UEFI | Unified Extensible Firmware Interface | Modern replacement for BIOS |
| BIOS setup | — | Screen opened by a key at start-up (often Del, F2, F10 or Esc, depending on the maker) |
BIOS vs UEFI
| Feature | BIOS (Legacy) | UEFI |
|---|---|---|
| Age | 1970s–80s design | Modern (2005 onward; standard on new PCs) |
| Partition style | MBR | GPT |
| Max boot disk | About 2 TB | Over 9 zettabytes (practically unlimited) |
| Interface | Text, keyboard only | Graphical, mouse support |
| Boot speed | Slower | Faster |
| Security | Basic | Secure Boot (blocks unsigned boot loaders/rootkits) |
| Mode | 16-bit | 32/64-bit |
MBR vs GPT
| Feature | MBR (Master Boot Record) | GPT (GUID Partition Table) |
|---|---|---|
| Max disk size | 2 TB | Practically unlimited |
| Max primary partitions | 4 | 128 (in Windows) |
| Backup of partition table | No | Yes (at the end of the disk) |
| Holds | Boot loader code and the partition table | A partition table with a unique GUID for each partition |
| Location | First sector (512 bytes) of the disk | Header after the first sector, with a backup at the end |
| Used with | BIOS | UEFI |
⚡ QUICK FACT — Windows 11 requires UEFI with Secure Boot and TPM 2.0 (Trusted Platform Module — a security chip).
Firmware Facts
- BIOS shadowing: the BIOS code is copied from slow ROM into faster RAM, so that it runs faster.
- Boot order is the list of devices (hard disk, USB, network) the computer tries in turn. It is set in the BIOS/UEFI setup.
- BIOS functions: boot firmware (POST and starting the boot loader), initial hardware setup and basic power-management settings.
- Windows boot manager file: BOOTMGR (Windows 7 onward). Windows XP used NTLDR. Linux commonly uses GRUB.