Extracting initial RAM drive (initrd) images

This post is my way of having a sticky to see how to extract initial RAM disk images.

1. Plain ol’ gzip – initrd.gz

Extracts the contents of the archive to the current directory.

$ gunzip initrd.gz

2. CPIO images – initrd.img

Extracts the contents of the CPIO image to the current directory.

$ cpio -idv -F initrd.img