in a temporary directory where you've copied the initrd file: gzip -d < initrd-filename.img |cpio -id