
Develop hands-on troubleshooting skills for Linux boot failures in CentOS 10 and RHEL 10 by simulating real crashes and fixing grub, kernel, and root file system issues step by step.
Set up a safe virtual lab by installing Oracle VirtualBox, creating a CentOS 10 VM, and completing the installation and post-install steps to prepare for practical labs.
Download and install Oracle VirtualBox on Windows, resolve dependencies, accept the license terms, and explore the dashboard to create and manage virtual machines.
Download the CentOS 10 ISO from the official CentOS website and prepare it for VirtualBox installation by selecting the x86-64 architecture and a download mirror.
Create a new virtual machine in Oracle VirtualBox by naming it CentOS-10-test, selecting the VM folder and CentOS-10 ISO, and adjusting the OS edition and unattended installation settings.
Configure the virtual machine for unattended Linux installation in VirtualBox, setting the default vboxuser password, hostname centos-10-test, and enabling guest additions.
Configure virtual hardware by setting base memory, CPUs, and a virtual hard disk in VirtualBox; increase the 20 GB disk size to fit your CentOS 10 / RHEL 10 environment.
explain virtualization hard disk types, highlighting VirtualBox's VDI as the default. contrast VHD and VMDK formats, and cover dynamic versus pre-allocated storage, 2 gb splits, and using existing disks.
Uncheck the unattended installation option to reveal the CentOS installer, then proceed with a manual installation. Create the CentOS template, start the process, and log in after the system boots.
Configure the virtual machine for CentOS 10 installation by setting the VM name, OS, memory, boot order, and ISO image, then start the installer with CentOS stream 10.
Configure installation summary for CentOS 10 by selecting language and keyboard, source ISO, disk, enable KDE GUI server, set Asia/Kolkata time, and create a user with admin privileges for install.
Log in to the CentOS desktop after booting a CentOS VM in Oracle VirtualBox, then open the terminal and prepare to connect from Windows with MobXterm or PuTTY.
Access a linux vm from windows by installing MobaXterm and starting an ssh session with the vm's ip address, using PuTTY as an alternative.
Troubleshoot login by setting the VM network adapter to bridged, update the IP with ip a, and access the CentOS 10 VM from Windows via SSH as techstart.
Master Linux file systems, including root, /boot, and /run, plus memory based types, and use df -h for practical checks to diagnose full root, full /boot, and related service failures.
Explore the Linux filesystem hierarchy from the root slash to /home, /etc, /usr and /bin, where everything is a file under a single root tree.
Explore how Linux stores and manages files through its file system, focusing on disk-based file systems that persist data after reboot, including root and /boot that hold kernel and bootloader.
Explore memory-based file systems in ram, devtmpfs and tmpfs, where data is lost on restart. Compare them to disk-based systems with permanent data to understand performance and runtime implications.
Use df -h to inspect mounted file systems and sizes, and understand the root file system that houses the operating system and key directories like /etc and logs.
Understand devtmpfs, a memory based filesystem mounted on /dev created by the kernel for device files like /dev/sda and /dev/null, used after boot; a /dev failure prevents hardware access.
Explore tmpfs, a ram-based shared memory filesystem mounted at /dev/shm, used for fast interprocess communication and by applications like PostgreSQL; files vanish on reboot, and fullness impacts performance.
Explore tmpfs mounted on /run, a ram-based in-memory file system that holds temporary runtime data like pid files and sockets, offering fast access and automatic clearance after reboot.
Explore tmpfs as a secure ram-based storage for systemd-journald credentials, mounted under /run/credentials/systemd-journal.service. Store runtime data in memory and remove it after reboot, with the current setup empty.
Understand the /boot filesystem on /dev/sda2, containing the kernel, initramfs, grub bootloader, and boot configs essential for startup, with a CentOS 10 2 GB partition showing 1.2 GB free.
The /run/user/42 and /run/user/thousand tmpfs provide temporary ram-based workspaces for each logged-in user, with 42 belonging to GDM and thousand belonging to Techstar.
Explore the linux booting process from bios/uefi through mbr/gpt to grub and kernel. See how initramfs, root filesystem mounting, systemd startup, and service initialization end at the login screen.
Emergency mode offers a minimal systemd-triggered recovery during boot failures, mounting only the root file system with no networking and a root shell to troubleshoot issues like faulty fstf entry.
Boot into emergency mode manually via grub by editing the Linux line to append systemd.unit=emergency.target and pressing ctrl-x. Learn how fstab errors or mount failures trigger automatic emergency mode.
Boot into emergency mode from grub by adding systemd.unit=emergency.target, then use journalctl -xb to inspect logs and journalctl -p err for failures, and remount root filesystem read-write to edit /etc/fstab.
Apply linux rescue mode to repair a non-booting system by booting from an installation ISO, mounting the install under .mnt/.sysroot, using chroot, and reinstalling grub or packages.
Boot into rescue mode by editing grub: press E, append systemd.unit=rescue.target to Linux line, then press ctrl X. Boot from a CentOS 10 ISO, mount at /mnt/sysroot, and chroot /mnt/sysroot.
Boot into emergency mode by editing GRUB: press e, append systemd.unit=rescue.target to the linux line, then Ctrl-X. Troubleshoot with systemctl, fstab, and blkid; if boot fails, reboot from CentOS ISO.
Boot into emergency mode using the CentOS ISO image and grub menu, then mount root at /mnt/sysroot and use chroot to repair the system.
Explore Linux boot troubleshooting by simulating a missing initramfs, and recover the system using rescue mode while reviewing the bios, mbr, grub, and /boot kernel loading.
simulate a boot failure in CentOS 10 caused by a missing initramfs, and show how grub's references in /boot trigger the file not found error.
Use rescue mode to mount the CentOS 10 / RHEL 10 system under /mnt/sysroot, chroot into it, and recreate the init remfs with the kernel version. Reboot to boot normally.
Demonstrate a grub configuration failure when grub.cfg is missing or renamed in CentOS 10. The lecture shows locating /boot/grub2/grub.cfg, bootloader behavior, and troubleshooting at the grub prompt.
Boot from grub prompt by manually loading kernel and initramfs, then repair grub.config; identify slash boot partition with ls and set root to hd0,gpt2.
Identify the correct kernel version from loader/entries, load the kernel and initramfs to boot with root=/dev/mapper/cs_10-root, and boot the system. Then learn how to recreate the grub configuration file.
Learn to recreate the grub configuration file used during system boot with grub2-mkconfig. It scans available kernels and builds boot menu entries from default settings and /etc/grub.d scripts.
Explore the BIOS boot partition, a ~1 MB GPT entry that stores grub core image and modules; understand how its corruption blocks grub startup and halts the system before boot.
Identify the BIOS boot partition on a CentOS 10 and RHEL 10 system, and corrupt the grub core image to observe boot failure and practice recovery.
simulate boot failure by corrupting the BIOS boot partition with dd to overwrite it with zeros, destroying grub's core image and halting the system at grub.
Recover a CentOS boot failure by booting from a CentOS 10 ISO in rescue mode, use chroot to access the system, reinstall grub with grub2-install /dev/sda, and reboot.
Explore how a missing mount command disrupts boot by failing to attach root and other file systems, triggering emergency mode, and how to recover via rescue mode and reinstall util-linux-core.
Simulate a boot failure by removing the /bin/mount binary, boot into rescue mode with a CentOS 10 ISO, and reinstall util-linux-core to recreate the mount binary.
Reinstall the util-linux-core package in rescue mode with rpm -ivh --force to restore the /bin/mount binary. Verify the binary is recreated and boot CentOS 10 successfully.
Simulate a missing or corrupted linux kernel by removing the vmlinux file in /boot, causing grub boot failure and kernel not found, then learn recovery steps.
Rebuild the kernel by booting into rescue mode, mounting the CentOS 10 ISO, and reinstalling the kernel package with rpm -ivh kernel-*.rpm --root=/mnt/sysroot; use --force if needed, then reboot.
Linux Boot Failure & Recovery Labs: CentOS 10 / RHEL 10
Struggling with Linux systems that fail to boot? Want to confidently fix real production issues instead of just reading theory?
This course is designed to give you hands-on expertise in Linux boot troubleshooting and system recovery using CentOS 10 and RHEL 10. Instead of boring theory, you’ll work through real-world failure scenarios that system administrators actually face.
Section 1: CentOS 10 Installation on Oracle VirtualBox – Complete Guide
An Overview of This Section
Download and Install VirtualBox
Download CentOS 10 ISO
Create a New Virtual Machine
Configure the Virtual Machine
Configure Virtual Hardware
Hard Disk File Type and Format
Uncheck - Proceed with Unattended Installation
Begin the Installation
Configure Installation Summary
Log in to the CentOS Desktop Environment
Access Linux VM from Windows using MobaXterm
Login Issue Troubleshooting
Section 2: Understanding the Linux Filesystem Hierarchy
What You Will Learn in This Section
Linux Filesystem Explained
Understanding Disk-Based Filesystems
Memory-Based (tmpfs) Filesystem
Understanding the Root ( / ) Filesystem in Linux
Understanding devtmpfs Filesystem in Linux
Understanding tmpfs Shared Memory Filesystem in Linux
Understanding tmpfs Mounted on /run
tmpfs Filesystem for systemd-journald Service
Understanding the /boot Filesystem in Linux
Understanding /run/user tmpfs Filesystem
Section 3: Linux Boot Process (CentOS 10 / RHEL 10)
Section 4: Rescue and Emergency Mode in Linux
Linux Emergency Mode: Overview and Use Cases
Steps to Boot into Emergency Mode in Linux
Lab: Boot into Emergency Mode and Fix Issues
Linux Rescue Mode: Overview and Use Cases
Steps to Boot into Rescue Mode in Linux
Lab: Boot into Emergency Mode via GRUB (Edit Method)
Lab: Boot into Emergency Mode Using CentOS ISO Image
Scenario 1: Initramfs File Missing – Diagnosis & Fix
Scenario Overview
Simulating the Failure: Missing Initramfs
Recreate Initramfs from Rescue Mode
Scenario 2: GRUB Configuration File Missing – Diagnosis & Fix
Scenario Overview
Simulating the Failure: Missing GRUB Configuration File
Manual Boot from GRUB Prompt
Recreating GRUB Configuration Using grub2-mkconfig
Scenario 3: BIOS Boot Partition Corrupted – Diagnosis & Fix
Understanding the BIOS Boot Partition
Identify BIOS Boot Partition
Corrupt BIOS Boot Partition Using dd (Simulate Failure)
Fix Boot Failure: Reinstall GRUB from Rescue Mode
Scenario 4: Missing Critical Binary (/bin/mount) – Diagnosis & Fix
Scenario Overview
Simulating the Failure: Missing /bin/mount Binary
Recover /bin/mount via Package Reinstall (Rescue Mode)
Scenario 5: Kernel Missing/Corrupted – Diagnosis & Fix
Simulating the Failure: Missing Kernel File
Fix Boot Failure: Reinstall Kernel from Rescue Mode
Scenario 6: Root Filesystem Not Found – Diagnosis & Fix
Simulating the Failure: Modify Root Entry in Boot Configuration File
Reboot and Observe the Failure
Fix: Modify Root Entry from GRUB Prompt
Scenario 7: /etc/fstab Misconfiguration – Diagnosis & Fix
Scenario Overview
Simulating the Failure: Incorrect /etc/fstab Entry
Fix Boot Failure from Emergency Mode
Last lecture