disk image based


mkdir -p tmp/mnt
gunzip -c /boot/initrd-whatever > initrd-whatever
mount -o loop initrd-whatever mnt

umount mnt
gzip -9 initrd-whatever
mv initrd-whatever.gz initrd-whatever

cpio based

Redhatish systems (guess this is for RHEL5+?) now use cpio for building the initrd files. To unpack one do:

# mkdir tmp
# cd tmp
# cp /boot/initrd-whatever .
# gunzip < initrd-whatever > initrd.cpio
# cpio --list < initrd.cpio
# cpio --extract < initrd.cpio


mkdir tmp; cd tmp
gunzip -c /boot/initrd-whatever | cpio -idv

-- TomRockwell - 17 Oct 2006

This topic: Computing > WebHome > LinuxNotes > InitrdDump
Topic revision: 10 Sep 2009, TomRockwell
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback