initrd auspacken / einpacken | vmlinuz

auspacken:

gunzip < initrd.img | cpio -i –make-directories

 

einpacken:

find ./ | cpio -H newc -o > initrd.cpio

gzip initrd.cpio

mv initrd.cpio.gz initrd.img

———-

 

 

vmlinuz:

od -t x1 -A d vmlinuz | grep "1f 8b 08" 
0008322 1b 00 1f 8b 08 00 d5 c2
dd bs=1 skip=8324 if=vmlinuz | zcat > vmlinux_extract


Comments are closed.