whatis initramfs
initramfs
Also known as: initrd, initial RAM filesystem
A small temporary root filesystem loaded into memory at boot, holding the drivers and tools needed to find and mount the real root.
What Is initramfs in Linux?
The kernel cannot include every storage, RAID, LVM, and encryption driver built in. The initramfs carries the modules and scripts to assemble arrays, prompt for a LUKS passphrase, and mount the real root, then hands off to it.
It is regenerated automatically on kernel updates by dracut, mkinitcpio, or update-initramfs. Rebuild it manually after changing things like encryption or module options.
Example
sudo update-initramfs -u # Debian/Ubuntu
sudo dracut --force # Fedora
sudo mkinitcpio -P # Arch Learn more about initramfs
- initramfs Explained: The Tiny Filesystem That Boots Your Real One Between the kernel starting and your root filesystem mounting sits a small temporary system that loads the drivers needed to find the real disk. Here is what it does and how to rebuild it when it breaks.
- Linux Boot Process Explained From pressing the power button to a login prompt, a Linux system goes through a precise sequence of steps. Understanding each stage -- firmware, bootloader, kernel, initrd, and systemd -- demystifies boot failures and makes the system less of a black box.
- Remote LUKS Unlock with Dropbear in the initramfs An encrypted server cannot boot unattended because something must type the passphrase. Putting a tiny SSH server in the initramfs lets you type it from anywhere.