LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-14-2010, 06:57 AM   #1
cadillackid
LQ Newbie
 
Registered: Oct 2010
Posts: 4

Rep: Reputation: 0
Kernel 2.6.30 extract internal InitRamFS from it?


I built a custom kernel and as part of it I included a cpio archive to be used as the initial InitRAMFS.. this all works great.. system boots normally and works..

trouble is I accidentilly deleted a file in the source tree I used to build the InitRAMFS cpio.. actually I created a new cpio and messed up..

yeah I know im not here to get flamed about backups etc.. i made a mistake..

what I want to know is if it is possible to take the Binary of my kernel, and extract the internal INITRAMFS out of it so that I can get the needed file back... or once the kernel is built are those file tucked away as part of the binary where they cannot be extracted?

-Christopher
 
Old 10-14-2010, 02:48 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
I doubt you would have success getting it from the kernel image, but what about using a running version to copy the necessary files from? The initrd should still be there after the kernel boots.
--- rod.
 
Old 10-27-2010, 12:18 AM   #3
mcha
LQ Newbie
 
Registered: Feb 2010
Posts: 10

Rep: Reputation: 0
hi, i don't know if the article on this webiste
http://en.gentoo-wiki.com/wiki/Initramfs
under 'Dismantling the Kernel' section will help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
initramfs on 2.4 kernel sailwind Linux - General 0 02-06-2009 04:44 PM
Kernel compilation with initramfs. bhaskarreddy Linux - Kernel 0 12-24-2008 04:36 AM
Kernel Booting Slow - initramfs - Ubuntu 7.04 Kernel 2.6.20 bench Linux - Kernel 3 09-11-2007 05:14 AM
quik booting 2.6 kernel and initramfs risu Linux - Kernel 0 09-16-2006 05:00 PM
kernel 2.6 initramfs ashlesha Linux - Newbie 10 07-27-2006 09:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration