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