Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-10-2013, 09:55 AM
|
#1
|
LQ Newbie
Registered: Sep 2013
Location: Sudan
Distribution: Centos 5
Posts: 1
Rep:
|
extract initrd.img
Hi guys i have trouble to extract initrd.img i tried any guide but is not working
|
|
|
09-10-2013, 10:05 AM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,418
|
Quote:
Originally Posted by mohammed_csn
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.
|
|
|
09-10-2013, 09:52 PM
|
#3
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,667
|
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
|
|
|
09-11-2013, 03:22 AM
|
#4
|
Member
Registered: Sep 2012
Location: France
Distribution: debian
Posts: 56
Rep:
|
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
|
|
|
09-11-2013, 03:24 AM
|
#5
|
Member
Registered: Sep 2012
Location: France
Distribution: debian
Posts: 56
Rep:
|
and to rebuild the initrd after modification :
# cd tmp
# find . | cpio -o -H newc | gzip > ../initrd.img-2.6.32-5-amd64
|
|
|
09-11-2013, 05:42 AM
|
#6
|
Senior Member
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683
|
look at upgrading your Centos 5 , you might not need to fix your initrd.img then
|
|
|
All times are GMT -5. The time now is 03:16 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|