How to extract modern Ubuntu initramfs

Just to remember, there is an explanation here, from which the following directive can be taken:

(cpio -id; zcat | cpio -id) < /path/to/initrd.img

Tags: ,

One Response to “How to extract modern Ubuntu initramfs”

  1. Running Systems » Blog Archive » Extracting multi-layered initramfs Says:

    […] So – now you can extract even complex CPIO structures, such as can be found in older Foreman “Discovery Image” (very old implementation), Tiny Core Linux (see this forum post, and this wiki note as reference on where this stacking is invoked) and more. This said, for extracting Centos/RHEL7 initramfs, which is structured of uncompressed CPIO appended by a cpio.gz file, a different command is required, and a post about it (works for Ubuntu and RHEL) can be found here. […]

Leave a Reply