Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-embedded
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-embedded@g.o
From: Dean Ezra <dean@...>
Subject: Chroot error: chroot: 'cannot execute /bin/bash: No such file or directory' on NSLU2 to Gentoo root
Date: Sat, 30 Sep 2006 18:46:18 +0100
<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" size="4"><SPAN class="Apple-style-span" style="font-size: 14px;">Hi,</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Helvetica; min-height: 17px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" size="4"><SPAN class="Apple-style-span" style="font-size: 14px;">I am trying to follow the Wiki instructions for putting Gentoo onto the NSLU2 at:</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Helvetica; min-height: 17px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" size="4"><SPAN class="Apple-style-span" style="font-size: 14px;"><A href="http://gentoo-wiki.com/HARDWARE_Linksys_NSLU2">http://gentoo-wiki.com/HARDWARE_Linksys_NSLU2</A></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Helvetica; min-height: 17px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" size="4"><SPAN class="Apple-style-span" style="font-size: 14px;">However, I am getting an error when trying to chroot into the gentage stage that is on the USB disk.</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Helvetica; min-height: 17px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" size="4"><SPAN class="Apple-style-span" style="font-size: 14px;">I have burned the openslug firmware and created the root filesystem (from the stage3 tar.bz2) and now have ssh login to nslu2.</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Helvetica; min-height: 17px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" size="4"><SPAN class="Apple-style-span" style="font-size: 14px;">But when I run the following commands:</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Helvetica; min-height: 17px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" size="4"><SPAN class="Apple-style-span" style="font-size: 14px;"># mount -o bind /dev /mnt/gentoo/dev</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" size="4"><SPAN class="Apple-style-span" style="font-size: 14px;"># mount -o bind /dev/pts /mnt/gentoo/dev/pts</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" size="4"><SPAN class="Apple-style-span" style="font-size: 14px;"># mount -t proc none /mnt/gentoo/proc</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" size="4"><SPAN class="Apple-style-span" style="font-size: 14px;"># cp /etc/resolv.conf /mnt/gentoo/etc/</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" size="4"><SPAN class="Apple-style-span" style="font-size: 14px;"># chroot /mnt/gentoo /bin/bash</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Helvetica; min-height: 17px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" size="4"><SPAN class="Apple-style-span" style="font-size: 14px;">I get the following error on the last line (the chroot command)</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Helvetica; min-height: 17px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" size="4"><SPAN class="Apple-style-span" style="font-size: 14px;">chroot: cannot execute /bin/bash: No such file or directory</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Helvetica; min-height: 17px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" size="4"><SPAN class="Apple-style-span" style="font-size: 14px;">I have checked for /bin/bash, but it doesnt exist.</SPAN></FONT><FONT class="Apple-style-span" size="4"><SPAN class="Apple-style-span" style="font-size: 14px;"> </SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Helvetica; min-height: 17px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" size="4"><SPAN class="Apple-style-span" style="font-size: 14px;">I have also tried using the 'sh' shell instead (which does exist as a link to busybox). But I get the same error (but with sh not being about to be executed).</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Helvetica; min-height: 17px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" size="4"><SPAN class="Apple-style-span" style="font-size: 14px;">Please can someone help?</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" size="4"><SPAN class="Apple-style-span" style="font-size: 14px;">If any of you have run through these steps, I would appreciate the help.</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Helvetica; min-height: 17px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" size="4"><SPAN class="Apple-style-span" style="font-size: 14px;">Thankyou in advance</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Helvetica; min-height: 17px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" size="4"><SPAN class="Apple-style-span" style="font-size: 14px;">Dean</SPAN></FONT></DIV></BODY></HTML>
Replies:
Re: Chroot error: chroot: 'cannot execute /bin/bash: No such file or directory' on NSLU2 to Gentoo root
-- Mike Frysinger
Re: Chroot error: chroot: 'cannot execute /bin/bash: No such file or directory' on NSLU2 to Gentoo root
-- Mike Frysinger
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
beginner's question
Next by thread:
Re: Chroot error: chroot: 'cannot execute /bin/bash: No such file or directory' on NSLU2 to Gentoo root
Previous by date:
REMOVE
Next by date:
Re: Chroot error: chroot: 'cannot execute /bin/bash: No such file or directory' on NSLU2 to Gentoo root


Updated Jun 17, 2009

Summary: Archive of the gentoo-embedded mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.