kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: chris@basementcode.com (chris at basementcode.com)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Init error NFS booting a Fedora 13 file system
Date: Fri, 13 May 2011 12:20:12 -0500	[thread overview]
Message-ID: <b80e1179ca4376c38b4ef75ebabe3439@basementcode.com> (raw)
In-Reply-To: <BANLkTi=7mbgsR02ajbrbywHeg2XJNXsLMQ@mail.gmail.com>

 On Fri, 13 May 2011 13:06:40 -0300, Erlon Cruz <sombrafam@gmail.com> 
 wrote:
> Hi all,
> ? ? Im having the?following?problem to configure a diskless client.
> Everything seens to be OK. The client finds the kernel, loads the
> parameters, mount the NFS remote dir, but still cant find init.
> The error I get is:
>
> run-init: /sbin/init: No such file or directory
> Kernel Panic - not syncing: Attempted to kill init!
> Pid: 1 , comm: run-init Not tainted
>
> I know the the file system can find /sbin/init because I compiled a
> small hello World program and compiled statically and it runs
> normally.
>  The question is: How can a make the real init run dynamically linked
> or how can I compile it statically?
>
>
> Kind regards,
> Erlon
>

 You can get a statically linked init program using buildroot to build 
 busybox. Buildroot has a "build statically" option.
 I had that problem once, I solved it by booting a local filesystem that 
 I knew worked, then I chrooted into the filesystem I was debugging and 
 ran init manually. Turns out it was an "Illegal instruction" exception 
 because I used a compiler with the wrong abi....

 So basically, if you can, boot the system by whatever other means, then 
 use the chroot command on your manually mounted NFS.

 Hope that helps,
 -Chris

  reply	other threads:[~2011-05-13 17:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-13 16:06 Init error NFS booting a Fedora 13 file system Erlon Cruz
2011-05-13 17:20 ` chris at basementcode.com [this message]
2011-05-13 17:45   ` Erlon Cruz
2011-05-13 17:58     ` Erlon Cruz
2011-05-13 19:14       ` Christopher Harvey
2011-05-16 19:18         ` Erlon Cruz
2011-05-16 19:26           ` Christopher Harvey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b80e1179ca4376c38b4ef75ebabe3439@basementcode.com \
    --to=chris@basementcode.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).