knowledge

Overview

This note covers the boot process and file systems for Windows and Linux. It includes hardware initialization via BIOS/UEFI, disk partitioning schemes, file system types, and the full boot sequence from POST through kernel initialization to user login.


Terminology

TermDefinition
BIOSBasic Input/Output System; legacy firmware interface managing the boot process
UEFIUnified Extensible Firmware Interface; modern BIOS replacement with larger drive support and Secure Boot
POSTPower On Self Test; hardware initialization and error check before booting
MBRMaster Boot Record; 512-byte boot sector containing boot loader and partition table
GPTGUID Partition Table; modern MBR replacement supporting larger disks and integrity checks
GRUBGrand Unified Bootloader; common Linux boot loader
PartitionLogical division of a physical disk into separate storage segments
SectorSmallest addressable unit on a disk; typically 512 bytes
MetadataData about data — e.g., MFT in NTFS, FAT tables
Allocated SpaceDisk blocks actively used by files
Unallocated SpaceFree disk space not assigned to any file

Core Concepts

Hard Drive Types

Drive TypeDescription
HDD (Hard Disk Drive)Magnetic platters divided into sectors; slower, mechanical
SSD (Solid State Drive)Flash memory in NAND cells; no moving parts; faster and non-volatile

Commands: fdisk -l — view disk info | parted -l — view unallocated space

Firmware — BIOS vs UEFI

FeatureBIOSUEFI
AgeLegacyModern
Drive Size SupportLimitedLarge drives (2TB+)
Boot SpeedSlowerFaster
SecurityBasicSecure Boot support
Partition StyleMBRGPT

Partitioning — MBR vs GPT

FeatureMBRGPT
Max Drive Size2TB9.4ZB
Max Partitions4 primary128
Integrity ChecksNoCRC values stored
Associated FirmwareBIOSUEFI

MBR structure: Boot Loader (446 bytes) | Disk Partition Table (64 bytes) | Magic Number AA55 (2 bytes)

File Systems

Windows

File SystemUse Case
FATLegacy systems
NTFSModern Windows — see Windows Fundamentals for permissions detail

Command: fsutil fsinfo ntfsinfo C: — view NTFS file system info

Linux

File SystemUse Case
ext3Older Linux systems
ext4Standard modern Linux file system

Commands: mount | column -t — view mounted file systems | df -h — view disk space allocation

macOS / iOS

  • APFS (Apple File System) — default on modern Apple devices

Boot Process — Linux

  1. BIOS/UEFI — runs POST, executes MBR
  2. MBR — loads GRUB
  3. GRUB — executes the Linux kernel
  4. Kernel — loads /sbin/init
  5. Init — executes runlevel programs from /etc/rc.d/rc*.d/
Init SystemDescription
SysVTraditional boot system using runlevels
SystemdModern init system; flexible and robust

Systemd unit types: .service | .mount | .target Commands: systemctl list-units — list active units

Boot Process — Windows

  1. BIOS/UEFI — runs POST, executes MBR
  2. MBR — executes Windows Boot Manager (WBM)
  3. Windows Boot Manager — loads Windows OS Loader
  4. Windows OS Loader — loads NT OS Kernel
  5. NT OS Kernel — executes smss.exe and csrss.exe
  6. Winlogonwininit.exe reaches login screen
  7. Explorerexplorer.exe runs after user login


References / Images

  • BIOS vs UEFI comparison diagrams
  • MBR structure diagram
  • Linux SysV vs Systemd boot flow diagrams
  • Windows boot process illustration