Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Fedora - Installation This forum is for the discussion of installation issues with Fedora.


  Search this Thread
Old 06-05-2006, 05:27 PM   #1
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?

Don J.C
Old 06-05-2006, 10:41 PM   #2
Senior Member
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
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.
# 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:
# 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 10:43 PM.
Old 02-11-2008, 08:10 AM   #3
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, 09:56 AM   #4
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 25, 26, RHL 5.2
Posts: 560

Rep: Reputation: 56
You need to be root to run mkinitrd. It is located at /sbin/mkinitrd. Check to see if it is already installed using
rpm -qi mkinitrd
This will do the trick if it isn't installed.
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.


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


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 09:30 AM
loading modules with an Initrd image? komuthan Slackware 4 12-07-2005 12:17 AM
Creating custom initrd image in suse 9.1 Anmol SUSE / openSUSE 1 01-08-2005 02:31 AM
What's initrd image? Nerox Linux - Newbie 2 08-25-2004 04:53 PM
compiling kernel, initrd can't make image, 'loop devices busy' infamous41md Linux - Newbie 2 06-02-2004 11:59 AM > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation

All times are GMT -5. The time now is 10:51 AM.

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
Open Source Consulting | Domain Registration