How can a see the content of an initrd.img file? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
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@gmx.de> wrote:> > How can a see the content of an initrd.img file? > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sun, 2 Sep 2007, Frank wrote:> How can a see the content of an initrd.img file?another non-xen question... :( it depends on how it was built. For mine: [root@gt5 ~/initrd]# more README # assemble me with # find . | cpio -c -o | gzip -9 > /boot/img.aoe so, for that one... it would be # mkdir tmp # cd tmp # zcat /boot/img.aoe | cpio -c -i -Tom _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sun, 02 Sep 2007 22:38:29 +0200 Frank <josephbeuys@gmx.de> wrote:> How can a see the content of an initrd.img file?The linux kernel doc file at Documentation/initrd.txt discusses the many techniques used to stash initrd images. The newest kernels simply have a compressed cpio archive. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users