In article <4f8f8fb0$0$290$
1472...@news.sunsite.dk>, Joe Rosevear <Joe_Ro...@localhost.invalid> wrote:
Thanks Joe,
your idea of expanding initrd.gz and looking at init for the
error message, and seeing what was trying to be done THEN is good!
>
> It might help you to see what is in an initrd.gz.
>
> I learned from Helmut Hullen (in this news group) that this will
> extract the contents from an initrd.gz:
>
> zcat <path to initrd.gz> | cpio -vim
> and this will make an initrd.gz (as an alternative to using mkinitrd):
>
> find . | cpio -o -H newc | gzip > <path to initrd.g>
>
> If you do open up an initrd.gz, then look at file init. That is the
> script that takes over from Grub and finishes the job.
>
> The initrd.gz also contains lib/modules/<kernel version>. It contains
> modules that init uses until it passes control to the Slackware
> installation that you are booting.
>
-----------------
zcat <path to initrd.gz> | cpio -vim
is a punishing journey and you don't want to see my massive
log of attempt at various combinations.
= on the PC's slak-based-kogi it gave "cpio: Malformed number"
and hung. Suspecting an oveflowed buffer/pipe, I tried on my
net-book which has a 2GB RAM [I think], and saw the expanded
dir-tree, with <the init script>.
I remember that I was not happy that the dir-tree had been
written to the dir of the initrd.gz, but I can't find the expanded
initrd.gz or re-create it!? Even with the assumption that the seen
one was created by live-CD and was thus written to RAM & lost.
An alternate approach to your suggestion is to:
<gunzip> initrd.gz | fold | \
<grep key-word in error message plus some lines before & after>
which should show what it was trying to do when it put the
error-message.
Perhaps someone can diagnose the problem from this manually
copied extract of the error-message:---
md: ..autorun DONE. VFS: Cannot open root device "812" or unknown-block(8,18)
...avaible paritions <sda1,2,3,4 <-- Win7 hard-disk> !!
------------------------------
Between Slak13 and Slak-kogi it complains about block(8,18) and block(0,0)
and it suggests that it only likes/finds-readable FAT-partitions.
== TIA