LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   How to create new initrd.gz (or initrd.img) file? (http://www.linuxquestions.org/questions/programming-9/how-to-create-new-initrd-gz-or-initrd-img-file-605779/)

kkpal 12-10-2007 06:18 AM

How to create new initrd.gz (or initrd.img) file?
 
hi
Everyone

I want to create a new initrd.gz file on fc6.
I tried using this link : http://www.faqs.org/docs/evms/x3834.html
but i am failed to create initrd.gz.
Can anyone tell me steps (or link) for creating initrd.gz file.


Thanks n Regards
KKPal

gnashley 12-10-2007 08:08 AM

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.

brianmcgee 12-10-2007 08:38 AM

On Fedora or RHEL:

Code:

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

Code:

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


All times are GMT -5. The time now is 11:51 PM.