1.3 Partitioning and Boot Process
Storage Basics
Section titled “Storage Basics”The Filesystem Hierarchy Standard (FHS)
Section titled “The Filesystem Hierarchy Standard (FHS)”Linux organizes files in a tree structure, not drive letters (C:, D:). Everything starts at / (root).
| Path | Purpose |
|---|---|
/ | Root. The top of the hierarchy. |
/boot | Kernel (vmlinuz), initramfs, and bootloader config. |
/etc | Configuration files. |
/home | User data (e.g., /home/alice). |
/root | Home directory for the root user. |
/var | Variable data: logs, databases, websites (/var/www). |
/tmp | Temporary files (often cleared on reboot). |
/bin, /usr/bin | Binaries (programs) like ls, cp. |
Partitioning Schemes
Section titled “Partitioning Schemes”MBR (Master Boot Record)
Section titled “MBR (Master Boot Record)”- Legacy.
- Max 4 primary partitions.
- Max 2TB disk size.
GPT (GUID Partition Table)
Section titled “GPT (GUID Partition Table)”- Modern standard (part of UEFI spec).
- Practically unlimited partitions.
- Supports massive disks (Zettabytes).
Recommended Partition Layout:
The Boot Process
Section titled “The Boot Process”How do we get from power button to login prompt?
- BIOS/UEFI: Firmware initializes hardware and looks for the boot device.
- GRUB2 (Grand Unified Bootloader): Detailed menu to select the Kernel. Loads the Kernel into memory.
- Kernel: The core OS. It initializes hardware drivers.
- Initramfs: A small temporary filesystem loaded into RAM. It helps the kernel fix mounting the real hard drive (e.g., loading decryption keys or specialized drivers).
- Init (Systemd): The first process (
PID 1). It reads configuration files and starts all other services (Network, SSH, Web Server) in parallel.
Related Concepts: Disks and Partitions Learn more about handling disks in Module 4.