initramfs
A small temporary root filesystem, loaded into memory with the kernel, that holds the drivers and tools needed to find and mount the real root filesystem.
In more detail
The kernel may need storage drivers, disk decryption or volume tools before it can reach the root disk. The initramfs provides them, mounts the real root and then hands over to it. If the root disk cannot be found, boot usually stops at an emergency shell inside the initramfs.
Related terms
- root filesystem — The top of the directory tree, written as a single slash, under which every other file and directory hangs.
- device driver — Kernel code that knows how to operate one kind of hardware and presents it to the rest of the system through a standard interface.
- boot process — The chain of handoffs that takes a machine from power-on to running services: firmware, bootloader, kernel, initramfs and then the init system.
- kernel image — The compressed file holding the Linux kernel itself, usually /boot/vmlinuz-version, which the bootloader loads into memory.
Taught in
- Booting: GRUB, The Kernel Command Line And initramfs — Linux Fundamentals & Systems Administration
- Recovering Root And Changing The Boot Loader — Red Hat Certified System Administrator (EX200) Exam Prep
- Drill: The Machine That Will Not Boot — Red Hat Certified System Administrator (EX200) Exam Prep
- Four Minutes To Boot: Firmware, GRUB, Kernel And Targets — CompTIA Linux+ (XK0-006) Exam Prep
- A Card With No Driver, A Stick With Too Much: Devices And Kernel Modules — CompTIA Linux+ (XK0-006) Exam Prep
- A New Depot By Friday: OpenTofu, Cloud-init, Pipelines And Kubernetes — CompTIA Linux+ (XK0-006) Exam Prep
- You Are In Emergency Mode: Boot Failures From GRUB To fstab, On Both Families — CompTIA Linux+ (XK0-006) Exam Prep
References
- Linux kernel documentation: ramfs, rootfs and initramfs
- Linux kernel documentation: using the initial RAM disk