WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] initrd - how to view the contend?

To: Frank <josephbeuys@xxxxxx>
Subject: Re: [Xen-users] initrd - how to view the contend?
From: "Nathan Widmyer" <lighthousej@xxxxxxxxx>
Date: Sun, 2 Sep 2007 16:45:16 -0400
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 02 Sep 2007 13:45:52 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=F9UZxUar6/0BRR9EdEz6tqb5HRohg1iKXLmxgk4PvcjnFqx4Sntn7yRacevQT9GrsWEsIxiWIghfQkOHimc7URCOFCcIEWX8teXti1fZhkFYdW+vXv5i4zZYsU52GEV5xWn1giQuoEHA2CpvKVCBZtmRl1/TpSwjrdov+E7Jyoc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=rN1qquxrVuvr8ZP0eW2JUe9l7aWrPSWkd6N+rRW5Y/UqYVwmFbbS+q9e0mixHfAzfwgKdWjZ6pmatBLOCCPeJqcGcjwzKIOW5vEAjRbGuqdOdqhauWERxY4fX7ScZkbRD6DOpFZdh/0oiiF3zz9t+RAZgy7mqpEOxD4mxmUGx9A=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <46DB1F45.8040702@xxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <46DB1F45.8040702@xxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
The initrd is just a gzipped filesystem.

First, copy (not move!) the file to somewhere else and save it with a .gz extension so gzip will unzip it.

Second, run the `file' program on the extracted ramdisk, you might see one of these:

"initrd: ASCII cpio archive (SVR4 with no CRC)"
"initrd: Linux rev 1.0 ext2 filesystem data"

If you have the ext2 one, you should be able to mount the file via loopback to a mount point and do anything you want.  As far as cpio, I'm not too adept at working with cpio files but it shouldn't be too hard to work with it.  If you have some other type, you'll just need to figure out how to mount the file to read it.

Good luck,
Nathan

On 9/2/07, Frank <josephbeuys@xxxxxx> wrote:
How can a see the content of an initrd.img file?

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>