On Mon, 21 Jun 2010, George Kadianakis wrote:

> "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.


  you're right, i should have used teh google.  thanks, i'll test this
later to make sure it's a valid extraction.

rday

-- 

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

        Top-notch, inexpensive online Linux/OSS/kernel courses
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

--
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