[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: Frank <josephbeuys@xxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.