update-initramfs -c -k 6.8.0-45-generic

Category: Administration

update-initramfs -c -k 6.8.0-45-generic

Create an initramfs for a specific kernel

Builds a fresh initramfs image for kernel 6.8.0-45-generic even if one exists, overwriting it. The -k flag selects the kernel version and -c forces creation. Use this after upgrading a kernel manually or restoring a damaged initrd.img. An initramfs is the early userspace used to find and mount the real root filesystem.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.