LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-26-2006, 07:27 AM   #1
rbh123
LQ Newbie
 
Registered: May 2005
Distribution: Redhat
Posts: 25

Rep: Reputation: 15
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
 
Old 04-26-2006, 11:25 AM   #2
rconan
Member
 
Registered: Jun 2005
Distribution: Debian Unstable (Sid)
Posts: 63

Rep: Reputation: 15
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.

Last edited by rconan; 04-26-2006 at 11:47 AM.
 
Old 04-27-2006, 01:00 AM   #3
rbh123
LQ Newbie
 
Registered: May 2005
Distribution: Redhat
Posts: 25

Original Poster
Rep: Reputation: 15
Thanks,it worked for me.

-rbh
 
  


Reply


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
Problem decompressing large archive JohnKFT Slackware 8 10-14-2005 06:06 PM
Kernel 2.6 hanging decompressing DuuhMojo Linux - Newbie 4 06-09-2005 12:17 PM
decompressing .ps.gz not possible rohr Linux - Software 2 04-11-2005 04:11 AM
Blank screen after decompressing kernel imrel Linux - General 2 09-06-2004 01:21 PM
Blank screen after decompressing kernel imrel Linux - Software 1 08-26-2004 06:41 PM


All times are GMT -5. The time now is 09:52 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration