login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
December
»
24
Re: Initramfs from existing vmlinuz
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Martin Schlemmer
Subject:
Re: Initramfs from existing vmlinuz
Date: Wednesday, December 24, 2008 - 4:37 am
>>> On 2008/12/24 at 01:34 AM, Willy Tarreau <w@1wt.eu> wrote:
quoted text
> On Wed, Dec 24, 2008 at 12:28:53AM +0200, Martin Schlemmer wrote:
Hi Willy
quoted text
>> I had a bit of an accident, and wondered if somebody already had to try to > extract the initramfs image from an existing vmlinuz? >> >> I did try google, but either my search terms was not right, or nobody > really touched on the subject before, because all the results mostly dealt > with an external image. >> >> Any advice will be appreciated. > > yes, it happens to me from time to time. > You first have to extract and uncompress the ELF image from vmlinuz. For > this, look for the gzip signature 1F 8B 08 in your vmlinuz, and feed all > data starting from this point to zcat. Either you do the same on the > resulting file -and you may find several compressed images- or you simply > pass it through "objdump -h". It will show you a .init.ramfs section. Use > the fourth field as the file offset, and dump from that position. You'll > find your initramfs, likely starting with 1F 8B 08 since it's supposed > to be compressed with gzip. > > You need an hex editor, dd, zcat and objdump for this. It's not much > complicated once you have the tools, but it might require a few attempts > before finding the right image (I tend to find config.gz before initramfs). >
Appreciated, I should be able to go from here now - just getting the starting point is sometimes the main issue. Thanks M --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Initramfs from existing vmlinuz
, Martin Schlemmer
, (Tue Dec 23, 3:28 pm)
Re: Initramfs from existing vmlinuz
, Willy Tarreau
, (Tue Dec 23, 4:34 pm)
Re: Initramfs from existing vmlinuz
, Martin Schlemmer
, (Wed Dec 24, 4:37 am)
Re: Initramfs from existing vmlinuz
, Martin Schlemmer
, (Thu Dec 25, 10:55 am)
Re: Initramfs from existing vmlinuz (#2)
, Martin Schlemmer
, (Thu Dec 25, 11:17 am)
Re: Initramfs from existing vmlinuz
, Ian Campbell
, (Mon Jan 5, 4:12 am)
Re: Initramfs from existing vmlinuz
, Willy Tarreau
, (Mon Jan 5, 4:47 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rafael J. Wysocki
[Bug #16136] Linux 2.6.34 causes system lockup on Compaq Presario 2200 Laptop
Joerg Roedel
Re: [patch] dma-debug: off by one issue
Pekka Enberg
Re: BUG in free_block (tainted)
Tetsuo Handa
Re: [AppArmor #7 0/13] AppArmor security module
Greg Kroah-Hartman
[PATCH 20/36] Driver core: Call device_pm_add() after bus_add_device() in device_a...
git
:
Christian Stimming
git-gui: Fix broken revert confirmation.
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
Mark Burton
Re: [PATCH] builtin-branch: highlight current remote branches with an asterisk
Junio C Hamano
Re: git-svnimport
Junio C Hamano
Re: [PATCH 6/6] Teach core object handling functions about gitlinks
linux-netdev
:
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Amit Kumar Salecha
[PATCH NEXT 10/10] qlcnic: add cksum flag
Nick Piggin
Re: Kernel WARNING: at net/core/dev.c:1330 __netif_schedule+0x2c/0x98()
Patrick McHardy
Re: [PATCH RESEND 1/3] netfilter: xtables: inclusion of xt_condition
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
ath9k: Added get_survey callback in order to get channel noise
Linux Kernel Mailing List
ALSA: snd-usb-caiaq: Do not expose hardware input mode 0 of A4DJ
Linux Kernel Mailing List
cpumask: make irq_set_affinity() take a const struct cpumask
Linux Kernel Mailing List
V4L/DVB (9041): Add support YUAN High-Tech STK7700D (1164:1f08)
openbsd-misc
:
Conor
Re: RFID Reader
Josh Grosse
ssh/sshd challenge-response seems to have stopped working in -current
Stuart Henderson
Re: SquidGuard problem
Henning Brauer
Re: 3ware hardware raid support?
Ryan McBride
Re: Packets Per Second Limit?
Colocation donated by:
Syndicate