[opensuse] look inside a initrd?
I have been asked by a local company to help debug some appliance that is booting a image.gz with syslinux. It is loaded from CF in a ramdisk an then runs without harddisk. All I have is a image.gz. The syslinux.cfg has: ide=nodma initrd=image.gz ramdisk=80000 rw root=/dev/ram Is there a way to look inside image.gz in a way as I explore a filesystem on harddisk (with ls, less files, etc)? Tried to mount with -o loop, but getting wrong fs type. What fs-type is used btw? -- L. de Braal BraHa Systems NL - Terneuzen T +31 115 649333 F +31 115 649444 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 20 February 2008 23:01:04 Leen de Braal wrote:
I have been asked by a local company to help debug some appliance that is booting a image.gz with syslinux. It is loaded from CF in a ramdisk an then runs without harddisk. All I have is a image.gz.
The syslinux.cfg has: ide=nodma initrd=image.gz ramdisk=80000 rw root=/dev/ram
Is there a way to look inside image.gz in a way as I explore a filesystem on harddisk (with ls, less files, etc)? Tried to mount with -o loop, but getting wrong fs type. What fs-type is used btw?
Depends on the kernel. In older versions, the initrd was an image that you could mount with -o loop the way you tried. In newer versions, it is a cpio archive You can test with the "file" command, it will tell you which type it is - but first you have to unzip it gunzip image.gz file image.gz If it's a cpio archive, unpack with cpio -id < image but move to a temporary directory first, because it will unpack everything in the cwd Anders -- Madness takes its toll -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 20 February 2008 23:01:04 Leen de Braal wrote:
I have been asked by a local company to help debug some appliance that is booting a image.gz with syslinux. It is loaded from CF in a ramdisk an then runs without harddisk. All I have is a image.gz.
The syslinux.cfg has: ide=nodma initrd=image.gz ramdisk=80000 rw root=/dev/ram
Is there a way to look inside image.gz in a way as I explore a filesystem on harddisk (with ls, less files, etc)? Tried to mount with -o loop, but getting wrong fs type. What fs-type is used btw?
Depends on the kernel. In older versions, the initrd was an image that you
It is a 2.4 kernel.
could mount with -o loop the way you tried. In newer versions, it is a cpio archive
You can test with the "file" command, it will tell you which type it is - but first you have to unzip it
gunzip image.gz
Gives me a file "image" (and gets rid of the original.gz, btw) # file image image: Linux rev 1.0 ext2 filesystem data (mounted or unclean) Ok, now I can mount -o loop. At first glance it looks like a complete linux systemdisk :-) Going ahead now, thanks.
file image.gz
If it's a cpio archive, unpack with
cpio -id < image
but move to a temporary directory first, because it will unpack everything in the cwd
Anders -- Madness takes its toll -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- L. de Braal BraHa Systems NL - Terneuzen T +31 115 649333 F +31 115 649444 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Leen de Braal a écrit :
Ok, now I can mount -o loop. At first glance it looks like a complete linux systemdisk :-)
it's a RAM system jdd -- http://www.dodin.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 2008-02-20 at 23:21 +0100, Anders Johansson wrote:
On Wednesday 20 February 2008 23:01:04 Leen de Braal wrote:
I have been asked by a local company to help debug some appliance that is booting a image.gz with syslinux. It is loaded from CF in a ramdisk an then runs without harddisk. All I have is a image.gz.
The syslinux.cfg has: ide=nodma initrd=image.gz ramdisk=80000 rw root=/dev/ram
Is there a way to look inside image.gz in a way as I explore a filesystem on harddisk (with ls, less files, etc)? Tried to mount with -o loop, but getting wrong fs type. What fs-type is used btw?
Depends on the kernel. In older versions, the initrd was an image that you could mount with -o loop the way you tried. In newer versions, it is a cpio archive
You can test with the "file" command, it will tell you which type it is - but first you have to unzip it
gunzip image.gz file image.gz
If it's a cpio archive, unpack with
cpio -id < image
but move to a temporary directory first, because it will unpack everything in the cwd
Anders -- BTW, is it also possible to unpack, add aditional modules, and run mkinitrd again? It seems that the 10.3-installation-initrd is missing some modules.. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I have been asked by a local company to help debug some appliance that is booting a image.gz with syslinux. It is loaded from CF in a ramdisk an then runs without harddisk. All I have is a image.gz. -----snip----- BTW, is it also possible to unpack, add aditional modules, and run mkinitrd again? It seems that the 10.3-installation-initrd is missing some modules..
Just edit /etc/sysconfig/kernel and add the appropriate modules, and run mkinitrd again. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 22 February 2008 00:46:04 Hans Witvliet wrote:
BTW, is it also possible to unpack, add aditional modules, and run mkinitrd again? It seems that the 10.3-installation-initrd is missing some modules..
Well, you wouldn't run mkinitrd, you would just repack it But which modules are you missing from the installation image? Anders -- Madness takes its toll -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2008-02-22 at 01:18 +0100, Anders Johansson wrote:
On Friday 22 February 2008 00:46:04 Hans Witvliet wrote:
BTW, is it also possible to unpack, add aditional modules, and run mkinitrd again? It seems that the 10.3-installation-initrd is missing some modules..
Well, you wouldn't run mkinitrd, you would just repack it
But which modules are you missing from the installation image?
Hi, (not intending to hyjack the thread...) I noticed that in the 10.3 initrd image, the ipv6 module is not included. If i ask to load it at the grub-prompt it wont do. And during the installation, when switching to an other console, it can not be found... Immediately after the installation-script builts its own initrd, the module is present. So my feeling is that it just is not included in the original (dvd/cdrom) installation-initrd-image..... hw -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 22 February 2008 23:21:48 Hans Witvliet wrote:
On Fri, 2008-02-22 at 01:18 +0100, Anders Johansson wrote:
On Friday 22 February 2008 00:46:04 Hans Witvliet wrote:
BTW, is it also possible to unpack, add aditional modules, and run mkinitrd again? It seems that the 10.3-installation-initrd is missing some modules..
Well, you wouldn't run mkinitrd, you would just repack it
But which modules are you missing from the installation image?
Hi,
(not intending to hyjack the thread...) I noticed that in the 10.3 initrd image, the ipv6 module is not included. If i ask to load it at the grub-prompt it wont do. And during the installation, when switching to an other console, it can not be found...
Immediately after the installation-script builts its own initrd, the module is present. So my feeling is that it just is not included in the original (dvd/cdrom) installation-initrd-image.....
hw
Well, you are correct, ipv6.ko is not included. I'm not sure why it isn't If you really need it for a network install, you could open a bugzilla for it Anders -- Madness takes its toll -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2008-02-22 at 23:46 +0100, Anders Johansson wrote:
On Friday 22 February 2008 23:21:48 Hans Witvliet wrote:
On Fri, 2008-02-22 at 01:18 +0100, Anders Johansson wrote:
On Friday 22 February 2008 00:46:04 Hans Witvliet wrote:
BTW, is it also possible to unpack, add aditional modules, and run mkinitrd again? It seems that the 10.3-installation-initrd is missing some modules..
Well, you wouldn't run mkinitrd, you would just repack it
But which modules are you missing from the installation image?
Hi,
(not intending to hyjack the thread...) I noticed that in the 10.3 initrd image, the ipv6 module is not included. If i ask to load it at the grub-prompt it wont do. And during the installation, when switching to an other console, it can not be found...
Immediately after the installation-script builts its own initrd, the module is present. So my feeling is that it just is not included in the original (dvd/cdrom) installation-initrd-image.....
hw
Well, you are correct, ipv6.ko is not included. I'm not sure why it isn't
If you really need it for a network install, you could open a bugzilla for it
At one site, all the installservers are moving over to (just) ipv6. So for pxe-installation i should be able to create my own initrd. But generally, i will file it in bugzilla as a "feature request" It should have no side-effects for those still klung to ipv4 ;-) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Anders Johansson
-
Hans Witvliet
-
jdd
-
Leen de Braal
-
Philip Dowie