User Tools

Site Tools


docs:tips_n_tricks:initrd

Initrd / Initramfs

How to edit an initramfs

mkdir /tmp/initramfs
cd /tmp/initramfs
gunzip -c /boot/initrd.img-2.6.33-1 | cpio -i

Now edit the files

find * | cpio -H newc -o | gzip -c > /boot/initrd.img-2.6.33-1b

Well, you need to edit your grub or lilo config to make use of the new initramfs. I recommend to do it this way and not to overwrite the exiting (working) initramfs.

docs/tips_n_tricks/initrd.txt · Last modified: 05.04.2012 03:23 CEST by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki