Tuesday, November 2, 2010

read and edit initrd image contents

1. Make temporary directory

#mkdir /tmp/initrd
2. Copy initrd image to destination directory
#cp /source/directory/initrd-version.img /tmp/initrd
3. unzip and use cpio
#gzip -dc initrd-2.6.18-164.6.1.el5.img | cpio -ivd

No comments:

Post a Comment