Share your knowledge at the LQ Wiki.
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, 07: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, 09:08 AM   #2
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,891

Rep: Reputation: 569Reputation: 569Reputation: 569Reputation: 569Reputation: 569Reputation: 569
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, 09:38 AM   #3
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 39
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 09: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 08:00 PM
how do I create an initrd.img file? aquaboot Debian 2 11-07-2007 06:40 PM
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
this initrd.img file??? hungrigerhaifisch Linux - Kernel 2 03-31-2007 06:50 PM
Initrd-x.x.x-x.img File bas12547 Linux - Software 1 07-05-2003 08:47 AM > Forums > Non-*NIX Forums > Programming

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