Gentoo Archives: gentoo-embedded

From: Corey <corey@×××××××××.net>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] unable to chroot
Date: Fri, 17 Nov 2006 21:41:08
Message-Id: 200611171435.44844.corey@bitworthy.net
1 I've got a minimal gentoo env on a separate partition, but I'm unable to chroot
2 into it - I get a "chroot: cannot run command `/bin/bash': No such file or directory",
3 even though bash does in fact exist in the target and is executable:
4
5 scanner gentoo # chroot /mnt/gentoo/ /bin/bash
6 chroot: cannot run command `/bin/bash': No such file or directory
7 scanner gentoo # pwd
8 /mnt/gentoo
9 scanner gentoo # ls
10 bin dev etc home lib linuxrc mnt proc root sbin sys tmp usr var
11 scanner gentoo # ls -l bin/bash
12 -rwxr-xr-x 1 root root 869584 Nov 17 01:50 bin/bash
13 scanner gentoo # ./bin/bash --version
14 GNU bash, version 3.1.17(1)-release (i686-pc-linux-gnu)
15 Copyright (C) 2005 Free Software Foundation, Inc.
16 scanner gentoo # chroot /mnt/gentoo/ /bin/bash
17 chroot: cannot run command `/bin/bash': No such file or directory
18
19
20 Where should I begin trying to fix this? I used crossdev w/ uclibc when I compiled
21 and installed the base fs into the partition in question.
22
23
24 Thanks,
25
26 Corey
27 --
28 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] unable to chroot Mike Frysinger <vapier@g.o>
Re: [gentoo-embedded] unable to chroot Corey <corey@×××××××××.net>