- Creating initrd using mkinitrd
# mkinitrd -v -f –with=e1000 /tmp/initrd.gz 2.6.9-55
- Extracting the initrd image to add contents in it
# mkdir /initrdroot
# cd /initrdroot
# gzip -dc /tmp/initrd.gz | cpio -id
# ls /initrdroot
bin dev etc init lib linuxrc lost+found mnt proc root sbin sys sysroot tmp usr var
#Now add binaries and libraries to the initrdroot
- To recreate the initrd based on /initrdroot
# find ./ | cpio -H newc -o > /tmp/unixfooinitrd
# gzip /tmp/unixfooinitrd
# mv /tmp/unixfooinitrd /boot/unixfooinitrd.gz