Re: no init found error

From: Tommy Reynolds (TommyReynolds_at_yahoo.com)
Date: 06/08/04


Date: Tue, 08 Jun 2004 16:24:04 -0500

On Tue, 08 Jun 2004 11:25:55 -0700, michelle wrote:

> Hi, I tried to build a linux on a extended partition(/mnt/target),
> using a redhat linux I already have on the machine. I installed
> kernel on /mnt/target and could boot, and also install SysVinit, so I
> have a /mnt/target/sbin/init. I don't understand why when it boots, it
> says no init found. Any help is appreciated.

The bootloader is able to mount exactly one filesystem directly
to get the system started. Your "/sbin/init" program must be in
_that_ partition, not in anything you might happen to mount later.
Once the bootloader brings the initrd image and the kernel image into
memory, control transfers to the kernel image. It is the kernel
image that examines the rest of the kernel command line to parse the
"ro root=/dev/hda3" (or similar) and locate your runtime "/" root
directory.

To point GRUB to the location of the "/" part of "/sbin/init" you
must alter the "root (hd0,0)" directive to point to the partition
actually containing your "/mnt/target" filesystem.

HTH.



Relevant Pages

  • Re: MEMORY tag addressing question
    ... a section of memory at a particular addrees for a "const string". ... and then in my bootloader look at that address to retreive the version. ... My kernel image will be on a SD disk which I can read sectors from the ... In other compilers/linkers I can reserve object files at a particular ...
    (microsoft.public.windowsce.platbuilder)
  • Re: something odd
    ... > if you forgot to change your bootloader config ... > for using the new kernel image then it still loads the ... > Even if you reinstall LILO after the compile. ...
    (Debian-User)
  • Re: How to minimize /dev (using udev)?
    ... Mike McCarty wrote: ... kernel image (or else supplied by the bootloader). ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • JTag <- transfer kernel?
    ... May i know what is the most common way to transfer the kernel image ... and the bootloader to arm development board? ... is it using JTag? ... If i erase some bytes of my bootloader, how can i install it again? ...
    (comp.os.linux.embedded)
  • Re: problem with INIT during bootup - system crash
    ... My interpretation is that the init ... time of the mode switch, this is virtually guaranteed to crash the ... I would suspect a corrupt kernel image. ... The diagnostic info from your console would be ...
    (comp.os.linux)