Re: Beige PowerMac G3/266 trouble



In article <slrne474sd.eu2.mala@xxxxxxxxxxxxxxxxxx>,
Manuel Tobias Schiller <mala@xxxxxxxxxxxxxxx> wrote:

You'll find a kind of first stage of the installation system on the initrd
ram disk.

Which is the part that's not loading properly for me.

Reading /usr/src/linux/Documentation/initrd.txt (kernel 2.4.32), I gather
that you still have to mount /dev/ram as root fs to make use of the
initrd.

Quote from initrd.txt:

3) initrd is mounted read-write as root
4) /linuxrc is executed ...
5) linuxrc mounts the "real" root file system
6) linuxrc places the root file system at the root directory using the
pivot_root system call

Note that the /linuxrc executable is found in the initrd. That path only
works if the initrd is mounted as /. Which it is in step 3.

The pivot_root call is used to change the root fs to some other
fs mounted under some other mount point, so someone or something obviously
needs to mount that fs (the CD, in your case), and that something is
contained on the initrd image.

According to initrd.txt, that's the job of linuxrc in the initrd image.

Well, if mounting the root device fails, my kernel usually just panics...

I get that if I specify an invalid root device (like "/dev/hdc" instead
of "/dev/hdc2").

All the better. That's what I would expect. Still, booting directly off
the CD fs and not from the initrd image seems to be a bad idea to me...

Which is not what I'm doing. I've copied the kernel (and initrd) to the
hard drive, which is where BootX is finding them.

Fine, that's how things work. Still, if you specify the CD as root
device, init is searched on the cd, which is not what it was made for...

No, initrd and the root device are quite separate, as all the above
should have made clear by now.
.



Relevant Pages

  • Re: Beige PowerMac G3/266 trouble
    ... that you still have to mount /dev/ram as root fs to make use of the ... initrd is mounted read-write as root ... you have to boot the kernel and load initrd. ... fs mounted under some other mount point, ...
    (comp.os.linux.powerpc)
  • Initrd trouble
    ... Freeing initrd memory: 2213k freed ... mount: wrong fs type, bad option, badsuperblock on tmpfs, ... special device /dev2/root2 does not exist ... initrd image), and using local loop device to mount the image: ...
    (Debian-User)
  • Re: one partition/filesystem, many root trees
    ... |> | initrd generated by mkinitrd. ... how do I get the old mount point unmounted? ... just stay mapped via the bind mount? ... for "any mount point, not just the root". ...
    (comp.os.linux.development.system)
  • [Trouble Ticket #190335] AutoReply: freebsd-questions Digest, Vol 246, Issue 26
    ... please edit your Subject line so it is more specific ... you need to open a root xterm or even a root shell, ... boot manager is installed for this mirror and I would like to remove it ... was that NFS mount managwed ...
    (freebsd-questions)
  • [PATCH] documentation: Documentation/initrd.txt
    ... the boot loader loads the kernel and the initial RAM disk ... frees the memory used by initrd ... initrd is mounted read-write as root ... linuxrc places the root file system at the root directory using the ...
    (Linux-Kernel)