Find the answer to your Linux question:
Results 1 to 7 of 7
i have initrd-2.6.19.1.img. How to extract initrd image in FC6...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    20

    Extracting initrd image


    i have initrd-2.6.19.1.img.

    How to extract initrd image in FC6

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    create initrd using mkinitrd command.
    Code:
    mkinitrd /boot/initrd-<version>.img <version>




    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Jan 2007
    Posts
    20

    Extracting initrd image

    little confuse ??????????????????///

    initrd image is just cpio-gzip archive. So how to extract it
    so that i can get following files
    bin
    dev
    etc
    init
    lib ....
    ......

    i want to analyz init shell script

  4. $spacer_open
    $spacer_close
  5. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Quote Originally Posted by anando.1980
    initrd image is just cpio-gzip archive. So how to extract it
    so that i can get following files
    bin
    dev
    etc
    init
    lib ....
    either you didn't ask correct question OR i didn't get that correctly.
    execute this
    Code:
    gunzip < /boot/initrd.img | cpio -i --make-directories




    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #5
    Just Joined!
    Join Date
    Feb 2007
    Location
    Palermo, Italy
    Posts
    4
    Hi all. This is my first post on this forum.

    I tryed to extract the initrd.img on my FC6 with the command
    Code:
    gunzip < /boot/initrd.img | cpio -i --make-directories
    now I'd like to edit the init file and then create again the initrd.img. How to create again initrd.img?

    Thanks a lot !

  7. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    hi tonyda,

    Welcome to the LinuxForums.



    Code:
    find ./ | cpio -H newc -o > initrd.cpio
    gzip initrd.cpio
    mv initrd.cpio.gz initrd.img




    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #7
    Just Joined!
    Join Date
    Feb 2007
    Location
    Palermo, Italy
    Posts
    4
    Ok, it works! Thank you Casper.

    This is a very good Forum!

    Bye

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •