Viewing contents of initrd

John Wendel john.wendel at metnet.navy.mil
Thu Jan 12 18:55:32 UTC 2006


Ian Pilcher wrote:
> Brian D. McGrew wrote:
> 
>>Is there anyway to look at what's been conglomerated into initrd???
> 
> 
> It's a gzipped filesystem image, so your first step is to use gunzip to
> uncompress it.  gunzip may balk at processing it, because the file name
> doesn't end in .gz, but you can work around this by using cat and piping
> the output to gunzip.
> 
> Once you've done this, just loopback mount it (mount -o loop,ro ...).
> You'll have to be root to do this, of course.
> 
> HTH
> 

After unzipping, you can also use "cpio -i < filename" to extract the 
individual directories and files.

Regards,

John




More information about the fedora-list mailing list