Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-10-2007, 06:18 AM   #1
Registered: Oct 2007
Posts: 101

Rep: Reputation: 15
Question How to create new initrd.gz (or initrd.img) file?


I want to create a new initrd.gz file on fc6.
I tried using this link :
but i am failed to create initrd.gz.
Can anyone tell me steps (or link) for creating initrd.gz file.

Thanks n Regards
Old 12-10-2007, 08:08 AM   #2
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,805

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Open the fc 'mkinitrd' script in your favorite text editor and study how it is done. The method depends on what distro and version you are running and what the initrd is supposed to do. The mkinitrd script that comes with your distro is probably the best place to start understanding how to create a basic initrd file.
Old 12-10-2007, 08:38 AM   #3
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 38
On Fedora or RHEL:

# mkinitrd /boot/initrd$(uname -r).img $(uname -r)
If you want to have .gz:

# gzip /boot/initrd$(uname -r).img

Last edited by brianmcgee; 12-10-2007 at 08:39 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
How to create initrd.img when compiling for i386 on AMD 64 or whatever penguin123 Linux - Kernel 4 10-21-2008 07:00 PM
how do I create an initrd.img file? aquaboot Debian 2 11-07-2007 05:40 PM
Failed to symbolic-link boot/initrd.img-2.6.18-4-486 to initrd.img Scotteh Linux - Software 8 06-01-2007 11:24 PM
this initrd.img file??? hungrigerhaifisch Linux - Kernel 2 03-31-2007 05:50 PM
Initrd-x.x.x-x.img File bas12547 Linux - Software 1 07-05-2003 07:47 AM

All times are GMT -5. The time now is 02:58 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