LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   decompressing initrd (https://www.linuxquestions.org/questions/linux-newbie-8/decompressing-initrd-438976/)

rbh123 04-26-2006 07:27 AM

decompressing initrd
 
I have a simple question.I want to know how to decompress initrd image so that i can view its contents.Also if someone can tell me how to decompress the vmlinuz image it would be of great help.

Thanks in advance,
-rbh

rconan 04-26-2006 11:25 AM

If you do a
Code:

file /path/to/file
on either file it should tell you the compression used then you can decompress like that.

I think when i looked at initrds on fedora core it was cpio compression so thats a possibility.

edit: I just checked mine now and the commands needed were
Code:

cp /boot/initrd-blah .
mv initrd-blah initrd-blah.gz
gzip -d initrd-blah.gz
cpio -i < initrd-blah

Those will extract the contents into the current directory so i would advise doing it in a new empty directory.

rbh123 04-27-2006 01:00 AM

Thanks,it worked for me.

-rbh


All times are GMT -5. The time now is 03:25 AM.