LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-10-2013, 09:55 AM   #1
mohammed_csn
LQ Newbie
 
Registered: Sep 2013
Location: Sudan
Distribution: Centos 5
Posts: 1

Rep: Reputation: Disabled
extract initrd.img


Hi guys i have trouble to extract initrd.img i tried any guide but is not working
 
Old 09-10-2013, 10:05 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,418

Rep: Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111
Quote:
Originally Posted by mohammed_csn View Post
Hi guys i have trouble to extract initrd.img i tried any guide but is not working
And since you don't tell us what 'any guide' you followed was, what problem(s)/error(s) you got, when you got them, what you've done/tried, or even what version/distro of Linux you're using, there's not much we can tell you.

The VERY FIRST HIT in Google for "how to extract initrd.img file in Linux" is:
http://www.thegeekstuff.com/2009/07/...te-initrd-img/

...a step-by-step guide.
 
Old 09-10-2013, 09:52 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,667

Rep: Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657
don't you just love these one line posts by one post users

mohammed_csn
as above please google " extract initrd "
the very FIRST hit
http://www.linuxforums.org/forum/ker...trd-image.html

a bit old but still usable
 
Old 09-11-2013, 03:22 AM   #4
akiuni
Member
 
Registered: Sep 2012
Location: France
Distribution: debian
Posts: 56

Rep: Reputation: Disabled
Hello, "zcat | cpio" should fit for your needs :

# ls
initrd.img-2.6.32-5-amd64
# mkdir tmp; cd tmp
# zcat ../initrd.img-2.6.32-5-amd64 | cpio -i
53632 blocks
# ls
bin conf etc init lib lib64 sbin scripts
 
Old 09-11-2013, 03:24 AM   #5
akiuni
Member
 
Registered: Sep 2012
Location: France
Distribution: debian
Posts: 56

Rep: Reputation: Disabled
and to rebuild the initrd after modification :

# cd tmp
# find . | cpio -o -H newc | gzip > ../initrd.img-2.6.32-5-amd64
 
Old 09-11-2013, 05:42 AM   #6
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Quote:
Distribution: Centos 5
look at upgrading your Centos 5 , you might not need to fix your initrd.img then
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How do I pack stage2.img into initrd.img for a PXE linux rescue? real1elmo Red Hat 12 10-14-2009 07:29 PM
How to create new initrd.gz (or initrd.img) file? kkpal Programming 2 12-10-2007 09:38 AM
Add new cciss driver module to initrd.img ,stage2.img kunalroy2002 Linux - Software 4 09-25-2007 01:09 AM
Failed to symbolic-link boot/initrd.img-2.6.18-4-486 to initrd.img Scotteh Linux - Software 8 06-02-2007 12:24 AM
Initrd.img spaguzz Linux - Software 1 12-09-2004 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:16 AM.

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