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