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