[gentoo-user] Re: chroot: cannot run command `bin/bash': Exec format error

2006-02-22 Thread Mick
John Jolet wrote:

 
 
 
 On 2/22/06 5:03 PM, Bo Andresen [EMAIL PROTECTED] wrote:
 
 Hi
 
 I have just purchased a new computer with a AMD Semphron 2800+ 64 bit
 processor. I am installing it following the gentoo handbook of the amd64
 architecture - only I am using the x86 minimal livecd (2005-r1) and the
 stage3-amd64-2005.1-r1.tar.bz2 tarball. Shouldn that be a problem?
 
 When I get to step 6a (chrooting)

http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1chap=6#doc_cha
 p1
 I get the following error:
 
 livecd gentoo # chroot /mnt/gentoo bin/bash
 chroot: cannot run command `bin/bash': Exec format error
 I've seen that when chrooting into 64-bit environment from a 32-bit
 kernel.
 You cannot boot from the x86 minimal and use an amd64 stage file.  You
 need the amd64 boot cd.
 
 I did use LVM2 for partitioning but other than that I have followed the
 handbook very throughly. I hope someone has a solution.  Please feel free
 to ask for any information that may be helpful.
 
At the same time when you run a command you need to type the path to it
correctly.  In this case the path is preceded by /, as in:

/bin/bash


You really need to double check commands before you hit return as it is easy
to miss a character and the whole sequence goes to pot.
-- 
Regards,
Mick

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: chroot: cannot run command `bin/bash': Exec format error

2006-02-22 Thread Bo Andresen
On Thursday 23 February 2006 00:28, Mick wrote:
 At the same time when you run a command you need to type the path to it
 correctly.  In this case the path is preceded by /, as in:
 
 /bin/bash
 

 You really need to double check commands before you hit return as it is
 easy to miss a character and the whole sequence goes to pot.

At first I ran:
chroot /mnt/gentoo /bin/bash

When I got the error message I tried without the first slash since it couldn't 
do any damage to test it. Same error. By mistake it was the last command that 
went in the mail.

I guess I have to burn yet another cd then. :( Well, as longs as it works. Did 
suspect that was the problem. Wanted to be sure though.

-- 
Bo Andresen
-- 
gentoo-user@gentoo.org mailing list