LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices

Reply
 
Search this Thread
Old 06-05-2006, 06:27 PM   #1
qewldude
LQ Newbie
 
Registered: May 2006
Posts: 7

Rep: Reputation: 0
Make new initrd image


Hey Guys,

I just updated my kernel to 2.6.16-1.2129_FC5. But whenever I try to boot into my new kernel, it says kernel panic. I used to get that for the older kernel version, to solve that, I used the linux rescue cd so that it mounted onto sysimage and then I did

mkinitrd --preload=ehci-hcd --preload=usb-storage --preload=scsi_mod --preload=sd_mod /boot/usbinitrd.img 2.6.15-1.1054_FC5

and then modified the grub.conf from initrd /initrd-2.6.15-1.1054_FC5.img to initrd /usbinitrd.img

This worked for the old one but I don't know how to get to the command line so as to do the same thing for the new one(i.e to mount and make new initrd image for new kernel).

Is there any way I can mount and make the new initrd image using the grub command line?

Thanks
Don J.C
 
Old 06-05-2006, 11:41 PM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
To proceed from the grub prompt, you need a valid initrd image. So no, it can’t be done that way.

You make the new initrd image from rescue mode after chroot the same way you described, except that you use the new kernel version.
Code:
# cp /boot/initrd-2.6.16-1.2129_FC5.img /boot/initrd-2.6.16-1.2129_FC5.img-original
# mkinitrd -fv --preload=ehci-hcd --preload=usb-storage --preload=scsi_mod --preload=sd_mod /boot/initrd-2.6.16-1.2129_FC5.img 2.6.16-1.2129_FC5
Maybe I’m missing something, but is there a reason you didn’t try that?

Also, from the rescue chroot environment, you should really only need to:
Code:
# cp /boot/initrd-2.6.16-1.2129_FC5.img /boot/initrd-2.6.16-1.2129_FC5.img-original
# mkinitrd -fv /boot/initrd-2.6.16-1.2129_FC5.img 2.6.16-1.2129_FC5
You can do the same thing after you boot with the old kernel.

Last edited by WhatsHisName; 06-05-2006 at 11:43 PM.
 
Old 02-11-2008, 09:10 AM   #3
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Rep: Reputation: 30
No initrd command

What do I need to install in order to use the mkinitrd command? It tells me not found.
 
Old 02-15-2008, 10:56 AM   #4
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 18, 19, RHL 5.2
Posts: 546

Rep: Reputation: 43
You need to be root to run mkinitrd. It is located at /sbin/mkinitrd. Check to see if it is already installed using
Code:
rpm -qi mkinitrd
This will do the trick if it isn't installed.
Code:
yum install mkinitrd
You won't be able to do much from the grub command line. The best bet is to use the the rescue cd and chroot to the installation. If I remember right, mkinitrd is also on the rescue cd.

Bill

Last edited by wmakowski; 02-15-2008 at 11:02 AM.
 
  


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
Maximum size of initrd image ?? PeteRossi Slackware 5 03-26-2007 10:30 AM
loading modules with an Initrd image? komuthan Slackware 4 12-07-2005 01:17 AM
Creating custom initrd image in suse 9.1 Anmol Suse/Novell 1 01-08-2005 03:31 AM
What's initrd image? Nerox Linux - Newbie 2 08-25-2004 05:53 PM
compiling kernel, initrd can't make image, 'loop devices busy' infamous41md Linux - Newbie 2 06-02-2004 12:59 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration