Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-01-2010, 10:36 PM   #1
Registered: Feb 2008
Posts: 443
Blog Entries: 1

Rep: Reputation: 38
how to rebuild initrd-2.6.18-92.el5.img

Good day. I have a hypothetical question:

If I removed /boot/initrd-2.6.18-92.el5.img
when I am booting to CentOS and then shutdown, how do I
reboot CentOS again ? Is it possible to recover the necessary
*.img using the original installation DVD.
How to do that? (i know the key is mkinitrd but I don't know the exact
steps and I don't want to wreck my system).

Old 09-02-2010, 01:52 AM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
- Boot from the cd
- type 'linux rescue' at the prompt
- ignore networking setup
- allow search for installation
- chroot /mnt/sysimage
- mkinitrd /boot/initrd-2.6.18-92.el5.img 2.6.18-92.el5
- exit
- reboot

( from memory but should work ok.. )
Old 09-02-2010, 10:43 PM   #3
Registered: Feb 2008
Posts: 443
Blog Entries: 1

Original Poster
Rep: Reputation: 38
Thanks a lot kbp!
I have done one full successful test on my laptop.

Once my another system is idling, I will give it a try on the clone system ( I was trying to do something mentioned in

Thanks again!


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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:15 PM.

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