"Robert P. J. Day" <[email protected]> writes:

>   i know i've asked this before but is there a way to extract the
> original vmlinux kernel executable from the corresponding vmlinuz file
> that's installed in /boot?  that would require stripping the piggyback
> header and decompression code and so on, but i was wondering if
> there's a single utility out there that handles all that.  thanks.
>
> rday

Seriously, a quick google search on the matter spits _many_ results. 
One of those is this cute one-liner:
http://jcmdev0.blogspot.com/2009/12/one-liner-to-extract-vmlinuz-to-vmlinux.html
which unfortunately is wrong (byte pattern is screwed up), but with a quick fix 
it becomes:
dd if=/boot/vmlinuz skip=`grep -a -b -o -m 1 -e $'\x1f\x8b\x08\x00' 
/boot/vmlinuz | cut -d: -f 1` bs=1 | zcat > /tmp/vmlinux
which should work alright.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to